← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 170
  2. a buzz (vibration)
  3. False
  4. working out a tip
  5. working out a tip
  6. output
  7. input
  8. line 3
  9. 3000
  10. 120
  11. True
  12. 12000
  13. adding up a bill
  14. 13000
  15. True
  16. line 3
  17. True
  18. True
  19. a beep sound
  20. 75
  21. line 3
  22. False
  23. line 3
  24. line 3
  25. sorting the scores
  26. 6000
  27. line 2
  28. line 2
  29. output
  30. 90
  31. line 3
  32. line 3
  33. False
  34. tapping a button
  35. line 3
  36. 9000
  37. checking a password
  38. line 3
  39. 30
  40. checking a password

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