← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. a pop-up message
  3. processing
  4. speaking a command
  5. 460
  6. 300
  7. input
  8. True
  9. output
  10. processing
  11. 600
  12. False
  13. working out a tip
  14. line 2
  15. typing your age
  16. True
  17. 49
  18. line 3
  19. False
  20. input
  21. 540
  22. line 3
  23. a buzz (vibration)
  24. line 3
  25. tapping a button
  26. line 3
  27. True
  28. processing
  29. taking a photo
  30. True
  31. 14
  32. line 3
  33. 90
  34. adding up a bill
  35. False
  36. working out a tip
  37. sorting the scores
  38. a result on screen
  39. line 3
  40. 8000

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