← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. line 3
  3. line 3
  4. False
  5. 3000
  6. working out a tip
  7. a beep sound
  8. False
  9. working out a tip
  10. sorting the scores
  11. checking a password
  12. a buzz (vibration)
  13. output
  14. sorting the scores
  15. True
  16. 430
  17. 140
  18. False
  19. line 3
  20. 360
  21. typing your age
  22. line 3
  23. True
  24. adding up a bill
  25. input
  26. line 2
  27. True
  28. 270
  29. processing
  30. line 3
  31. 61
  32. a buzz (vibration)
  33. line 3
  34. processing
  35. 100
  36. line 2
  37. output
  38. line 3
  39. True
  40. line 3

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