← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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