← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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