← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 360
  2. line 3
  3. input
  4. a beep sound
  5. output
  6. tapping a button
  7. line 2
  8. 71
  9. True
  10. 240
  11. 130
  12. input
  13. line 3
  14. line 3
  15. True
  16. adding up a bill
  17. False
  18. checking a password
  19. 110
  20. adding up a bill
  21. tapping a button
  22. sorting the scores
  23. working out a tip
  24. 12000
  25. line 3
  26. 30
  27. a result on screen
  28. 8000
  29. line 2
  30. sorting the scores
  31. line 3
  32. speaking a command
  33. 2000
  34. False
  35. line 3
  36. False
  37. line 3
  38. 600
  39. 78
  40. taking a photo

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