← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 100
  2. input
  3. line 3
  4. taking a photo
  5. 590
  6. 200
  7. processing
  8. typing your age
  9. line 3
  10. working out a tip
  11. working out a tip
  12. 200
  13. line 3
  14. 59
  15. output
  16. tapping a button
  17. line 3
  18. 75
  19. input
  20. line 3
  21. a beep sound
  22. True
  23. line 3
  24. line 3
  25. typing your age
  26. True
  27. 14000
  28. taking a photo
  29. checking a password
  30. processing
  31. 340
  32. output
  33. line 3
  34. line 3
  35. a pop-up message
  36. line 2
  37. a beep sound
  38. a result on screen
  39. a buzz (vibration)
  40. line 2

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