← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. True
  3. False
  4. a pop-up message
  5. sorting the scores
  6. processing
  7. 570
  8. a pop-up message
  9. 20
  10. True
  11. 40
  12. False
  13. 8000
  14. adding up a bill
  15. line 3
  16. line 3
  17. processing
  18. 3000
  19. 510
  20. False
  21. 58
  22. line 3
  23. taking a photo
  24. a buzz (vibration)
  25. line 3
  26. input
  27. False
  28. adding up a bill
  29. tapping a button
  30. speaking a command
  31. 74
  32. 14
  33. line 2
  34. True
  35. False
  36. a buzz (vibration)
  37. 15000
  38. 41
  39. 240
  40. False

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