← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 12
  2. 475
  3. 260
  4. a result on screen
  5. False
  6. True
  7. a beep sound
  8. line 3
  9. working out a tip
  10. False
  11. output
  12. line 3
  13. processing
  14. adding up a bill
  15. a beep sound
  16. taking a photo
  17. speaking a command
  18. typing your age
  19. line 3
  20. line 3
  21. False
  22. tapping a button
  23. True
  24. 5000
  25. line 2
  26. sorting the scores
  27. True
  28. input
  29. 25
  30. input
  31. 38
  32. 80
  33. line 3
  34. False
  35. line 3
  36. 8000
  37. 300
  38. line 3
  39. processing
  40. tapping a button

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