← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 14000
  2. 220
  3. False
  4. tapping a button
  5. 520
  6. 160
  7. input
  8. output
  9. line 2
  10. a buzz (vibration)
  11. line 3
  12. a result on screen
  13. 500
  14. 90
  15. True
  16. 210
  17. True
  18. sorting the scores
  19. checking a password
  20. True
  21. line 3
  22. 4000
  23. working out a tip
  24. input
  25. taking a photo
  26. 3000
  27. 2000
  28. a pop-up message
  29. a beep sound
  30. input
  31. 15000
  32. line 3
  33. line 3
  34. output
  35. 14
  36. 400
  37. speaking a command
  38. typing your age
  39. 180
  40. output

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