← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 175
  2. input
  3. False
  4. line 3
  5. working out a tip
  6. line 3
  7. sorting the scores
  8. 490
  9. 20
  10. line 3
  11. a beep sound
  12. False
  13. False
  14. line 2
  15. adding up a bill
  16. 52
  17. False
  18. output
  19. a pop-up message
  20. False
  21. False
  22. taking a photo
  23. a result on screen
  24. checking a password
  25. 9000
  26. 430
  27. line 3
  28. line 3
  29. line 3
  30. line 2
  31. speaking a command
  32. True
  33. line 3
  34. line 3
  35. input
  36. True
  37. a buzz (vibration)
  38. line 3
  39. line 3
  40. sorting the scores

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