← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 4000
  2. output
  3. checking a password
  4. 12000
  5. line 2
  6. line 3
  7. False
  8. input
  9. line 3
  10. line 3
  11. output
  12. a pop-up message
  13. processing
  14. line 3
  15. False
  16. working out a tip
  17. speaking a command
  18. False
  19. line 3
  20. output
  21. processing
  22. 3000
  23. line 3
  24. a beep sound
  25. 44
  26. True
  27. 80
  28. 150
  29. 475
  30. processing
  31. sorting the scores
  32. 70
  33. tapping a button
  34. line 3
  35. 450
  36. input
  37. line 2
  38. line 3
  39. True
  40. tapping a button

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