Teacher Name:Mr. Rung Date of Lesson: January
Course Name: C++ Lesson Name: Chap 9.1b
Student Name
Password
Objective To complete the workbook questions.
Primary Focus Select the appropriate answers below.
Site Links Course Home Page
Additional Resources
Site Links
Question #1
Why is autonomy in functions important?
A: prevents accidental data change B: makes the function more reusable C: both a and b D: prevents syntax errors E: None of these
Question #2
What are the steps of the programming process?
A: Define, develop, code, test, document and maintain B: Define, document, develop, code, test and maintain C: Define, code, test, document and maintain D: Define, develop, code, test, and document E: None of these
Question #3
Why is a function prototype required?
A: Defines the function B: Enters the code for the function C: It is not required D: Lets the compiler know it exists E: None of these
Question #4
Briefly describe what encapsulation is and why it is important.
A: Makes the function self contained so all you need know is the task is being done. B: Makes a function error free. C: Focuses on how the code works. D: Prevents others from seeing your code. E: None of these
Question #5
Why do functions make programming easier?
A: Makes a program easier to write. B: Makes a program easier to read and debug. C: Makes a program easier to compile. D: Makes a program easier to save. E: None of these