← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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