← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. speaking a command
  4. False
  5. a pop-up message
  6. False
  7. 230
  8. 90
  9. typing your age
  10. 72
  11. line 2
  12. a result on screen
  13. typing your age
  14. line 2
  15. 350
  16. line 3
  17. input
  18. working out a tip
  19. line 3
  20. 100
  21. False
  22. line 2
  23. False
  24. sorting the scores
  25. input
  26. True
  27. 220
  28. input
  29. checking a password
  30. False
  31. 180
  32. adding up a bill
  33. 150
  34. 250
  35. line 3
  36. line 3
  37. working out a tip
  38. taking a photo
  39. True
  40. 165

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