← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. typing your age
  4. processing
  5. processing
  6. 41
  7. processing
  8. False
  9. line 3
  10. line 3
  11. line 3
  12. 43
  13. processing
  14. False
  15. line 2
  16. False
  17. adding up a bill
  18. output
  19. 230
  20. line 3
  21. a beep sound
  22. line 3
  23. 73
  24. line 3
  25. 55
  26. 65
  27. 510
  28. 325
  29. sorting the scores
  30. input
  31. output
  32. output
  33. input
  34. line 3
  35. True
  36. a beep sound
  37. False
  38. 530
  39. line 3
  40. 40

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