← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. typing your age
  3. True
  4. 3000
  5. line 3
  6. sorting the scores
  7. True
  8. input
  9. False
  10. False
  11. checking a password
  12. a buzz (vibration)
  13. tapping a button
  14. checking a password
  15. 15000
  16. 40
  17. line 2
  18. processing
  19. True
  20. 31
  21. 50
  22. False
  23. working out a tip
  24. 13000
  25. False
  26. False
  27. line 2
  28. 30
  29. 130
  30. 46
  31. True
  32. output
  33. adding up a bill
  34. line 3
  35. False
  36. output
  37. input
  38. line 3
  39. processing
  40. taking a photo

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