← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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