← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. True
  3. line 2
  4. output
  5. taking a photo
  6. False
  7. 420
  8. output
  9. 8000
  10. a beep sound
  11. False
  12. line 3
  13. output
  14. 90
  15. adding up a bill
  16. speaking a command
  17. True
  18. 5000
  19. line 3
  20. typing your age
  21. a result on screen
  22. a pop-up message
  23. 450
  24. 46
  25. line 3
  26. sorting the scores
  27. input
  28. True
  29. line 3
  30. working out a tip
  31. line 2
  32. 290
  33. a beep sound
  34. line 3
  35. False
  36. adding up a bill
  37. 200
  38. False
  39. line 3
  40. 11000

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