← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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