← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. input
  3. processing
  4. 60
  5. 13000
  6. 400
  7. True
  8. False
  9. processing
  10. speaking a command
  11. adding up a bill
  12. 56
  13. line 2
  14. speaking a command
  15. 200
  16. 31
  17. a pop-up message
  18. True
  19. typing your age
  20. checking a password
  21. input
  22. sorting the scores
  23. 5000
  24. 540
  25. typing your age
  26. 560
  27. 90
  28. line 3
  29. sorting the scores
  30. input
  31. processing
  32. 11000
  33. 190
  34. adding up a bill
  35. line 3
  36. output
  37. a buzz (vibration)
  38. 55
  39. a pop-up message
  40. processing

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