← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. processing
  3. output
  4. line 3
  5. checking a password
  6. True
  7. a pop-up message
  8. 50
  9. a pop-up message
  10. output
  11. speaking a command
  12. line 3
  13. False
  14. line 3
  15. a result on screen
  16. False
  17. False
  18. adding up a bill
  19. False
  20. False
  21. tapping a button
  22. speaking a command
  23. 370
  24. 300
  25. a beep sound
  26. line 3
  27. sorting the scores
  28. a beep sound
  29. 440
  30. line 3
  31. input
  32. line 2
  33. True
  34. 72
  35. False
  36. True
  37. True
  38. False
  39. 11000
  40. line 3

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