← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 15000
  2. line 2
  3. processing
  4. processing
  5. 200
  6. speaking a command
  7. 21
  8. adding up a bill
  9. adding up a bill
  10. 450
  11. a pop-up message
  12. input
  13. 9000
  14. input
  15. line 3
  16. taking a photo
  17. 440
  18. processing
  19. False
  20. False
  21. line 3
  22. 53
  23. True
  24. 10000
  25. line 3
  26. False
  27. a pop-up message
  28. True
  29. sorting the scores
  30. False
  31. input
  32. False
  33. 105
  34. line 3
  35. input
  36. typing your age
  37. a beep sound
  38. line 2
  39. True
  40. False

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