← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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