← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. line 3
  3. a buzz (vibration)
  4. processing
  5. True
  6. adding up a bill
  7. a pop-up message
  8. 130
  9. False
  10. True
  11. line 2
  12. input
  13. False
  14. line 3
  15. line 3
  16. processing
  17. tapping a button
  18. line 3
  19. line 3
  20. adding up a bill
  21. input
  22. 54
  23. line 2
  24. line 2
  25. speaking a command
  26. 14000
  27. speaking a command
  28. a beep sound
  29. output
  30. typing your age
  31. output
  32. True
  33. line 3
  34. checking a password
  35. 210
  36. line 3
  37. 8000
  38. 240
  39. output
  40. line 3

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