← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. sorting the scores
  3. working out a tip
  4. line 3
  5. adding up a bill
  6. checking a password
  7. line 3
  8. line 3
  9. 71
  10. input
  11. False
  12. False
  13. typing your age
  14. input
  15. line 3
  16. False
  17. working out a tip
  18. output
  19. a result on screen
  20. True
  21. output
  22. 390
  23. a buzz (vibration)
  24. processing
  25. a pop-up message
  26. line 3
  27. processing
  28. line 3
  29. typing your age
  30. True
  31. 220
  32. 30
  33. 260
  34. line 3
  35. False
  36. line 2
  37. line 3
  38. output
  39. 10
  40. 275

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