← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. True
  3. 240
  4. typing your age
  5. input
  6. 80
  7. line 3
  8. 4000
  9. input
  10. a pop-up message
  11. input
  12. processing
  13. False
  14. a beep sound
  15. 12000
  16. 72
  17. line 3
  18. a pop-up message
  19. 190
  20. 50
  21. 40
  22. a result on screen
  23. sorting the scores
  24. checking a password
  25. line 2
  26. speaking a command
  27. line 3
  28. output
  29. line 3
  30. typing your age
  31. line 3
  32. True
  33. 25
  34. 45
  35. 70
  36. line 3
  37. False
  38. line 3
  39. line 3
  40. working out a tip

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