← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. line 2
  3. False
  4. True
  5. sorting the scores
  6. 430
  7. 60
  8. processing
  9. a beep sound
  10. line 3
  11. 300
  12. 4000
  13. 320
  14. 79
  15. line 2
  16. line 3
  17. line 2
  18. line 3
  19. adding up a bill
  20. tapping a button
  21. line 3
  22. False
  23. typing your age
  24. 110
  25. 90
  26. line 3
  27. 400
  28. False
  29. output
  30. 74
  31. line 3
  32. 275
  33. line 2
  34. a buzz (vibration)
  35. line 3
  36. 120
  37. line 3
  38. taking a photo
  39. False
  40. line 3

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