← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. input
  3. line 2
  4. output
  5. processing
  6. processing
  7. a result on screen
  8. taking a photo
  9. output
  10. True
  11. False
  12. 190
  13. adding up a bill
  14. line 3
  15. taking a photo
  16. True
  17. speaking a command
  18. True
  19. line 3
  20. True
  21. output
  22. line 3
  23. line 3
  24. 100
  25. a beep sound
  26. True
  27. line 3
  28. False
  29. input
  30. 74
  31. line 3
  32. True
  33. 56
  34. checking a password
  35. 77
  36. a pop-up message
  37. 18
  38. 200
  39. line 3
  40. processing

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