Question No: 1 Pointer is a variable which store,
► Data
► Memory Address
► Data Type
► Values
Question No: 2 All preprocessor directives are started with the symbol______.
► *
► +
► @
► #
Question No: 3 Within the statement obj1=obj2; obj1 will call the assignment operator function and obj2 will be passed as an argument to function.
► True
► False
Question No: 4 What is the sequence of event(s) when deallocating memory using delete operator?
► Only block of memory is deallocated for objects
► Only destructor is called for objects
► Memory is deallocated first before calling destructor
► Destructor is called first before deallocating memory
Question No: 5 The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators. http://vustudents.ning.com
► True
► False
Question No: 6 To include code from the library in the program, such as iostream, a directive would be called up using this command.
► #include “iostream.h”
► include <iostream.h>
► include <iostream.h>
► #include <iostream.h>
Question No: 7 The number 544.53 must be stored in _____ data type.
► int
► short
► float
► char
Question No: 8 A template function can have different type of arguments.
► True
► False
Question No: 9 For which values of the integer _value will the following code becomes an infinite loop?
int number=1;
while (true) {
cout << number;
if (number == 3) break;
number += integer_value; }
► any number other than 1 or 2
► only 0
► only 1
► only 2
Question No: 10 Template class cannot have static variables.
► True
► False
Question No: 11 Which of the following is used with bit manipulation?
► Signed integer
► Un-signed integer
► Signed double
► Un-signed double
Question No: 12 Structure is a collection of ______________ under a single name.
► Only Functions
► Only Variables
► Both Functions and Variables
► None of the given options
Question No: 13 Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?
► new int(10) ;
► new int[10] ;
► int new(10) ;
► int new[10];
Question No: 14 Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.
► One, zero
► Zero, one
► One, two
► Two, one
Question No: 15 The first parameter of overloaded stream insertion operator is _________ where second parameter is _______
► input stream, object of class
► object of class, output stream
► output stream, object of class
► object of class, input stream
Question No: 16 We can also do conditional compilation with preprocessor directives.
► True
► False
Question No: 17 If a symbolic constant has been defined, it will be an error to define it again.
► True
► False
Question No: 18 While calling function, the arguments are assigned to the parameters from _____________.
► left to right.
► right to left
► no specific order is followed
► none of the given options.
Question No: 19 Classes defined inside other classes are called ________ classes
► looped
► nested
► overloaded
► none of the given options.
Question No: 20 If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.
► cannot be replaced
► None of the given options
► Remain constant.
► can be changed by some operation
Question No: 21 Assignment operator is -------------------------associative
► right
► left
► binary
► unary
Question No: 22 If text is a pointer of class String then what is meant by the following statement?
text = new String [5];
► Creates an array of 5 string objects statically
► Creates an array of 5 string objects dynamically
► Creates an array of pointers to string
► Creates a string Object
Question No: 23 The return type of the operator function for << operator is __________.
► class for which we overload operator
► reference of ostream class (ostream&)
► reference of istream class (istream&)
► void
Question No: 24 The code is written to __________ the program.
► implement
► design
► analysis
► none of the given options.
Question No: 25 Memory allocated at run time is a system resource and it is the responsibility of _____ to de-allocate the memory.
► System
► Programmer
► User of program
► None of given options
Question No: 26 Templates are not type safe.
► true
► false
► Data
► Memory Address
► Data Type
► Values
Question No: 2 All preprocessor directives are started with the symbol______.
► *
► +
► @
► #
Question No: 3 Within the statement obj1=obj2; obj1 will call the assignment operator function and obj2 will be passed as an argument to function.
► True
► False
Question No: 4 What is the sequence of event(s) when deallocating memory using delete operator?
► Only block of memory is deallocated for objects
► Only destructor is called for objects
► Memory is deallocated first before calling destructor
► Destructor is called first before deallocating memory
Question No: 5 The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators. http://vustudents.ning.com
► True
► False
Question No: 6 To include code from the library in the program, such as iostream, a directive would be called up using this command.
► #include “iostream.h”
► include <iostream.h>
► include <iostream.h>
► #include <iostream.h>
Question No: 7 The number 544.53 must be stored in _____ data type.
► int
► short
► float
► char
Question No: 8 A template function can have different type of arguments.
► True
► False
Question No: 9 For which values of the integer _value will the following code becomes an infinite loop?
int number=1;
while (true) {
cout << number;
if (number == 3) break;
number += integer_value; }
► any number other than 1 or 2
► only 0
► only 1
► only 2
Question No: 10 Template class cannot have static variables.
► True
► False
Question No: 11 Which of the following is used with bit manipulation?
► Signed integer
► Un-signed integer
► Signed double
► Un-signed double
Question No: 12 Structure is a collection of ______________ under a single name.
► Only Functions
► Only Variables
► Both Functions and Variables
► None of the given options
Question No: 13 Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?
► new int(10) ;
► new int[10] ;
► int new(10) ;
► int new[10];
Question No: 14 Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.
► One, zero
► Zero, one
► One, two
► Two, one
Question No: 15 The first parameter of overloaded stream insertion operator is _________ where second parameter is _______
► input stream, object of class
► object of class, output stream
► output stream, object of class
► object of class, input stream
Question No: 16 We can also do conditional compilation with preprocessor directives.
► True
► False
Question No: 17 If a symbolic constant has been defined, it will be an error to define it again.
► True
► False
Question No: 18 While calling function, the arguments are assigned to the parameters from _____________.
► left to right.
► right to left
► no specific order is followed
► none of the given options.
Question No: 19 Classes defined inside other classes are called ________ classes
► looped
► nested
► overloaded
► none of the given options.
Question No: 20 If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.
► cannot be replaced
► None of the given options
► Remain constant.
► can be changed by some operation
Question No: 21 Assignment operator is -------------------------associative
► right
► left
► binary
► unary
Question No: 22 If text is a pointer of class String then what is meant by the following statement?
text = new String [5];
► Creates an array of 5 string objects statically
► Creates an array of 5 string objects dynamically
► Creates an array of pointers to string
► Creates a string Object
Question No: 23 The return type of the operator function for << operator is __________.
► class for which we overload operator
► reference of ostream class (ostream&)
► reference of istream class (istream&)
► void
Question No: 24 The code is written to __________ the program.
► implement
► design
► analysis
► none of the given options.
Question No: 25 Memory allocated at run time is a system resource and it is the responsibility of _____ to de-allocate the memory.
► System
► Programmer
► User of program
► None of given options
Question No: 26 Templates are not type safe.
► true
► false
0 comments
Post a Comment