← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. line 3
  3. processing
  4. False
  5. 15000
  6. 225
  7. line 2
  8. 300
  9. output
  10. line 3
  11. a result on screen
  12. line 3
  13. False
  14. processing
  15. adding up a bill
  16. a result on screen
  17. a beep sound
  18. processing
  19. tapping a button
  20. a beep sound
  21. 170
  22. 210
  23. line 3
  24. line 3
  25. output
  26. 300
  27. True
  28. False
  29. line 3
  30. 2000
  31. line 3
  32. sorting the scores
  33. 22
  34. line 3
  35. tapping a button
  36. 330
  37. 12000
  38. a buzz (vibration)
  39. input
  40. True

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