← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 75
  3. 260
  4. 7000
  5. line 3
  6. False
  7. line 3
  8. line 2
  9. line 3
  10. adding up a bill
  11. 8000
  12. line 3
  13. tapping a button
  14. 250
  15. input
  16. a beep sound
  17. 74
  18. typing your age
  19. line 3
  20. 6000
  21. 150
  22. 2000
  23. a pop-up message
  24. a buzz (vibration)
  25. line 2
  26. working out a tip
  27. sorting the scores
  28. 200
  29. line 2
  30. True
  31. 105
  32. output
  33. line 3
  34. a pop-up message
  35. input
  36. False
  37. 9000
  38. False
  39. adding up a bill
  40. input

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