← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a beep sound
  3. tapping a button
  4. processing
  5. 100
  6. taking a photo
  7. typing your age
  8. 360
  9. line 3
  10. a pop-up message
  11. typing your age
  12. input
  13. a buzz (vibration)
  14. line 3
  15. line 3
  16. 58
  17. False
  18. 6000
  19. False
  20. 5000
  21. line 3
  22. working out a tip
  23. 10
  24. 65
  25. line 3
  26. line 3
  27. a beep sound
  28. output
  29. True
  30. line 3
  31. 11000
  32. line 2
  33. line 3
  34. sorting the scores
  35. 310
  36. 7000
  37. False
  38. 40
  39. 190
  40. line 2

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