← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. processing
  3. output
  4. 310
  5. 10000
  6. 310
  7. False
  8. a buzz (vibration)
  9. output
  10. 320
  11. 350
  12. line 2
  13. tapping a button
  14. output
  15. line 3
  16. input
  17. output
  18. line 3
  19. processing
  20. line 3
  21. line 3
  22. a result on screen
  23. 105
  24. 15000
  25. line 2
  26. working out a tip
  27. input
  28. adding up a bill
  29. 56
  30. 175
  31. line 3
  32. input
  33. a pop-up message
  34. 430
  35. True
  36. False
  37. True
  38. sorting the scores
  39. input
  40. line 3

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