← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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