← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 280
  2. output
  3. line 3
  4. output
  5. True
  6. input
  7. 170
  8. 13
  9. line 3
  10. 6000
  11. 225
  12. False
  13. checking a password
  14. line 3
  15. False
  16. 21
  17. 140
  18. True
  19. speaking a command
  20. a buzz (vibration)
  21. 70
  22. False
  23. False
  24. processing
  25. False
  26. 160
  27. sorting the scores
  28. 135
  29. line 3
  30. True
  31. line 3
  32. 13000
  33. adding up a bill
  34. adding up a bill
  35. 360
  36. line 3
  37. line 3
  38. output
  39. output
  40. processing

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