← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. tapping a button
  3. line 2
  4. False
  5. output
  6. input
  7. line 2
  8. False
  9. line 3
  10. processing
  11. 240
  12. 160
  13. sorting the scores
  14. 100
  15. 32
  16. line 3
  17. processing
  18. input
  19. 3000
  20. 46
  21. 90
  22. 14000
  23. line 3
  24. taking a photo
  25. 7000
  26. input
  27. working out a tip
  28. a beep sound
  29. False
  30. processing
  31. True
  32. line 3
  33. line 3
  34. 120
  35. typing your age
  36. working out a tip
  37. tapping a button
  38. True
  39. line 3
  40. a pop-up message

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