← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 54
  3. 20
  4. 13000
  5. False
  6. typing your age
  7. tapping a button
  8. typing your age
  9. a buzz (vibration)
  10. True
  11. True
  12. a pop-up message
  13. output
  14. 15
  15. sorting the scores
  16. line 3
  17. 490
  18. line 3
  19. line 2
  20. False
  21. taking a photo
  22. speaking a command
  23. sorting the scores
  24. 410
  25. input
  26. line 3
  27. line 3
  28. 225
  29. input
  30. False
  31. processing
  32. adding up a bill
  33. a beep sound
  34. 38
  35. line 3
  36. tapping a button
  37. a result on screen
  38. checking a password
  39. False
  40. line 3

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