← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. 6000
  3. processing
  4. output
  5. line 2
  6. False
  7. False
  8. line 3
  9. input
  10. a result on screen
  11. tapping a button
  12. False
  13. line 3
  14. line 3
  15. True
  16. 56
  17. 11000
  18. line 2
  19. line 3
  20. speaking a command
  21. line 3
  22. output
  23. False
  24. line 3
  25. line 3
  26. 130
  27. 340
  28. checking a password
  29. a beep sound
  30. output
  31. True
  32. 130
  33. 2000
  34. processing
  35. 50
  36. 5000
  37. 310
  38. True
  39. line 3
  40. tapping a button

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