← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. output
  3. a result on screen
  4. True
  5. 9000
  6. 2000
  7. tapping a button
  8. typing your age
  9. output
  10. checking a password
  11. True
  12. a pop-up message
  13. taking a photo
  14. a result on screen
  15. checking a password
  16. 330
  17. speaking a command
  18. a buzz (vibration)
  19. taking a photo
  20. input
  21. True
  22. line 3
  23. input
  24. input
  25. typing your age
  26. False
  27. 490
  28. 140
  29. working out a tip
  30. line 3
  31. line 2
  32. tapping a button
  33. line 3
  34. False
  35. speaking a command
  36. adding up a bill
  37. line 2
  38. 450
  39. True
  40. 33

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