← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. adding up a bill
  3. speaking a command
  4. tapping a button
  5. a pop-up message
  6. working out a tip
  7. True
  8. 53
  9. 100
  10. True
  11. 61
  12. line 3
  13. line 3
  14. a beep sound
  15. typing your age
  16. 37
  17. 180
  18. a pop-up message
  19. working out a tip
  20. 140
  21. line 3
  22. line 3
  23. 5000
  24. a result on screen
  25. line 3
  26. True
  27. 110
  28. input
  29. input
  30. checking a password
  31. False
  32. input
  33. 3000
  34. line 2
  35. sorting the scores
  36. False
  37. adding up a bill
  38. True
  39. line 2
  40. 170

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