← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 12000
  3. a result on screen
  4. 34
  5. a beep sound
  6. 75
  7. 8000
  8. tapping a button
  9. output
  10. a buzz (vibration)
  11. a result on screen
  12. sorting the scores
  13. 17
  14. True
  15. line 2
  16. 6000
  17. 200
  18. False
  19. output
  20. 3000
  21. True
  22. 14000
  23. typing your age
  24. False
  25. output
  26. 22
  27. 175
  28. 73
  29. input
  30. a pop-up message
  31. line 3
  32. checking a password
  33. typing your age
  34. processing
  35. True
  36. True
  37. 60
  38. line 3
  39. 180
  40. 71

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