← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 10000
  3. input
  4. False
  5. False
  6. sorting the scores
  7. sorting the scores
  8. True
  9. 180
  10. checking a password
  11. line 3
  12. a buzz (vibration)
  13. line 3
  14. line 3
  15. line 3
  16. a pop-up message
  17. a buzz (vibration)
  18. 9000
  19. 46
  20. line 3
  21. False
  22. output
  23. False
  24. processing
  25. True
  26. 21
  27. input
  28. a beep sound
  29. 550
  30. a result on screen
  31. speaking a command
  32. False
  33. False
  34. True
  35. True
  36. a pop-up message
  37. 69
  38. line 2
  39. a result on screen
  40. typing your age

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