← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. a pop-up message
  4. taking a photo
  5. output
  6. a beep sound
  7. tapping a button
  8. False
  9. line 3
  10. line 2
  11. 340
  12. True
  13. typing your age
  14. output
  15. processing
  16. 2000
  17. line 2
  18. input
  19. False
  20. False
  21. line 3
  22. True
  23. True
  24. 13000
  25. line 3
  26. False
  27. 10
  28. working out a tip
  29. tapping a button
  30. input
  31. output
  32. line 3
  33. line 3
  34. 540
  35. output
  36. True
  37. 55
  38. line 2
  39. typing your age
  40. True

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