← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 691 · 40 questions
TalentJR

Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.

NameDateTime takenScore ___ / 40
  1. 1.⚙️ In an app, is taking a photo an input, processing or an output? (a) processing (b) input (c) output
  2. 2.⚙️ What number does this app show?
    let price = 65; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  3. 3.🔍 Which is the odd one out? (a) a beep sound (b) a pop-up message (c) taking a photo (d) a buzz (vibration)
  4. 4.Which of these is processing? (a) taking a photo (b) a pop-up message (c) a result on screen (d) working out a tip
  5. 5.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) input (c) output
  6. 6.⚙️ What number does this app show?
    let km = 4; // typed by the user
    let metres = km * 1000;
    show(metres);
  7. 7.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 380; // typed by the user
    line 2: let off = 10; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 3 (b) line 4 (c) line 1 (d) line 2
  8. 8.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) processing (b) input (c) output
  9. 9.🔍 Which is the odd one out? (a) taking a photo (b) a buzz (vibration) (c) tapping a button (d) typing your age
  10. 10.True or false: working out a tip is an output. (a) False (b) True
  11. 11.Which of these is processing? (a) speaking a command (b) a pop-up message (c) taking a photo (d) sorting the scores
  12. 12.True or false: checking a password is processing. (a) False (b) True
  13. 13.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 115; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 2 (c) line 4 (d) line 3
  14. 14.True or false: typing your age is an output. (a) True (b) False
  15. 15.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  16. 16.⚙️ What number does this app show?
    let price = 120; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  17. 17.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 60; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 1 (c) line 2 (d) line 4
  18. 18.⚙️ What number does this app show?
    let price = 35; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  19. 19.⚙️ In an app, is typing your age an input, processing or an output? (a) output (b) processing (c) input
  20. 20.Which of these is an input? (a) speaking a command (b) working out a tip (c) adding up a bill (d) sorting the scores
  21. 21.🔍 Which is the odd one out? (a) a beep sound (b) a result on screen (c) a pop-up message (d) checking a password
  22. 22.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 95; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 2 (b) line 4 (c) line 1 (d) line 3
  23. 23.True or false: a result on screen is an input. (a) True (b) False
  24. 24.🔍 Which is the odd one out? (a) adding up a bill (b) a result on screen (c) a beep sound (d) a buzz (vibration)
  25. 25.Which of these is an input? (a) checking a password (b) a result on screen (c) adding up a bill (d) taking a photo
  26. 26.⚙️ What number does this app show?
    let bill = 216; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  27. 27.True or false: a pop-up message is an output. (a) False (b) True
  28. 28.Which of these is an output? (a) a buzz (vibration) (b) adding up a bill (c) sorting the scores (d) tapping a button
  29. 29.True or false: tapping a button is an input. (a) False (b) True
  30. 30.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 3; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  31. 31.Which of these is processing? (a) a pop-up message (b) adding up a bill (c) a buzz (vibration) (d) tapping a button
  32. 32.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 65; // typed by the user
    line 2: let qty = 5; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  33. 33.⚙️ What number does this app show?
    let price = 200; // typed by the user
    let off = 40; // typed by the user
    let pay = price - off;
    show(pay);
  34. 34.True or false: speaking a command is an input. (a) True (b) False
  35. 35.⚙️ What number does this app show?
    let km = 15; // typed by the user
    let metres = km * 1000;
    show(metres);
  36. 36.🔍 Which is the odd one out? (a) adding up a bill (b) checking a password (c) tapping a button (d) working out a tip
  37. 37.⚙️ What number does this app show?
    let price = 30; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  38. 38.🔍 Which is the odd one out? (a) a result on screen (b) checking a password (c) adding up a bill (d) working out a tip
  39. 39.⚙️ What number does this app show?
    let bill = 126; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  40. 40.⚙️ What number does this app show?
    let km = 7; // typed by the user
    let metres = km * 1000;
    show(metres);

Answer key

  1. input
  2. 390
  3. taking a photo
  4. working out a tip
  5. input
  6. 4000
  7. line 3
  8. output
  9. a buzz (vibration)
  10. False
  11. sorting the scores
  12. True
  13. line 3
  14. False
  15. 2000
  16. 90
  17. line 3
  18. 105
  19. input
  20. speaking a command
  21. checking a password
  22. line 3
  23. False
  24. adding up a bill
  25. taking a photo
  26. 72
  27. True
  28. a buzz (vibration)
  29. True
  30. line 2
  31. adding up a bill
  32. line 3
  33. 160
  34. True
  35. 15000
  36. tapping a button
  37. 180
  38. a result on screen
  39. 42
  40. 7000

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students