← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. 310
  3. sorting the scores
  4. True
  5. tapping a button
  6. 440
  7. processing
  8. working out a tip
  9. speaking a command
  10. False
  11. True
  12. line 3
  13. processing
  14. False
  15. 350
  16. output
  17. 14
  18. False
  19. True
  20. output
  21. input
  22. output
  23. False
  24. line 2
  25. line 3
  26. checking a password
  27. False
  28. True
  29. taking a photo
  30. 530
  31. a pop-up message
  32. taking a photo
  33. line 3
  34. checking a password
  35. typing your age
  36. line 3
  37. line 3
  38. 200
  39. tapping a button
  40. 8000

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