← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. adding up a bill
  3. True
  4. input
  5. line 3
  6. output
  7. a pop-up message
  8. output
  9. True
  10. 310
  11. sorting the scores
  12. a buzz (vibration)
  13. checking a password
  14. typing your age
  15. 460
  16. a beep sound
  17. 12
  18. False
  19. a buzz (vibration)
  20. False
  21. False
  22. input
  23. 31
  24. tapping a button
  25. input
  26. typing your age
  27. 130
  28. 20
  29. processing
  30. False
  31. False
  32. checking a password
  33. line 3
  34. a result on screen
  35. speaking a command
  36. True
  37. True
  38. False
  39. line 3
  40. 7000

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