← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. typing your age
  3. 10000
  4. False
  5. tapping a button
  6. line 3
  7. output
  8. 36
  9. line 3
  10. 20
  11. 9000
  12. line 3
  13. line 2
  14. checking a password
  15. False
  16. line 3
  17. typing your age
  18. False
  19. False
  20. False
  21. 14000
  22. True
  23. adding up a bill
  24. True
  25. line 3
  26. line 3
  27. 275
  28. False
  29. processing
  30. tapping a button
  31. checking a password
  32. line 3
  33. line 2
  34. 250
  35. line 2
  36. False
  37. processing
  38. line 3
  39. input
  40. True

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