← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. line 3
  3. input
  4. a buzz (vibration)
  5. working out a tip
  6. output
  7. line 3
  8. 50
  9. line 3
  10. a result on screen
  11. a pop-up message
  12. True
  13. line 2
  14. working out a tip
  15. checking a password
  16. typing your age
  17. input
  18. 420
  19. taking a photo
  20. sorting the scores
  21. processing
  22. output
  23. 14000
  24. 12000
  25. input
  26. True
  27. a result on screen
  28. False
  29. 11000
  30. line 3
  31. False
  32. speaking a command
  33. line 3
  34. line 2
  35. True
  36. tapping a button
  37. 200
  38. 450
  39. line 2
  40. 2000

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