← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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