← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 53
  2. 14000
  3. True
  4. adding up a bill
  5. speaking a command
  6. speaking a command
  7. output
  8. False
  9. line 3
  10. line 3
  11. 11
  12. input
  13. True
  14. False
  15. input
  16. line 2
  17. True
  18. line 3
  19. 61
  20. False
  21. output
  22. output
  23. line 3
  24. a beep sound
  25. working out a tip
  26. False
  27. a result on screen
  28. line 2
  29. output
  30. typing your age
  31. 350
  32. 325
  33. a result on screen
  34. input
  35. a pop-up message
  36. line 3
  37. checking a password
  38. False
  39. 460
  40. False

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