Question No: 1 If it is required to copy an array to another array then,
► Both arrays must be of the same size and data type
► Both arrays may be of different size
► Both arrays may be of different data type
► Both arrays may be of different size and type
Question No: 2 Dealing with structures and functions passing by reference is the most economical method
► True
► False
Question No: 3 eof( ), bad( ), good( ), clear( ) all are manipulators.
► True
► False
Question No: 4 Overloaded new operator function takes parameter of type size_t and returns
► void (nothing)
► void pointer
► object pointer
► int pointer
Question No: 5 When new operator is overloaded at global level then corresponding built-in new operator will not be visible to whole of the program.
► True
► False
Question No: 6 If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
► parentheses ( )
► braces { }
► brackets [ ]
► arrows < >
Question No: 7 The return type of a function that do not return any value must be ________
► float
► int
► void
► double
Question No: 8 UNIX has been developed in ________ language.
► JAVA
► B
► C
► FORTRAN
Question No: 9 Like member functions, ______ can also access the private data members of a class.
► Non-member functions
► Friend functions
► Any function outside class
► None of the given options
Question No: 10 Which of the following statement is best regarding declaration of friend function?
► Friend function must be declared after public keyword.
► Friend function must be declared after private keyword.
► Friend function must be declared at the top within class definition.
► It can be declared anywhere in class as these are not affected by the public
andprivate keywords.
Question No: 11 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
Question No: 12 The endl and flush are _______
► Functions
► Operators
► Manipulators
► Objects
Question No: 13 If a symbolic constant has been defined, it will be an error to define it again.
► True
► False
Question No: 14 The operator used for casting, in C, is standard ________ operator.
► none of the given options.
► cast
► cost
► const
Question No: 15 Constructors can not be overloaded like ordinary functions.
► True
► False
Question No: 16 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);
Question No: 17 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
Question No: 18 We can not define a variable of user-defined data type in the class.
► True
► False
Question No: 19 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
Question No: 20 The appropriate data type to store the number of rows and colums of the matrix is____________.
► float
► int
► char
► none of the given options.
Question No: 21 Class is a user defined___________.
► data type
► memory referee
► value
► none of the given options.
Question No: 22 A pointer variable can be,
► Decremented
► Incremented
► Multiplied
► Both Decremented and Incremented
Question No: 23 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
Question No: 24 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
Question No: 25 "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
Question No: 26 Which of the following option will be true, if we overload "-=" operator?
► only - operator needs to be overloaded (not sure)
► Minus (-) and = operators need to be overloaded
► the -= operator need to be overloaded explicitly
► the - and = operators need to be overloaded implicitly
► Both arrays must be of the same size and data type
► Both arrays may be of different size
► Both arrays may be of different data type
► Both arrays may be of different size and type
Question No: 2 Dealing with structures and functions passing by reference is the most economical method
► True
► False
Question No: 3 eof( ), bad( ), good( ), clear( ) all are manipulators.
► True
► False
Question No: 4 Overloaded new operator function takes parameter of type size_t and returns
► void (nothing)
► void pointer
► object pointer
► int pointer
Question No: 5 When new operator is overloaded at global level then corresponding built-in new operator will not be visible to whole of the program.
► True
► False
Question No: 6 If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
► parentheses ( )
► braces { }
► brackets [ ]
► arrows < >
Question No: 7 The return type of a function that do not return any value must be ________
► float
► int
► void
► double
Question No: 8 UNIX has been developed in ________ language.
► JAVA
► B
► C
► FORTRAN
Question No: 9 Like member functions, ______ can also access the private data members of a class.
► Non-member functions
► Friend functions
► Any function outside class
► None of the given options
Question No: 10 Which of the following statement is best regarding declaration of friend function?
► Friend function must be declared after public keyword.
► Friend function must be declared after private keyword.
► Friend function must be declared at the top within class definition.
► It can be declared anywhere in class as these are not affected by the public
andprivate keywords.
Question No: 11 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
Question No: 12 The endl and flush are _______
► Functions
► Operators
► Manipulators
► Objects
Question No: 13 If a symbolic constant has been defined, it will be an error to define it again.
► True
► False
Question No: 14 The operator used for casting, in C, is standard ________ operator.
► none of the given options.
► cast
► cost
► const
Question No: 15 Constructors can not be overloaded like ordinary functions.
► True
► False
Question No: 16 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);
Question No: 17 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
Question No: 18 We can not define a variable of user-defined data type in the class.
► True
► False
Question No: 19 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
Question No: 20 The appropriate data type to store the number of rows and colums of the matrix is____________.
► float
► int
► char
► none of the given options.
Question No: 21 Class is a user defined___________.
► data type
► memory referee
► value
► none of the given options.
Question No: 22 A pointer variable can be,
► Decremented
► Incremented
► Multiplied
► Both Decremented and Incremented
Question No: 23 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
Question No: 24 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
Question No: 25 "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
Question No: 26 Which of the following option will be true, if we overload "-=" operator?
► only - operator needs to be overloaded (not sure)
► Minus (-) and = operators need to be overloaded
► the -= operator need to be overloaded explicitly
► the - and = operators need to be overloaded implicitly
0 comments
Post a Comment