← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 48
  3. True
  4. line 3
  5. line 3
  6. 280
  7. False
  8. False
  9. adding up a bill
  10. True
  11. a buzz (vibration)
  12. input
  13. tapping a button
  14. speaking a command
  15. output
  16. line 3
  17. True
  18. line 3
  19. input
  20. True
  21. speaking a command
  22. output
  23. 165
  24. line 2
  25. typing your age
  26. line 2
  27. False
  28. processing
  29. 7000
  30. a pop-up message
  31. 12000
  32. a buzz (vibration)
  33. typing your age
  34. False
  35. a pop-up message
  36. processing
  37. 13000
  38. 14000
  39. line 3
  40. False

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