← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. adding up a bill
  3. line 2
  4. adding up a bill
  5. a beep sound
  6. processing
  7. speaking a command
  8. True
  9. working out a tip
  10. line 3
  11. True
  12. typing your age
  13. 125
  14. output
  15. 4000
  16. True
  17. input
  18. line 2
  19. 330
  20. 80
  21. 10000
  22. taking a photo
  23. input
  24. working out a tip
  25. processing
  26. processing
  27. line 3
  28. 135
  29. True
  30. a result on screen
  31. line 3
  32. False
  33. 49
  34. line 3
  35. 60
  36. 7000
  37. line 3
  38. 410
  39. False
  40. a result on screen

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