← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 130
  2. 270
  3. 29
  4. processing
  5. 240
  6. 9000
  7. a result on screen
  8. output
  9. 3000
  10. 300
  11. working out a tip
  12. False
  13. working out a tip
  14. 110
  15. line 3
  16. a buzz (vibration)
  17. False
  18. 6000
  19. typing your age
  20. True
  21. 11
  22. input
  23. False
  24. checking a password
  25. True
  26. a beep sound
  27. False
  28. False
  29. 19
  30. a buzz (vibration)
  31. tapping a button
  32. 200
  33. line 2
  34. line 3
  35. False
  36. line 3
  37. speaking a command
  38. output
  39. adding up a bill
  40. line 2

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