← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. 11000
  3. adding up a bill
  4. 240
  5. False
  6. False
  7. 10000
  8. output
  9. speaking a command
  10. a pop-up message
  11. line 3
  12. typing your age
  13. tapping a button
  14. sorting the scores
  15. False
  16. input
  17. output
  18. False
  19. speaking a command
  20. output
  21. line 2
  22. True
  23. 3000
  24. False
  25. 57
  26. 430
  27. 8000
  28. 7000
  29. 50
  30. line 3
  31. processing
  32. line 3
  33. working out a tip
  34. a beep sound
  35. 16
  36. 61
  37. True
  38. 5000
  39. True
  40. processing

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