← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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