← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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