c**********e 发帖数: 2007 | 1 C++ Q90: class templates
What type of class template can be nested?
A. Only non-template classes
B. Only class templates
C. Both class templates and non-template classes
D. Neither class templates nor non-template classes
C++ Q91: this pointer
Which one of the following operations requires explicit use of a this
pointer?
A. Calling a member function that requires a pointer to that object from
another member function in the same object
B. Calling a global function that requires a pointer to that object from a
member function
C++ Q92: function templates and overloading
Multiple choice: Identify what formal type parameters are used for.
A. To specify the argument types to a function template
B. To instantiate a function template
C. To specify the return type of a function template
D. To declare variables within the function template body |
c**********e 发帖数: 2007 | 2 Q90: class templates
The given answer is C.
【在 c**********e 的大作中提到】 : C++ Q90: class templates : What type of class template can be nested? : A. Only non-template classes : B. Only class templates : C. Both class templates and non-template classes : D. Neither class templates nor non-template classes : C++ Q91: this pointer : Which one of the following operations requires explicit use of a this : pointer? : A. Calling a member function that requires a pointer to that object from
|
c**********e 发帖数: 2007 | 3 The given answer is B.
C++ Q91: this pointer
Which one of the following operations requires explicit use of a this
pointer?
A. Calling a member function that requires a pointer to that object from
another member function in the same object
B. Calling a global function that requires a pointer to that object from a
member function
【在 c**********e 的大作中提到】 : Q90: class templates : The given answer is C.
|
c**********e 发帖数: 2007 | 4 The given answer for Q92 is A, C, D.
C++ Q92: function templates and overloading
Multiple choice: Identify what formal type parameters are used for.
A. To specify the argument types to a function template
B. To instantiate a function template
C. To specify the return type of a function template
D. To declare variables within the function template body
【在 c**********e 的大作中提到】 : The given answer is B. : : C++ Q91: this pointer : Which one of the following operations requires explicit use of a this : pointer? : A. Calling a member function that requires a pointer to that object from : another member function in the same object : B. Calling a global function that requires a pointer to that object from a : member function
|