Top 1000+ Object Oriented Programming (OOP) Subject Mcqs Pdf Download Set No 14

651. 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

  1. only 0
  2. only 1
  3. only 2

652.Which of the following is used with bit manipulation?

  1. Un-signed integer
  2. Signed double
  3. Un-signed double

653.With user-defined data type variables (Objects self-assignment can produce?                 

  1.  Syntax error
  2.  Logical error
  3.  Link error
  4. None

654.Assignment operator is used to initialize a newly declared object from existing

Object?

  1. True
  2. False

655.When an object of a class is defined inside another class then?

  1. Constructor of enclosing class will be called first      
  2. Constructor of inner object will be called first
  3. Constructor and Destructor will be called simultaneously
  4. None of the given option

656.In the member initialize list, the data members are initialized,

  1. From left to right
  2. From right to left
  3. In the order in which they are defined within class
  4. None of the given options

657.New operator allocates memory from free store and return?                         

  1.  A pointer
  2. A reference
  3. .A integer
  4. N.A float

658.”new” and “delete” keywords are in C++ language.

  1.  Built-in- Function
  2. Operators
  3. Memory Allocation Function   
  4. None of the given options

659.&& is ——————– operator

  1. An arithmetic
  2. Logical  
  3. Relational
  4. Unary

660.Which of the following function are included in ctype.h header file?

  1. isdigit(int c
  2. isxdigit(int c
  3. tolower(int c
  4. All of the above    

661.Disks are devices having access time of milliseconds.

  1. Electro-physical, 6
  2. Electro-Mechanical, 4
  3.  Electro-physical, 5
  4. Electro-Mechanical,

662.All preprocessor directives are started with the symbol           

  1. *  
  2. @
  3. #

663.When we use manipulators in our program then which header file should be included?

  1. iostream.h
  2. stdlib.h
  3. stdio.h
  4. iomanip.h     

664.setprecision is a parameter less manipulator.

  1. True
  2. False

665.Which of the following is NOT a preprocessor directive?

  1. #error
  2. #Define
  3. #line
  4. #Ndefine

666.We can do arithmetic with references like pointers.

  1. True
  2. False

667.What does (*this represents)?

  1. The current function of the class
  2. The current pointer of the class
  3. The current object of the class
  4. A value of the data member

668.Friend function of a class is                            

  1. Member function
  2. Non-member function
  3. Private function Public function

669.A function can declare itself a friend of a c

  1. True
  2. False  

670.Overloaded delete operator function takes the same parameter as an argument returned by new operator function.

  1. True   
  2. False

671.The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators.

  1. True  
  2. False

672.A template function must have at least generic data type

  1. Zero
  2. One     
  3. Two
  4. Three

673.A template function must have only generic data types.

  1. True
  2. False 

674.We cannot make a member function of a class as template function.

  1. True
  2. False

675.Which character is inserted at the end of string?

  1. new line
  2. tab
  3. null 
  4. carriage return

676…….is used for                      

  1. calculation
  2. reading
  3. assigning value to variables  
  4. None of the given options.

677.The object   may be used both for file input and file output

  1. fstream, 
  2. ifstream,
  3. ofstream,
  4. none of the given options.

678.Which of the following function calling mechanism is true for the function prototype given below?

  1. Call by value
  2. Call by reference using pointer
  3. Call by reference using reference variable
  4. None of the given options

679.The programs in which we allocate static memory, run essentially on              _

  1. Heap
  2. System Cache
  3. None of the given options
  4. Stack    

680.Overloaded delete operator function takes parameter of void pointer and returns            

  1. void
  2. void pointer
  3. pointer to an object
  4. pointer of type int

681.What should be the return type of the constructor?

  1. int
  2. same as object type
  3. constructors do not return any thing 

682. It is a way of reusing the code when we contain objects of our already written classes into a new class?

  1. True
  2. False

683.Templates are not X type?

  1. true
  2. false

684.The functions used for dynamic memory allocation return pointer of type                 

  1. int
  2. float
  3. void
  4. double

685.  Types of software

  1. Two 
  2. Three
  3. Four
  4. Five

686.seekg and write are functionally                                   

  1. Different
  2. Identical
  3. Two names of same function
  4. None of the above

687.When a pointer is incremented, it actually jumps the number of memory addresses

  1. According to data type
  2. 1 byte exactly
  3. 1 bit exactly
  4. A pointer variable cannot be incremented

688.The Setw is a parameterized manipulator

  1. True  
  2. False

689. The (Eof bad( good( , clear(  all are manipulators)?

  1. True
  2. False

690. We will use variable in functions that return reference?

  1. Local
  2. Global
  3. Global or static
  4. None of the given option

691.The declaratory of Plus (+ member operator function is?

  1. Class-Name operator + (Class-Name RHS
  2. operator Class-Name +
  3. operator Class-Name +rhs
  4. Class-Name operator +

692.The compiler will not provide a copy constructor if we do not provide it?

  1. True
  2. False  

693.What is the functionality of the following syntax to delete an array of 5 objects new operator?

  1. delete array;
  2. Deletes all the objects of array
  3. Deletes one object of array411
  4. Do not delete any object
  5. Results into syntax error

694.What is the sequence of event when allocating memory using new operator?

  1. Only block of memory is allocated for objects
  2. Only constructor is called for objects
  3. Memory is allocated first before calling constructo
  4. Constructor is called first before allocating memory

696.What is the sequence of events when de allocating memory using delete operator?

  1. Only block of memory is de allocated for objects
  2. Only destructor is called for objects
  3. Memory is de allocated first before calling destructor
  4. Destructor is called first before de allocating memory

697.new and delete operators cannot be overloaded as member functions?

  1. True
  2. False 

698.The operator function of << and >> operators are always the member function of a class?

  1. True
  2. False

699.A template function must have at least ———- generic data type?

  1. Zero
  2. One
  3. Two
  4. Three

700.If we do not mention any return_value_type with a function, it will return an value?

  1. int   
  2. void
  3. double
  4. float