← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 200
  3. output
  4. False
  5. processing
  6. speaking a command
  7. typing your age
  8. 80
  9. 190
  10. adding up a bill
  11. taking a photo
  12. a beep sound
  13. speaking a command
  14. False
  15. False
  16. checking a password
  17. a result on screen
  18. input
  19. 52
  20. False
  21. 195
  22. False
  23. a result on screen
  24. a buzz (vibration)
  25. True
  26. line 3
  27. checking a password
  28. 62
  29. 16
  30. 21
  31. line 3
  32. tapping a button
  33. False
  34. line 3
  35. line 2
  36. line 3
  37. 5000
  38. 590
  39. typing your age
  40. 60

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