← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. adding up a bill
  3. 71
  4. working out a tip
  5. line 3
  6. speaking a command
  7. a pop-up message
  8. input
  9. 500
  10. sorting the scores
  11. 275
  12. a beep sound
  13. output
  14. False
  15. line 3
  16. line 2
  17. 3000
  18. 14
  19. input
  20. 120
  21. output
  22. line 3
  23. 540
  24. output
  25. 150
  26. 200
  27. 160
  28. input
  29. a result on screen
  30. tapping a button
  31. True
  32. processing
  33. True
  34. 290
  35. 13000
  36. 35
  37. a result on screen
  38. False
  39. line 3
  40. 9000

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