← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. 570
  3. line 3
  4. line 3
  5. output
  6. True
  7. typing your age
  8. working out a tip
  9. 9000
  10. tapping a button
  11. line 3
  12. output
  13. line 3
  14. a beep sound
  15. line 3
  16. 3000
  17. 275
  18. adding up a bill
  19. sorting the scores
  20. output
  21. line 3
  22. False
  23. 240
  24. a beep sound
  25. 30
  26. 300
  27. output
  28. line 3
  29. line 2
  30. 20
  31. 44
  32. line 3
  33. processing
  34. True
  35. False
  36. 65
  37. input
  38. line 3
  39. False
  40. 360

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