← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. typing your age
  3. sorting the scores
  4. processing
  5. 11000
  6. 36
  7. line 3
  8. output
  9. 2000
  10. False
  11. 3000
  12. 200
  13. line 3
  14. True
  15. typing your age
  16. line 3
  17. processing
  18. 310
  19. working out a tip
  20. 510
  21. 65
  22. a beep sound
  23. 71
  24. line 3
  25. False
  26. 80
  27. input
  28. 210
  29. True
  30. True
  31. line 2
  32. line 2
  33. True
  34. working out a tip
  35. line 3
  36. 80
  37. checking a password
  38. adding up a bill
  39. line 2
  40. input

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