← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 100
  2. False
  3. a pop-up message
  4. typing your age
  5. False
  6. False
  7. line 3
  8. output
  9. a result on screen
  10. line 3
  11. 160
  12. input
  13. 90
  14. 46
  15. True
  16. line 2
  17. processing
  18. line 3
  19. line 2
  20. line 3
  21. processing
  22. output
  23. 40
  24. a pop-up message
  25. 6000
  26. True
  27. False
  28. 2000
  29. speaking a command
  30. line 3
  31. True
  32. True
  33. 34
  34. a buzz (vibration)
  35. 12000
  36. adding up a bill
  37. processing
  38. 90
  39. a beep sound
  40. True

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