← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. output
  3. False
  4. taking a photo
  5. a buzz (vibration)
  6. processing
  7. a beep sound
  8. 80
  9. tapping a button
  10. True
  11. sorting the scores
  12. False
  13. line 3
  14. a result on screen
  15. a buzz (vibration)
  16. 150
  17. line 3
  18. a pop-up message
  19. line 2
  20. 45
  21. 6000
  22. a result on screen
  23. input
  24. True
  25. checking a password
  26. 90
  27. True
  28. processing
  29. line 2
  30. sorting the scores
  31. taking a photo
  32. line 3
  33. output
  34. line 3
  35. 165
  36. True
  37. 410
  38. line 3
  39. processing
  40. line 2

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