← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 15000
  2. 14000
  3. checking a password
  4. line 3
  5. 77
  6. adding up a bill
  7. False
  8. False
  9. sorting the scores
  10. line 3
  11. input
  12. False
  13. line 3
  14. a beep sound
  15. True
  16. a buzz (vibration)
  17. 270
  18. working out a tip
  19. line 2
  20. a buzz (vibration)
  21. 3000
  22. 290
  23. True
  24. 30
  25. typing your age
  26. line 2
  27. checking a password
  28. 275
  29. False
  30. input
  31. line 3
  32. False
  33. line 3
  34. True
  35. line 3
  36. line 3
  37. line 3
  38. line 3
  39. line 3
  40. output

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