← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 50
  3. line 3
  4. line 3
  5. line 3
  6. input
  7. tapping a button
  8. input
  9. 520
  10. 210
  11. a pop-up message
  12. 5000
  13. 350
  14. line 3
  15. line 3
  16. tapping a button
  17. output
  18. False
  19. working out a tip
  20. False
  21. working out a tip
  22. line 2
  23. typing your age
  24. 61
  25. line 3
  26. 500
  27. taking a photo
  28. True
  29. line 3
  30. 340
  31. output
  32. 6000
  33. line 3
  34. 460
  35. True
  36. a beep sound
  37. line 3
  38. 4000
  39. False
  40. output

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