← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 120
  2. output
  3. 58
  4. line 3
  5. True
  6. line 2
  7. True
  8. 280
  9. a result on screen
  10. False
  11. a result on screen
  12. True
  13. 2000
  14. line 3
  15. checking a password
  16. 11000
  17. input
  18. output
  19. line 3
  20. typing your age
  21. sorting the scores
  22. a pop-up message
  23. output
  24. 20
  25. checking a password
  26. line 2
  27. a beep sound
  28. False
  29. line 3
  30. line 2
  31. 10000
  32. speaking a command
  33. False
  34. True
  35. 540
  36. line 2
  37. 120
  38. input
  39. line 3
  40. True

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