← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. False
  3. line 3
  4. output
  5. False
  6. 100
  7. tapping a button
  8. True
  9. a beep sound
  10. line 3
  11. line 3
  12. 570
  13. 75
  14. 28
  15. line 3
  16. 34
  17. working out a tip
  18. False
  19. line 3
  20. line 3
  21. 2000
  22. sorting the scores
  23. taking a photo
  24. 10000
  25. 60
  26. line 3
  27. processing
  28. a beep sound
  29. line 3
  30. True
  31. 9000
  32. typing your age
  33. 78
  34. True
  35. 110
  36. line 3
  37. 200
  38. checking a password
  39. 320
  40. 125

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