← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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