← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. checking a password
  3. line 3
  4. line 3
  5. True
  6. speaking a command
  7. processing
  8. line 3
  9. output
  10. False
  11. 510
  12. a result on screen
  13. False
  14. a pop-up message
  15. 13000
  16. processing
  17. 325
  18. 74
  19. a beep sound
  20. True
  21. line 3
  22. processing
  23. a buzz (vibration)
  24. typing your age
  25. 15000
  26. 100
  27. output
  28. False
  29. line 2
  30. output
  31. typing your age
  32. 54
  33. line 3
  34. working out a tip
  35. 7000
  36. line 3
  37. 175
  38. 2000
  39. adding up a bill
  40. line 3

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