CSC102 Exam Questions with Correct Answers
CSC102 Exam Questions with Correct Answers When writing the definition of a friend function, the name of the class and the scope resolution operator precede the name of the friend function in the function heading (T/F) - Answer-False A friend function does not have access to the private data members of the class (T/F) - Answer-False Answer-sizeof (return this) vs (return * this) - Answer-address, value friend function vs member function - Answer-nonmember, member of a class C++ provides all the exception classes you will ever need (T/F) - Answer-False One of the typical ways of dealing with exceptions is to use an if statement (T/F) - Answer-True In C++, any class can be considered an exception class (T/F) - Answer-True An object that is being thrown cannot be an anonymous object (T/F) - Answer-True The order of the catch blocks does not affect the program (T/F) - Answer-False The heading of a try block can contain ellipses in place of a parameter (T/F) - Answer- False
Written for
- Institution
- CSC102
- Course
- CSC102
Document information
- Uploaded on
- April 13, 2024
- Number of pages
- 2
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
- csc102
- csc102 exam
- csc102 exam questions
-
csc102 exam questions with correct answers
Also available in package deal