← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. line 3
  3. line 3
  4. 90
  5. a buzz (vibration)
  6. input
  7. line 3
  8. processing
  9. 160
  10. 11000
  11. False
  12. a beep sound
  13. False
  14. sorting the scores
  15. line 3
  16. taking a photo
  17. output
  18. line 2
  19. True
  20. input
  21. False
  22. 4000
  23. 50
  24. output
  25. 2000
  26. line 3
  27. working out a tip
  28. speaking a command
  29. 68
  30. 390
  31. processing
  32. taking a photo
  33. line 3
  34. True
  35. 520
  36. checking a password
  37. 500
  38. 170
  39. input
  40. False

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