← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. speaking a command
  3. output
  4. True
  5. a result on screen
  6. speaking a command
  7. 170
  8. input
  9. 180
  10. line 3
  11. line 3
  12. 2000
  13. 370
  14. line 2
  15. line 3
  16. output
  17. 240
  18. False
  19. taking a photo
  20. 36
  21. adding up a bill
  22. False
  23. sorting the scores
  24. 300
  25. 6000
  26. line 3
  27. 9000
  28. working out a tip
  29. input
  30. input
  31. 490
  32. line 3
  33. True
  34. 50
  35. 450
  36. line 3
  37. line 3
  38. True
  39. a buzz (vibration)
  40. typing your age

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