← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 150
  3. taking a photo
  4. True
  5. processing
  6. False
  7. line 3
  8. 4000
  9. processing
  10. taking a photo
  11. line 3
  12. False
  13. line 2
  14. line 3
  15. 40
  16. input
  17. 300
  18. 195
  19. line 3
  20. False
  21. processing
  22. a buzz (vibration)
  23. 30
  24. a beep sound
  25. True
  26. a result on screen
  27. line 3
  28. 550
  29. typing your age
  30. False
  31. line 3
  32. speaking a command
  33. line 3
  34. True
  35. 180
  36. False
  37. 600
  38. True
  39. a pop-up message
  40. line 3

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