← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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