← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. 370
  3. line 3
  4. input
  5. 28
  6. line 2
  7. line 3
  8. line 3
  9. processing
  10. a buzz (vibration)
  11. output
  12. False
  13. speaking a command
  14. False
  15. 3000
  16. True
  17. True
  18. 10000
  19. a result on screen
  20. 160
  21. 2000
  22. True
  23. 11000
  24. True
  25. adding up a bill
  26. a beep sound
  27. typing your age
  28. a result on screen
  29. line 3
  30. 44
  31. 9000
  32. line 2
  33. tapping a button
  34. 12
  35. 15000
  36. False
  37. 190
  38. a beep sound
  39. False
  40. speaking a command

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