← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. taking a photo
  3. line 3
  4. 4000
  5. output
  6. working out a tip
  7. 9000
  8. 3000
  9. a result on screen
  10. typing your age
  11. line 3
  12. working out a tip
  13. 19
  14. tapping a button
  15. 130
  16. True
  17. taking a photo
  18. speaking a command
  19. output
  20. False
  21. True
  22. checking a password
  23. sorting the scores
  24. sorting the scores
  25. adding up a bill
  26. line 3
  27. line 3
  28. input
  29. True
  30. processing
  31. typing your age
  32. line 3
  33. tapping a button
  34. input
  35. 410
  36. 14000
  37. line 3
  38. adding up a bill
  39. False
  40. line 3

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