← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 140
  3. line 3
  4. a result on screen
  5. processing
  6. taking a photo
  7. True
  8. working out a tip
  9. a beep sound
  10. tapping a button
  11. 8000
  12. False
  13. 360
  14. input
  15. input
  16. 74
  17. checking a password
  18. processing
  19. output
  20. output
  21. processing
  22. output
  23. typing your age
  24. False
  25. False
  26. sorting the scores
  27. False
  28. working out a tip
  29. False
  30. tapping a button
  31. 275
  32. line 2
  33. False
  34. adding up a bill
  35. 13000
  36. True
  37. line 3
  38. speaking a command
  39. sorting the scores
  40. 340

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