← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. 460
  4. output
  5. 11
  6. 550
  7. False
  8. tapping a button
  9. line 3
  10. input
  11. typing your age
  12. True
  13. False
  14. typing your age
  15. True
  16. taking a photo
  17. 170
  18. line 3
  19. True
  20. False
  21. speaking a command
  22. processing
  23. tapping a button
  24. processing
  25. line 3
  26. 540
  27. 35
  28. a result on screen
  29. input
  30. sorting the scores
  31. working out a tip
  32. line 3
  33. a beep sound
  34. True
  35. line 3
  36. line 3
  37. taking a photo
  38. line 3
  39. a pop-up message
  40. True

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