← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. False
  3. checking a password
  4. a buzz (vibration)
  5. line 3
  6. 3000
  7. 6000
  8. line 3
  9. 460
  10. speaking a command
  11. line 2
  12. tapping a button
  13. speaking a command
  14. 14000
  15. sorting the scores
  16. typing your age
  17. 29
  18. 57
  19. True
  20. 440
  21. line 3
  22. taking a photo
  23. processing
  24. typing your age
  25. line 3
  26. a beep sound
  27. input
  28. taking a photo
  29. processing
  30. output
  31. True
  32. False
  33. True
  34. adding up a bill
  35. line 3
  36. 240
  37. False
  38. 35
  39. False
  40. False

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