← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. processing
  3. adding up a bill
  4. tapping a button
  5. 300
  6. False
  7. line 2
  8. line 3
  9. processing
  10. a result on screen
  11. False
  12. False
  13. line 2
  14. adding up a bill
  15. output
  16. 42
  17. input
  18. output
  19. line 3
  20. typing your age
  21. 300
  22. output
  23. line 3
  24. True
  25. a buzz (vibration)
  26. line 2
  27. line 3
  28. 10
  29. 170
  30. working out a tip
  31. a pop-up message
  32. speaking a command
  33. 68
  34. False
  35. line 2
  36. False
  37. 400
  38. speaking a command
  39. line 3
  40. working out a tip

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