← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. line 3
  4. 54
  5. a pop-up message
  6. 7000
  7. True
  8. speaking a command
  9. a result on screen
  10. output
  11. line 2
  12. a buzz (vibration)
  13. False
  14. speaking a command
  15. 60
  16. line 3
  17. checking a password
  18. True
  19. working out a tip
  20. False
  21. tapping a button
  22. line 3
  23. False
  24. typing your age
  25. tapping a button
  26. input
  27. input
  28. line 3
  29. processing
  30. 15000
  31. False
  32. adding up a bill
  33. line 3
  34. line 3
  35. 240
  36. 100
  37. taking a photo
  38. 15
  39. True
  40. line 3

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