← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. False
  3. False
  4. a result on screen
  5. checking a password
  6. 50
  7. typing your age
  8. output
  9. output
  10. 80
  11. 9000
  12. True
  13. sorting the scores
  14. line 2
  15. 510
  16. line 3
  17. 310
  18. True
  19. line 3
  20. speaking a command
  21. line 3
  22. working out a tip
  23. False
  24. input
  25. line 3
  26. line 3
  27. a pop-up message
  28. line 3
  29. 3000
  30. processing
  31. 90
  32. tapping a button
  33. processing
  34. 200
  35. 165
  36. 11000
  37. 15000
  38. a buzz (vibration)
  39. processing
  40. adding up a bill

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