← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 20
  3. 120
  4. adding up a bill
  5. 10000
  6. output
  7. 79
  8. line 2
  9. 430
  10. True
  11. 27
  12. line 3
  13. a pop-up message
  14. a pop-up message
  15. line 3
  16. output
  17. line 3
  18. a beep sound
  19. tapping a button
  20. taking a photo
  21. True
  22. processing
  23. typing your age
  24. True
  25. 150
  26. False
  27. a beep sound
  28. line 3
  29. line 3
  30. 6000
  31. output
  32. sorting the scores
  33. 64
  34. line 3
  35. line 3
  36. 67
  37. processing
  38. working out a tip
  39. input
  40. False

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