Sr. # | Questions | Answers Choice |
---|---|---|
1 | 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 |
2 | Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments. | One, zero Zero, one One, two Two, one |
3 | Structure is a collection of ______________ under a single name. | Only Functions Only Variables Both Functions and Variables None of the given options |
4 | Which of the following is used with bit manipulation? | Signed integer Un-signed integer Signed double Un-signed double |
5 | 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 |
6 | The number 544.53 must be stored in _____ data type. | int short float (Sure) char |
7 | 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> |
8 | 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 |
9 | All preprocessor directives are started with the symbol______. | * + @ # |
10 | Pointer is a variable which store | Data Memory Address Data Type Values |