← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 180
  2. 10000
  3. False
  4. 13
  5. True
  6. input
  7. output
  8. processing
  9. line 3
  10. False
  11. 15
  12. line 3
  13. False
  14. line 3
  15. 140
  16. False
  17. tapping a button
  18. 290
  19. 67
  20. input
  21. line 3
  22. a buzz (vibration)
  23. 180
  24. 14000
  25. line 3
  26. 77
  27. 6000
  28. sorting the scores
  29. line 3
  30. False
  31. output
  32. working out a tip
  33. sorting the scores
  34. typing your age
  35. line 3
  36. False
  37. True
  38. False
  39. taking a photo
  40. False

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