← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. working out a tip
  3. taking a photo
  4. True
  5. a pop-up message
  6. line 3
  7. 26
  8. checking a password
  9. adding up a bill
  10. input
  11. False
  12. input
  13. line 3
  14. 180
  15. processing
  16. 120
  17. a result on screen
  18. line 3
  19. adding up a bill
  20. a beep sound
  21. 11000
  22. True
  23. typing your age
  24. a result on screen
  25. 13000
  26. False
  27. line 3
  28. 330
  29. True
  30. output
  31. a buzz (vibration)
  32. False
  33. True
  34. False
  35. a beep sound
  36. 25
  37. input
  38. tapping a button
  39. 135
  40. 16

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