← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. 70
  3. working out a tip
  4. adding up a bill
  5. typing your age
  6. line 3
  7. False
  8. line 3
  9. False
  10. 270
  11. 12000
  12. False
  13. working out a tip
  14. checking a password
  15. True
  16. line 3
  17. line 3
  18. processing
  19. line 3
  20. output
  21. checking a password
  22. 4000
  23. False
  24. True
  25. processing
  26. True
  27. line 3
  28. False
  29. 440
  30. 600
  31. a pop-up message
  32. 5000
  33. tapping a button
  34. 2000
  35. adding up a bill
  36. False
  37. True
  38. line 3
  39. line 3
  40. True

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