← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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