← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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