← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. 160
  3. input
  4. 40
  5. line 2
  6. a buzz (vibration)
  7. False
  8. True
  9. a result on screen
  10. taking a photo
  11. output
  12. line 3
  13. 2000
  14. 190
  15. checking a password
  16. a pop-up message
  17. False
  18. False
  19. processing
  20. line 3
  21. False
  22. 48
  23. output
  24. adding up a bill
  25. 210
  26. line 3
  27. input
  28. 500
  29. True
  30. output
  31. line 2
  32. line 2
  33. 14000
  34. False
  35. speaking a command
  36. line 2
  37. 120
  38. working out a tip
  39. input
  40. 240

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