← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. tapping a button
  3. speaking a command
  4. True
  5. processing
  6. line 3
  7. 390
  8. a result on screen
  9. line 3
  10. checking a password
  11. line 3
  12. True
  13. 8000
  14. True
  15. 250
  16. True
  17. output
  18. 220
  19. speaking a command
  20. line 3
  21. False
  22. line 2
  23. 480
  24. tapping a button
  25. False
  26. 13000
  27. 12
  28. taking a photo
  29. sorting the scores
  30. line 3
  31. False
  32. input
  33. line 2
  34. False
  35. a pop-up message
  36. line 3
  37. line 2
  38. 14000
  39. 510
  40. a buzz (vibration)

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