← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. line 3
  3. input
  4. sorting the scores
  5. True
  6. sorting the scores
  7. tapping a button
  8. 12000
  9. processing
  10. False
  11. line 2
  12. line 3
  13. processing
  14. False
  15. output
  16. taking a photo
  17. True
  18. line 2
  19. False
  20. line 3
  21. a result on screen
  22. 200
  23. a buzz (vibration)
  24. False
  25. a beep sound
  26. 61
  27. 39
  28. line 2
  29. 9000
  30. a buzz (vibration)
  31. 250
  32. taking a photo
  33. True
  34. input
  35. line 2
  36. 58
  37. a beep sound
  38. checking a password
  39. input
  40. line 3

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