← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. a buzz (vibration)
  3. line 3
  4. taking a photo
  5. 250
  6. a beep sound
  7. 240
  8. sorting the scores
  9. adding up a bill
  10. line 3
  11. output
  12. a result on screen
  13. 280
  14. 40
  15. input
  16. 5000
  17. typing your age
  18. line 3
  19. False
  20. True
  21. a result on screen
  22. processing
  23. a buzz (vibration)
  24. line 3
  25. line 3
  26. output
  27. working out a tip
  28. False
  29. tapping a button
  30. False
  31. line 3
  32. False
  33. line 3
  34. 11
  35. False
  36. checking a password
  37. False
  38. processing
  39. 420
  40. line 2

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