CS-201 Final Term Exams Preparation Virtual University With Answers

image
image
image

CS-201 Final Term Exams Preparation Virtual University

Sr. # Questions Answers Choice
1 "setprecision" manipulator will set. The number of digits after the decimal point. The number of digits before the decimal point The number of digits in a number None of the given options
2 A Matrix can be composed of ints, floats or doubles as their elements. Best way is to handle this Write a separate class to handle each Use templates Use strings to store all types None of the given options
3 NULL value has been defined in ______ and _________ header files. strings.h and iostream.h ctype.h and conio.c conio.c and conio.h stdlib.h and stddef.h
4 A pointer variable can be, Decremented Incremented Multiplied Both Iecremented and Decremented
5 When an object of a class is defined inside an other class then Constructor of enclosing class will be called first Constructor of inner object will be called first Constructor and Destructor will be called simultaneously None of the given options
6 When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are. Zero One Two N arguments
7 Which of the following function call is correct for the function prototype? defaultParameters ( int a, int b = 7, char z = ‘*’ ); defaultParameters (5); defaultParameters (5, ‘8’); defaultParameters (6, ‘#’); defaultParameters (0, 0, ‘*’, 0);
8 The operator used for casting, in C, is standard ________ operator. none of the given options cast cost const
9 The endl and flush are _______ Functions Operators Manipulators Objects
10 The operator function overloaded for an Assignment operator (=) must be. Non-member function of class Member function of class Friend function of class None of the given options
Download This Set