← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 135
  2. 280
  3. typing your age
  4. line 2
  5. False
  6. 6000
  7. tapping a button
  8. False
  9. True
  10. processing
  11. a pop-up message
  12. processing
  13. checking a password
  14. a result on screen
  15. 15000
  16. line 3
  17. output
  18. typing your age
  19. False
  20. output
  21. True
  22. True
  23. input
  24. False
  25. 60
  26. output
  27. 80
  28. 360
  29. sorting the scores
  30. 150
  31. False
  32. input
  33. a pop-up message
  34. input
  35. sorting the scores
  36. taking a photo
  37. line 3
  38. adding up a bill
  39. line 3
  40. False

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