← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. processing
  3. input
  4. input
  5. line 3
  6. 10000
  7. a pop-up message
  8. 75
  9. 29
  10. 17
  11. True
  12. typing your age
  13. 24
  14. a beep sound
  15. line 3
  16. 500
  17. 13000
  18. 28
  19. output
  20. 39
  21. False
  22. working out a tip
  23. False
  24. speaking a command
  25. False
  26. working out a tip
  27. 360
  28. input
  29. speaking a command
  30. 600
  31. line 2
  32. checking a password
  33. input
  34. line 2
  35. line 3
  36. processing
  37. adding up a bill
  38. 160
  39. 260
  40. 290

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