← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. output
  3. False
  4. False
  5. a result on screen
  6. 41
  7. False
  8. True
  9. 60
  10. 6000
  11. False
  12. 14000
  13. adding up a bill
  14. typing your age
  15. 570
  16. working out a tip
  17. 160
  18. 300
  19. a beep sound
  20. 90
  21. working out a tip
  22. True
  23. output
  24. True
  25. sorting the scores
  26. True
  27. a result on screen
  28. taking a photo
  29. line 3
  30. processing
  31. processing
  32. 71
  33. True
  34. checking a password
  35. line 3
  36. line 3
  37. False
  38. 30
  39. input
  40. False

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