← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. taking a photo
  3. a beep sound
  4. typing your age
  5. sorting the scores
  6. processing
  7. 90
  8. 270
  9. output
  10. line 3
  11. 90
  12. input
  13. 510
  14. True
  15. tapping a button
  16. a pop-up message
  17. 58
  18. line 3
  19. output
  20. a buzz (vibration)
  21. 5000
  22. 10000
  23. False
  24. 540
  25. 16
  26. processing
  27. line 3
  28. line 3
  29. line 2
  30. False
  31. True
  32. line 3
  33. a result on screen
  34. adding up a bill
  35. line 3
  36. line 2
  37. 90
  38. 2000
  39. True
  40. True

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