← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. 15
  3. sorting the scores
  4. line 3
  5. 66
  6. working out a tip
  7. speaking a command
  8. a buzz (vibration)
  9. output
  10. False
  11. False
  12. input
  13. output
  14. output
  15. 180
  16. 4000
  17. 100
  18. False
  19. False
  20. 15000
  21. line 3
  22. True
  23. 475
  24. adding up a bill
  25. a result on screen
  26. 50
  27. 44
  28. input
  29. taking a photo
  30. line 3
  31. True
  32. line 3
  33. True
  34. input
  35. a pop-up message
  36. 300
  37. line 2
  38. a pop-up message
  39. taking a photo
  40. 10000

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