← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 2
  3. taking a photo
  4. 300
  5. line 3
  6. line 3
  7. 11000
  8. tapping a button
  9. line 3
  10. 300
  11. input
  12. input
  13. 3000
  14. 450
  15. line 2
  16. processing
  17. 120
  18. input
  19. False
  20. a buzz (vibration)
  21. line 3
  22. False
  23. processing
  24. line 2
  25. line 3
  26. False
  27. working out a tip
  28. 11
  29. taking a photo
  30. a beep sound
  31. 285
  32. True
  33. line 3
  34. typing your age
  35. 6000
  36. line 3
  37. checking a password
  38. line 2
  39. True
  40. a beep sound

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