← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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