← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. input
  3. True
  4. line 3
  5. taking a photo
  6. output
  7. False
  8. line 3
  9. sorting the scores
  10. 70
  11. output
  12. 74
  13. True
  14. processing
  15. line 3
  16. working out a tip
  17. line 3
  18. typing your age
  19. line 2
  20. 80
  21. 450
  22. line 3
  23. True
  24. 510
  25. processing
  26. 190
  27. line 3
  28. line 3
  29. sorting the scores
  30. a pop-up message
  31. False
  32. 200
  33. line 3
  34. a beep sound
  35. 190
  36. a buzz (vibration)
  37. checking a password
  38. True
  39. 79
  40. input

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