← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. processing
  3. 3000
  4. line 3
  5. adding up a bill
  6. processing
  7. False
  8. output
  9. typing your age
  10. input
  11. 330
  12. True
  13. line 3
  14. 160
  15. 175
  16. a result on screen
  17. True
  18. 170
  19. line 2
  20. True
  21. 13000
  22. 420
  23. speaking a command
  24. adding up a bill
  25. line 2
  26. False
  27. line 3
  28. line 3
  29. 27
  30. True
  31. 10000
  32. line 2
  33. 4000
  34. True
  35. input
  36. False
  37. 12000
  38. speaking a command
  39. taking a photo
  40. 140

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