← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. typing your age
  3. processing
  4. True
  5. taking a photo
  6. a pop-up message
  7. working out a tip
  8. line 2
  9. 13000
  10. line 2
  11. 29
  12. 470
  13. 510
  14. typing your age
  15. sorting the scores
  16. a result on screen
  17. 250
  18. True
  19. 320
  20. True
  21. adding up a bill
  22. adding up a bill
  23. line 3
  24. line 3
  25. 150
  26. 560
  27. output
  28. 140
  29. line 3
  30. processing
  31. True
  32. a beep sound
  33. False
  34. 80
  35. line 3
  36. 520
  37. a beep sound
  38. 400
  39. checking a password
  40. speaking a command

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