← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 555 · 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.Which of these is processing? (a) working out a tip (b) a buzz (vibration) (c) speaking a command (d) tapping a button
  2. 2.⚙️ In an app, is typing your age an input, processing or an output? (a) input (b) processing (c) output
  3. 3.🔍 Which is the odd one out? (a) checking a password (b) a beep sound (c) working out a tip (d) sorting the scores
  4. 4.Which of these is an output? (a) sorting the scores (b) tapping a button (c) taking a photo (d) a beep sound
  5. 5.⚙️ In an app, is taking a photo an input, processing or an output? (a) input (b) processing (c) output
  6. 6.True or false: a result on screen is an output. (a) False (b) True
  7. 7.⚙️ What number does this app show?
    let price = 90; // typed by the user
    let qty = 5; // typed by the user
    let total = price * qty;
    show(total);
  8. 8.⚙️ What number does this app show?
    let km = 4; // typed by the user
    let metres = km * 1000;
    show(metres);
  9. 9.⚙️ What number does this app show?
    let price = 100; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  10. 10.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  11. 11.⚙️ 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 1 (b) line 3 (c) line 2
  12. 12.True or false: working out a tip is an input. (a) False (b) True
  13. 13.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 340; // typed by the user
    line 2: let off = 40; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  14. 14.Which of these is an output? (a) a buzz (vibration) (b) checking a password (c) speaking a command (d) taking a photo
  15. 15.True or false: speaking a command is an input. (a) True (b) False
  16. 16.🔍 Which is the odd one out? (a) a buzz (vibration) (b) adding up a bill (c) working out a tip (d) sorting the scores
  17. 17.🔍 Which is the odd one out? (a) a pop-up message (b) a result on screen (c) typing your age (d) a beep sound
  18. 18.Which of these is processing? (a) checking a password (b) a buzz (vibration) (c) a result on screen (d) speaking a command
  19. 19.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 100; // 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 3 (b) line 2 (c) line 1 (d) line 4
  20. 20.True or false: checking a password is processing. (a) False (b) True
  21. 21.⚙️ What number does this app show?
    let price = 340; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  22. 22.⚙️ What number does this app show?
    let price = 15; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  23. 23.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) processing (b) input (c) output
  24. 24.True or false: taking a photo is an input. (a) False (b) True
  25. 25.🔍 Which is the odd one out? (a) sorting the scores (b) speaking a command (c) working out a tip (d) adding up a bill
  26. 26.True or false: typing your age is an input. (a) True (b) False
  27. 27.⚙️ What number does this app show?
    let price = 35; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  28. 28.True or false: a pop-up message is an input. (a) True (b) False
  29. 29.🔍 Which is the odd one out? (a) taking a photo (b) a result on screen (c) a pop-up message (d) a beep sound
  30. 30.🔍 Which is the odd one out? (a) working out a tip (b) speaking a command (c) tapping a button (d) taking a photo
  31. 31.⚙️ What number does this app show?
    let price = 15; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  32. 32.🔍 Which is the odd one out? (a) a beep sound (b) a buzz (vibration) (c) checking a password (d) a pop-up message
  33. 33.⚙️ In an app, is a pop-up message an input, processing or an output? (a) processing (b) output (c) input
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 325; // 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 2 (b) line 1 (c) line 4 (d) line 3
  35. 35.Which of these is an input? (a) adding up a bill (b) a pop-up message (c) checking a password (d) speaking a command
  36. 36.🔍 Which is the odd one out? (a) speaking a command (b) tapping a button (c) a result on screen (d) taking a photo
  37. 37.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 50; // 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 3 (b) line 2 (c) line 1 (d) line 4
  38. 38.⚙️ In an app, is a result on screen an input, processing or an output? (a) output (b) processing (c) input
  39. 39.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 50; // 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 2 (b) line 4 (c) line 1 (d) line 3
  40. 40.⚙️ What number does this app show?
    let price = 80; // typed by the user
    let qty = 5; // typed by the user
    let total = price * qty;
    show(total);

Answer key

  1. working out a tip
  2. input
  3. a beep sound
  4. a beep sound
  5. input
  6. True
  7. 450
  8. 4000
  9. 600
  10. 2000
  11. line 2
  12. False
  13. line 3
  14. a buzz (vibration)
  15. True
  16. a buzz (vibration)
  17. typing your age
  18. checking a password
  19. line 3
  20. True
  21. 310
  22. 30
  23. output
  24. True
  25. speaking a command
  26. True
  27. 210
  28. False
  29. taking a photo
  30. working out a tip
  31. 60
  32. checking a password
  33. output
  34. line 3
  35. speaking a command
  36. a result on screen
  37. line 3
  38. output
  39. line 3
  40. 400

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