← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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