← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. line 3
  3. 55
  4. a pop-up message
  5. 68
  6. adding up a bill
  7. True
  8. False
  9. speaking a command
  10. processing
  11. output
  12. False
  13. 19
  14. 40
  15. False
  16. 76
  17. taking a photo
  18. line 3
  19. False
  20. a result on screen
  21. 27
  22. 270
  23. checking a password
  24. line 2
  25. input
  26. processing
  27. 19
  28. line 3
  29. line 3
  30. typing your age
  31. line 3
  32. typing your age
  33. True
  34. line 3
  35. adding up a bill
  36. line 3
  37. taking a photo
  38. 7000
  39. line 2
  40. input

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