← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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