← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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