901.The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators?
- True
- False
902.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>
903.The number 544.53 must be stored in data type?
- int
- short
- float
- char
904.A template function can have different type of arguments?
- True
- False
905.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
905.Template class cannot have static variables?
- True
- False
906.Which of the following is used with bit manipulation?
- Signed integer
- Un-signed integer
- Signed double
- Un-signed double
907.Structure is a collection of under a single name?
- Only Functions
- Only Variables
- Both Functions and Variables
- None of the given options
908.Which of the following is the correct C++ syntax to allocate space dynamically for an array int?
- new int(10 ;
- new int[10] ;
- int new(10 ;
- int new[10];
909.Unary operator implemented as member function takes arguments whereas non-member function?
- takes arguments.
- One, zero
- Zero, one
- One, two
- Two, one
910.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
911.We can also do conditional compilation with preprocessor directives?
- True
- False
912.If a symbolic constant has been defined, it will be an error to define it again?
- True
- False
913.While calling function, the arguments are assigned to the parameters from?
- right to left
- no specific order is followed
- none of the given options.
914.Classes defined inside other classes are called?
classes
- looped
- nested
- overloaded
- none of the given options.
915.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
916.Assignment operator is associative?
- right
- left
- binary
- unary
917.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 dynamic
- Creates an array of pointers to string
- Creates a string Object
918.Th 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
919.The code is written the program.
- implement
- design
- analysis
- none of the given options.
920.Memory allocated at run time is a system resource and it is the responsibility to de-allocate the
Memory?
- System
- Programmer
- User of program
- None of given options
921*.doc is by type?
- Sequential File
- Random Access File
- Data File
- Record File
922.Which of the following is NOT a preprocessor directive?
- #error
- #define
- #line
- #ndefine
923.The return type of operator function must always be void?
- True
- False
924.What does *this represents
- The current function of the class
- The current pointer of the class
- The current object of the class
- A value of the data member
925.The statement cin.get ; is used to?
- Read a string from keyboard
- Read a character from keyboard
- Read a string from file
- Read a character from file
926.When we do dynamic memory allocation in the constructor of a class, then it is necessary to provide a destructor?
- True
- False
927.Overloaded new operator function takes parameter of type size and returns?
- void (nothing
- void pointer
- object pointer
- int pointer
928.The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators?
- True
- False
929. C++ is a case-sensitive language?
- True
- False
930.To include code from the library in the program, such as iostream, a directive would be called up using this?
- #include “iostream.h”
- include <iostream.h>
- include <iostream.h>
- #include <iostream.h>
931.A template function must have only generic data types
- True
- False
932.Template class cannot have static variables?
- True
- False
933.What will be the correct syntax to assign an array named array of 5 elements t
- pointer PTR
- *ptr = arr ;
- ptr = arr ;
- *ptr = arr[5] ;
- ptr = arr[5] ;
934.hat will be the correct syntax to access the value of fourth element of an array using pointer PTR?
- ptr[3]
- (ptr+3
- *(ptr+3
- Both 1and 3
935.If most significant bit of un-signed number is 1 then it represents a positive number.
- True
- False
936.If there is a symbol (& sign used with the variable name followed by data type then it refers to and if & is being used with variable name then it refers to ? .
- Address of variable, reference variable
- Reference variable, value of variable
- Reference variable, address of variable
- Address of variable, value of variable
937.We can also do conditional compilation with preprocessor directives?
- True
- False
938.The default value of a parameter can be provided inside the?
- function prototype
- function definition
- both function prototype or function definition
- none of the given options.
939.Classes defined inside other classes are called?
- classes
- looped
- nested
- overloaded
- none of the given options
940.Wat purpose do classes serve?
- Data encapsulation
- Providing a convenient way of modeling real-world objects
- Simplifying code reuse
- All of the given options
941.Every class contains?
- Constructor
- Destructor
- Both a constructor and a destructor
- None of the given options
942.new operator is used to allocate memory from the free store during?
- Compile
- Time Run Time
- Link Time
- None of the given options
943.When an object of a class is defined inside another class?
- Destructor of enclosing class will be called first
- Destructor of inner object will be called first
- Constructor and Destructor will be called simultaneously
- None of the given options
944.It is possible to define a class within another class?
- True
- False
945.New and Delete are also used with and data types as well?
- Class, Objects
- Structures, Pointers
- Both Class and structures
- None of above
946.With New keyword, data types and class members are initialized with meaningful values instead of garbage.
- True
- False
947.If it is required to copy an array to another array?
- Both arrays must be of the same size and data ty
- Both arrays may be of different size
- Both arrays may be of different data type
- Both arrays may be of different size and type
948.Dealing with structures and functions passing by reference is the most economical method?
- True
- False
949. The good(, clear( all are manipulators?
- True
- False
950.Overloaded new operator function takes parameter of type size_t and returns?
- void (void pointer
- object pointer
int pointer