← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. 90
  3. line 3
  4. False
  5. False
  6. processing
  7. a beep sound
  8. True
  9. input
  10. 5000
  11. line 3
  12. output
  13. True
  14. checking a password
  15. 380
  16. line 3
  17. line 3
  18. checking a password
  19. False
  20. line 3
  21. working out a tip
  22. input
  23. a buzz (vibration)
  24. taking a photo
  25. line 3
  26. 220
  27. a result on screen
  28. line 3
  29. input
  30. False
  31. taking a photo
  32. 11
  33. False
  34. False
  35. sorting the scores
  36. 220
  37. True
  38. 9000
  39. True
  40. adding up a bill

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