← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. adding up a bill
  3. adding up a bill
  4. a pop-up message
  5. output
  6. input
  7. line 3
  8. 56
  9. a result on screen
  10. line 3
  11. line 3
  12. a buzz (vibration)
  13. line 3
  14. 225
  15. input
  16. tapping a button
  17. typing your age
  18. line 2
  19. 320
  20. line 3
  21. input
  22. 340
  23. False
  24. True
  25. True
  26. 8000
  27. a beep sound
  28. input
  29. 170
  30. 42
  31. line 3
  32. taking a photo
  33. True
  34. line 3
  35. 165
  36. False
  37. working out a tip
  38. 47
  39. checking a password
  40. 5000

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