← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 370
  2. sorting the scores
  3. input
  4. checking a password
  5. 340
  6. 11000
  7. 540
  8. 13000
  9. output
  10. True
  11. 45
  12. a pop-up message
  13. processing
  14. checking a password
  15. a beep sound
  16. False
  17. line 3
  18. taking a photo
  19. 510
  20. a beep sound
  21. adding up a bill
  22. line 3
  23. 4000
  24. a buzz (vibration)
  25. typing your age
  26. line 3
  27. 3000
  28. typing your age
  29. 170
  30. False
  31. taking a photo
  32. True
  33. line 3
  34. 53
  35. line 3
  36. 150
  37. 460
  38. False
  39. a buzz (vibration)
  40. 530

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