← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 9000
  3. typing your age
  4. True
  5. 150
  6. typing your age
  7. 15000
  8. output
  9. input
  10. line 2
  11. 330
  12. 380
  13. line 3
  14. tapping a button
  15. a beep sound
  16. processing
  17. input
  18. checking a password
  19. line 3
  20. speaking a command
  21. False
  22. line 3
  23. 90
  24. 15
  25. processing
  26. True
  27. line 2
  28. line 3
  29. 47
  30. 285
  31. line 3
  32. False
  33. line 3
  34. 110
  35. 59
  36. True
  37. line 3
  38. adding up a bill
  39. taking a photo
  40. 20

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