← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. False
  4. False
  5. 23
  6. checking a password
  7. line 3
  8. output
  9. input
  10. True
  11. False
  12. 250
  13. line 3
  14. line 3
  15. line 3
  16. False
  17. False
  18. False
  19. 330
  20. 41
  21. processing
  22. taking a photo
  23. line 3
  24. 350
  25. line 3
  26. line 3
  27. line 3
  28. True
  29. line 2
  30. 270
  31. 71
  32. line 2
  33. 360
  34. checking a password
  35. line 2
  36. speaking a command
  37. 80
  38. 75
  39. a result on screen
  40. False

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