← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a buzz (vibration)
  3. taking a photo
  4. 9000
  5. True
  6. True
  7. tapping a button
  8. line 3
  9. a pop-up message
  10. line 3
  11. working out a tip
  12. False
  13. checking a password
  14. True
  15. output
  16. line 2
  17. adding up a bill
  18. a beep sound
  19. sorting the scores
  20. 67
  21. speaking a command
  22. 18
  23. line 2
  24. line 3
  25. typing your age
  26. 3000
  27. a beep sound
  28. adding up a bill
  29. working out a tip
  30. 260
  31. 40
  32. line 3
  33. processing
  34. line 2
  35. 140
  36. a result on screen
  37. line 3
  38. 8000
  39. False
  40. False

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