851. In which 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 option
852.Which 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 and private keywords
853.The operator function overloaded for an Assignment operator
- Non-member function of class
- Member function of class
- Friend function of class
- None of the given options
854.The ENDL and flush are
- Functions
- Operators
- Manipulators
- Objects
855.If a symbolic constant has been defined, How this error to will be redefine
- True
- False
856.The operator used for casting, in C?
- none of the given options.
- cast
- cost
- const
857.Constructors cannot be overloaded for ordinary functions.
- True
- False
858.Which of the following function call will be for the function prototype?
Default Parameter Sint a, int b = 7, char z = ‘*’
- default Parameters (5;
- default Parameters (5, ‘8’;
- default Parameters (6, ‘#’;
- default Parameters (0, 0, ‘*’, 0;
859.When an operator function is defined as member function for a binary Plus operator?
- Zero
- One
- Two371
- N arguments
860.We cannot define a variable of user-defined data type in the class.
- True
- False
861.When the object of a class is defined inside another class?
- 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
862.The appropriate data type for store the number of rows and columns of the matrix
- int
- char
- none of the given options.
863.Class is a user defined
- data type
- memory referee
- value
- none of the given options.
864. The pointer variable can be?
- Decremented
- Incremented
- Multiplied
- Both Incremented and Decremented
865. How NULL value has been defined in header files?
- strings.h and iostream.h
- ctype.h and conio.c
- conio.c and conio.h
- StandardIIbrary.h and Stddef.h
866.A Matrix can be composed of Int, floats or doubles as their elements.
- Use templates527
- Use strings to store all types
- None of the given options
867.”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
868.Which of the following option will be true, if we overload “-=” operator?
- only – operator needs to be overloaded
- Minus (- and = operators need to be overloaded
- the -= operator need to be overloaded explicitly
- the – and = operators need to be overloaded implicitly
869.In C/C++ if we define an array of size eight (8 i.e int Arr [8]; then the last element of this array will be stored
At
- Arr[0]
- Arr8]
- Arr[7]
- Arr[-1]
870.When an array is passed to a function then default way of passing this array is?
- By reference
- By value
- By data type
871.Array is a data structure?
- Memory addresses Variables
- Data Type
- Data
872.We can also create an array of user define data type.
- True
- False
873.When we define an array of objects?
- Destructor will call once for whole array
- Destructor will call for each object of the array
- Destructor will never call
- Depends on the size of array
874.What is the sequence of event (s when allocating memory using new operator?
- Only block of memory is allocated for objects
- Only constructor is called for objects
- Memory is allocated first before calling constructor414
- Constructor is called first before allocating memory
875.We can delete an array of objects without specifying [] brackets
- True
- False
876.The second parameter of operator functions for << and >> are objects of the class
For which we are overloading these operators.
- True
- False
877.Which is correct way to initialize a variable x of int type with
value 1
- int x – x = 10
- int x = 10;
- int x, x = 10;
- x = 10
878.Default mechanism of function calling in array is and in case of
variable?
- Call by value, call by reference
- Call by reference, call by reference
- Call by reference, call by value
- Call by value, call by value
879.What does STL stand for?
- Source template library
- Standard template library
- Stream template library
- Standard temporary library
880.Skill is that needed by programmer’s
- Paying attention to detail
- Think about the reusab
- ility.
- Think about user interface
- All of the given options4 & 5
881.For which array the size of the array should be one more than the number of
elements in an array?
- int
- double
- float
- char
882. When m allocation and free are for new and delete?
- Functions, operators
- Classes, operators
- Operators, functions
- Operators, classes
883.Friend functions are of class.
- Member functions
- Public member function
- Private member functions
- Non-member functions
884.The prototype of friend functions must be written the class ?
- definition must be written
- inside, inside the class
- inside, outside the class
- outside, inside the class outside, outside the class
885.If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below?
- obj3 = obj1 + obj2 ;
- obj2 will be passed as an argument to + operator whereas obj2 will
- drive the + operator
- obj1 will drive the + operator whereas obj2 will be passed as an argument to + operatorBoth objects (obj1
- obj2 will be passed as arguments to the + operator
- Any of the objects (obj1, obj2 can drive the + operator
886.Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
- Class-name operator +( ;
- Class-name operator +(int ;
- Class-name operator ++(;
- Class-name operator ++(int ;
887.For cin, the source is normally a and destination can be ? .
- File, native data type
- Disk, user-define type
- Keyboard, variable
- For cin, the source is normally keyboard and the destination can be an ordinary variable
- File, user-define type
888.We can also do conditional compilation with preprocessor directives?
- True
- False
889.The programs, in which we allocate static memory will be run?
- Heap
- System Cache
- None of the given options
- Stack
890.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.
- The default value of a parameter is provided inside the function prototype or function definition.
891.While calling function, the arguments are assigned to the parameters from ?
- left to right 295
- right to left
- no specific order is followed
- none of the given options.
892.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
- Two371
- N arguments
893.When a call to a user-defined function finishes, the variable defined inside the function is still in existence?
- True
- False
894.The precedence of an operator can be changed through operator overloading?
- True
- False
895.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
896.”lete” operator is used to return memory to free store, which is allocated by the “new” operator?
- True332
- False
897.Pointer is a variable which store
- Data
- Memory
- Address
- Data Type
- Values
898.All preprocessor directives are started with the symbol? .
- . *
- +
- @
- #
899.Within the statement obj1=obj2; obj1 will call the assignment operator function and obj2 will be passed as an argument to function?
- False
- True
900.What is the sequence of event when de allocating 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