← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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