← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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