← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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