← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. a buzz (vibration)
  3. line 3
  4. 105
  5. output
  6. output
  7. False
  8. line 2
  9. line 2
  10. line 3
  11. checking a password
  12. checking a password
  13. line 3
  14. tapping a button
  15. False
  16. line 3
  17. processing
  18. line 3
  19. 10000
  20. working out a tip
  21. True
  22. True
  23. 31
  24. working out a tip
  25. line 3
  26. input
  27. line 3
  28. input
  29. 52
  30. a buzz (vibration)
  31. adding up a bill
  32. output
  33. 460
  34. typing your age
  35. tapping a button
  36. sorting the scores
  37. input
  38. True
  39. line 3
  40. False

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