← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. a pop-up message
  3. 80
  4. False
  5. line 3
  6. 310
  7. 4000
  8. True
  9. False
  10. line 3
  11. line 3
  12. typing your age
  13. a beep sound
  14. sorting the scores
  15. line 3
  16. processing
  17. False
  18. 210
  19. False
  20. a pop-up message
  21. working out a tip
  22. line 2
  23. line 3
  24. line 3
  25. output
  26. False
  27. typing your age
  28. adding up a bill
  29. processing
  30. tapping a button
  31. False
  32. processing
  33. tapping a button
  34. a result on screen
  35. 450
  36. False
  37. True
  38. True
  39. 550
  40. line 3

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