{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CIS 247 FINAL EXAM GUIDE

CIS 247 FINAL EXAM GUIDE - C CLASS CIS 247 FINAL EXAM NAME...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
C++ CLASS CIS 247 FINAL EXAM NAME_______________________________________ FINAL EXAMINATION WORTH 200 POINTS True/False Indicate whether the statement is true or false. ____ 1. By default, all members of a class are public. Pg.643 ____ 2. In C++, the terms “objects” and “members” mean the same thing. Pg. 646 ____ 3. Given the declaration. 646 - 648 class myClass { public: void print(); //Output the value of x; MyClass(); private: int x; }; myClass myObject; The following statement is legal. myObject.print = 10; ____ 4. The built-in operations on class objects are member selection and assignment. Pg. 648 ____ 5. A constructor has no type and is therefore a void function. Pg 663 ____ 6. A class can have more than one destructor. Pg. 673
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
____ 7. If the derived class does not override a public member function of the base class, you may specify a call to that public member function by using the name of the function and the appropriate parameter list. Pg. 745 ____ 8. The constructor of a derived class specifies a call to the constructor of a base class in the body of the function definition. Pg. 728 ____ 9. An OOD implements OOP. Pg 7 ____ 10. In C++, the asterisk character is only used as the binary multiplication operator. 788 ____ 11. In C++, the dot operator has a lower precedence than the dereferencing operator. 794 ____ 12. A memory leak is an unused memory space that cannot be allocated. 800 ____ 13. The binding of virtual functions occurs at program execution time. 826 ____ 14. If a class contains a pure virtual function, then the class is an abstract class. 831 ____ 15. An abstract class does not need to provide the definitions of the member functions that are not pure virtual because you cannot create objects of the abstract class. 832 Multiple Choice Identify the choice that best completes the statement or answers the question. ____ 16. The components of a class are called the ____ of the class. 642 a. elements c. objects b. members d. properties ____ 17. Which of the following class definitions is correct in C++? 642/644
Image of page 2
____
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern