← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 3
  3. output
  4. adding up a bill
  5. processing
  6. line 3
  7. line 3
  8. True
  9. True
  10. checking a password
  11. output
  12. False
  13. tapping a button
  14. line 3
  15. 450
  16. working out a tip
  17. 3000
  18. True
  19. 340
  20. line 2
  21. output
  22. typing your age
  23. a beep sound
  24. processing
  25. input
  26. False
  27. 7000
  28. a beep sound
  29. line 2
  30. 12
  31. line 3
  32. input
  33. 30
  34. line 3
  35. speaking a command
  36. line 3
  37. 110
  38. False
  39. 460
  40. working out a tip

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