← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 20
  3. line 2
  4. output
  5. processing
  6. False
  7. taking a photo
  8. a beep sound
  9. working out a tip
  10. False
  11. False
  12. False
  13. input
  14. False
  15. a result on screen
  16. line 3
  17. line 3
  18. 210
  19. False
  20. line 3
  21. False
  22. 77
  23. working out a tip
  24. sorting the scores
  25. line 2
  26. speaking a command
  27. line 3
  28. speaking a command
  29. True
  30. processing
  31. checking a password
  32. 11000
  33. taking a photo
  34. output
  35. typing your age
  36. 31
  37. line 3
  38. a pop-up message
  39. sorting the scores
  40. 44

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