← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. taking a photo
  3. 79
  4. speaking a command
  5. True
  6. False
  7. a beep sound
  8. True
  9. 30
  10. adding up a bill
  11. input
  12. True
  13. line 3
  14. True
  15. input
  16. typing your age
  17. processing
  18. a beep sound
  19. 330
  20. 6000
  21. line 3
  22. False
  23. line 3
  24. 570
  25. 200
  26. 14
  27. 90
  28. line 2
  29. False
  30. sorting the scores
  31. line 3
  32. 330
  33. line 3
  34. 7000
  35. adding up a bill
  36. a result on screen
  37. output
  38. line 3
  39. line 3
  40. processing

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