← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 32
  2. processing
  3. output
  4. line 3
  5. typing your age
  6. taking a photo
  7. line 3
  8. 18
  9. taking a photo
  10. line 3
  11. tapping a button
  12. True
  13. False
  14. line 3
  15. input
  16. False
  17. 45
  18. False
  19. input
  20. line 3
  21. True
  22. False
  23. input
  24. 12000
  25. 44
  26. 50
  27. True
  28. a pop-up message
  29. adding up a bill
  30. line 3
  31. working out a tip
  32. tapping a button
  33. a pop-up message
  34. 52
  35. 300
  36. output
  37. processing
  38. line 2
  39. False
  40. a beep sound

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