← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. a buzz (vibration)
  3. line 3
  4. False
  5. checking a password
  6. False
  7. input
  8. True
  9. 11000
  10. 4000
  11. True
  12. input
  13. 400
  14. line 3
  15. 490
  16. processing
  17. checking a password
  18. 66
  19. processing
  20. processing
  21. a pop-up message
  22. 180
  23. working out a tip
  24. adding up a bill
  25. line 2
  26. 12000
  27. input
  28. tapping a button
  29. line 3
  30. True
  31. 450
  32. processing
  33. line 3
  34. line 3
  35. a beep sound
  36. 300
  37. 425
  38. line 3
  39. True
  40. 440

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