← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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