← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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