← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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