← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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