← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. tapping a button
  3. 16
  4. output
  5. True
  6. a pop-up message
  7. line 3
  8. a result on screen
  9. a buzz (vibration)
  10. True
  11. line 3
  12. 79
  13. output
  14. 470
  15. 12000
  16. line 3
  17. line 3
  18. line 3
  19. input
  20. a result on screen
  21. typing your age
  22. input
  23. adding up a bill
  24. taking a photo
  25. sorting the scores
  26. line 3
  27. False
  28. 60
  29. 61
  30. False
  31. line 3
  32. input
  33. 255
  34. 180
  35. a beep sound
  36. 14
  37. False
  38. speaking a command
  39. line 3
  40. 570

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