← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 200
  3. a buzz (vibration)
  4. output
  5. 400
  6. tapping a button
  7. line 3
  8. False
  9. 80
  10. typing your age
  11. True
  12. False
  13. True
  14. 360
  15. True
  16. adding up a bill
  17. a beep sound
  18. sorting the scores
  19. checking a password
  20. sorting the scores
  21. 540
  22. False
  23. processing
  24. 11
  25. 340
  26. 220
  27. line 3
  28. line 3
  29. line 3
  30. line 2
  31. line 3
  32. False
  33. False
  34. line 3
  35. 285
  36. speaking a command
  37. False
  38. a result on screen
  39. 170
  40. True

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