← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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