← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. input
  3. sorting the scores
  4. adding up a bill
  5. line 3
  6. line 3
  7. 120
  8. False
  9. line 3
  10. False
  11. processing
  12. input
  13. a buzz (vibration)
  14. 180
  15. speaking a command
  16. 18
  17. 12000
  18. output
  19. speaking a command
  20. line 2
  21. tapping a button
  22. line 2
  23. True
  24. processing
  25. line 2
  26. 4000
  27. 3000
  28. taking a photo
  29. sorting the scores
  30. 230
  31. 300
  32. a pop-up message
  33. 5000
  34. 2000
  35. processing
  36. True
  37. 300
  38. 150
  39. checking a password
  40. working out a tip

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