← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. line 3
  3. 60
  4. working out a tip
  5. True
  6. line 3
  7. 12000
  8. False
  9. line 2
  10. line 3
  11. input
  12. a pop-up message
  13. 400
  14. input
  15. 510
  16. output
  17. line 2
  18. line 3
  19. checking a password
  20. input
  21. processing
  22. a beep sound
  23. tapping a button
  24. output
  25. line 3
  26. 40
  27. 18
  28. 140
  29. line 3
  30. False
  31. line 3
  32. input
  33. False
  34. True
  35. output
  36. a buzz (vibration)
  37. 25
  38. line 3
  39. processing
  40. 300

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