← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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