A) int x=3,y=4; cout << largerx,y) ;
B) float x=3,y=4; cout << largerx,y) ;
C) char x='3',y='4'; cout << largerx,y) ;
D) char x[]="3",y[]="4"; cout << largerx,y) ;
Correct Answer
verified
Short Answer
Correct Answer
verified
Multiple Choice
A) swaps1,s2) ;
B) swapint1,int2) ;
C) swapch1,ch2) ;
D) swapint1,ch2) ;
Correct Answer
verified
Multiple Choice
A) template
B) template <class int>
C) template <class T>
D) template <void>
Correct Answer
verified
Multiple Choice
A) data abstraction
B) polymorphism
C) information hiding
D) algorithm abstraction
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) allows us to skip the implementation of that template class
B) allows us to write one class definition that can hold different data types
C) means we never have to write non-template classes again
D) is illegal
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) template <class T>
B) template <Class >
C) <template> class T
D) all of the above
Correct Answer
verified
Short Answer
Correct Answer
verified
Multiple Choice
A) A class which defines a new type of array
B) A class which defines rational numbers
C) A class which defines customers for a store
D) All of the above
Correct Answer
verified
Multiple Choice
A) containerClass myContainer;
B) containerClass<T> myContainer;
C) containerClass<int> myContainer;
D) containerClass myContainer<int>
Correct Answer
verified
True/False
Correct Answer
verified
Short Answer
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) 1
B) 2
C) 3
D) 4
Correct Answer
verified
Multiple Choice
A) the data type must be a pre-defined data type
B) the data type must have a < operator defined for it
C) the data type must be numeric
D) the data type must be character based
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) when the implementation details of the function are independent of the data types) of the parameters.
B) all functions should be function templates
C) when two different functions have different implementation details
D) only when two functions have the same type of parameters
Correct Answer
verified
Showing 1 - 20 of 33
Related Exams