← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 13000
  3. line 3
  4. processing
  5. line 3
  6. 37
  7. speaking a command
  8. output
  9. a beep sound
  10. 16
  11. 8000
  12. True
  13. line 3
  14. line 2
  15. 80
  16. 150
  17. a result on screen
  18. False
  19. 5000
  20. input
  21. taking a photo
  22. a beep sound
  23. line 3
  24. 14000
  25. working out a tip
  26. line 3
  27. 285
  28. working out a tip
  29. True
  30. 270
  31. 475
  32. 430
  33. line 3
  34. 60
  35. line 3
  36. line 3
  37. True
  38. True
  39. 18
  40. line 2

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