← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. tapping a button
  3. taking a photo
  4. a buzz (vibration)
  5. sorting the scores
  6. 400
  7. 60
  8. processing
  9. line 2
  10. True
  11. a result on screen
  12. typing your age
  13. output
  14. 150
  15. a beep sound
  16. False
  17. input
  18. 77
  19. False
  20. sorting the scores
  21. line 3
  22. input
  23. line 3
  24. True
  25. a pop-up message
  26. 30
  27. 79
  28. True
  29. processing
  30. typing your age
  31. 7000
  32. 30
  33. checking a password
  34. input
  35. line 3
  36. 10
  37. processing
  38. checking a password
  39. line 2
  40. line 3

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