← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. input
  3. 200
  4. True
  5. a result on screen
  6. output
  7. True
  8. False
  9. 280
  10. line 3
  11. 280
  12. False
  13. working out a tip
  14. 180
  15. line 3
  16. a result on screen
  17. line 3
  18. processing
  19. line 3
  20. False
  21. True
  22. a buzz (vibration)
  23. False
  24. 15000
  25. 100
  26. speaking a command
  27. output
  28. False
  29. 14000
  30. False
  31. 14
  32. a buzz (vibration)
  33. output
  34. input
  35. line 3
  36. True
  37. 210
  38. 21
  39. taking a photo
  40. adding up a bill

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