← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. 510
  3. True
  4. adding up a bill
  5. output
  6. True
  7. False
  8. 160
  9. False
  10. tapping a button
  11. True
  12. 80
  13. 370
  14. False
  15. line 3
  16. a beep sound
  17. line 3
  18. output
  19. a pop-up message
  20. line 3
  21. a result on screen
  22. taking a photo
  23. input
  24. line 3
  25. 600
  26. working out a tip
  27. a result on screen
  28. line 3
  29. line 3
  30. adding up a bill
  31. line 3
  32. input
  33. speaking a command
  34. a buzz (vibration)
  35. line 3
  36. line 3
  37. input
  38. 300
  39. False
  40. line 3

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