← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. processing
  3. False
  4. a beep sound
  5. a buzz (vibration)
  6. typing your age
  7. processing
  8. 240
  9. line 3
  10. 45
  11. 54
  12. False
  13. 9000
  14. 11000
  15. processing
  16. input
  17. taking a photo
  18. output
  19. 15
  20. 240
  21. line 2
  22. 15000
  23. sorting the scores
  24. 210
  25. adding up a bill
  26. True
  27. a result on screen
  28. 8000
  29. checking a password
  30. output
  31. line 3
  32. input
  33. taking a photo
  34. sorting the scores
  35. line 3
  36. line 3
  37. True
  38. 2000
  39. processing
  40. a pop-up message

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