← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 2
  3. a result on screen
  4. sorting the scores
  5. False
  6. 9000
  7. line 3
  8. 24
  9. checking a password
  10. line 3
  11. 11000
  12. True
  13. working out a tip
  14. input
  15. processing
  16. line 3
  17. checking a password
  18. working out a tip
  19. output
  20. input
  21. a beep sound
  22. 250
  23. 5000
  24. True
  25. 7000
  26. False
  27. line 3
  28. line 2
  29. typing your age
  30. 71
  31. 210
  32. False
  33. processing
  34. 8000
  35. processing
  36. line 3
  37. line 3
  38. tapping a button
  39. tapping a button
  40. False

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