← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 440
  2. line 2
  3. False
  4. line 3
  5. 255
  6. 490
  7. processing
  8. line 3
  9. adding up a bill
  10. adding up a bill
  11. input
  12. 4000
  13. 18
  14. True
  15. typing your age
  16. processing
  17. a beep sound
  18. False
  19. a result on screen
  20. 2000
  21. False
  22. tapping a button
  23. True
  24. typing your age
  25. 45
  26. a result on screen
  27. line 3
  28. working out a tip
  29. line 3
  30. checking a password
  31. 65
  32. 240
  33. sorting the scores
  34. 9000
  35. input
  36. False
  37. output
  38. 26
  39. line 3
  40. taking a photo

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