← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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