← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. 105
  3. 71
  4. True
  5. tapping a button
  6. 20
  7. typing your age
  8. False
  9. line 2
  10. adding up a bill
  11. True
  12. processing
  13. speaking a command
  14. False
  15. line 3
  16. line 3
  17. processing
  18. False
  19. line 3
  20. taking a photo
  21. True
  22. a result on screen
  23. processing
  24. 11000
  25. processing
  26. True
  27. typing your age
  28. 7000
  29. input
  30. 60
  31. input
  32. a pop-up message
  33. True
  34. tapping a button
  35. a beep sound
  36. 350
  37. 160
  38. False
  39. line 3
  40. output

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