← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 2
  3. 280
  4. 5000
  5. taking a photo
  6. 12000
  7. checking a password
  8. True
  9. 67
  10. False
  11. sorting the scores
  12. 400
  13. line 3
  14. line 3
  15. input
  16. 90
  17. True
  18. 24
  19. 110
  20. 3000
  21. line 3
  22. True
  23. line 3
  24. a result on screen
  25. True
  26. typing your age
  27. line 2
  28. a result on screen
  29. working out a tip
  30. line 2
  31. 480
  32. 135
  33. False
  34. a pop-up message
  35. 430
  36. taking a photo
  37. line 3
  38. tapping a button
  39. speaking a command
  40. 2000

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