← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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