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

Print/Downlaod pdf

801.Structure is a collection of a single name?

  1. Only Functions
  2. Only Variables
  3. Both Functions and Variables
  4. None of the given options

802. C++ syntax to allocate space dynamically for an array int?

  1. new int (10;
  2. new int [10];
  3. int new (10);
  4. int new [10];

804.Unary operator implemented as member function takes   arguments whereas non-member function takes arguments?

  1. One, zero
  2. Zero, one
  3. One, two
  4. Two, one

 805.The first parameter of overloaded stream insertion operator so where will be second parameter?

  1. input stream, object of class
  2. object of class, output stream
  3. output stream, object of class
  4. object of class, input stream

806.We can also do conditional compilation with preprocessor directives.

  1. True
  2. False

  1. True
  2. False

807. The symbolic constant has been defined it again.

  1. True
  2. False

808.The arguments are assigned to the parameters from                        

  1. left to right
  2. right to left
  3. no specific order is followed
  4. none of the given options.

809. when Classes will define inside other classes?

  1. classes
  2. looped
  3. nested
  4. overloaded
  5. none of the given options.

810.identifier with the statement #define PI 3.1415926 then during the execution of the program

Will be?

  1. the value of PI                    
  2. cannot be replaced
  3. None of the given options
  4. Remain constant
  5. can be changed by some operation

811.Assignment operator will be for associative?

  1. right
  2. left
  3. binary
  4. unary

812.If text will be a pointer of String Classes then what will be for the following statement?

text = new String [5];

  1. Creates an array of 5 string objects statically
  2. creates an array of 5 string objects dynamic
  3. Creates an array of pointers to string
  4. Creates a string Object

813.The return type of the operator function for << operator is?                   

  1. class for which we overload operator
  2. reference of O stream class (O stream&
  3. reference of stream class (istream&
  4. void

814.The code is written to the program.

        implement

  1. design
  2. analysis
  3. none of the given options.

815.Memory allocated at run time is a system resource and what will be the responsibility of

  1. memory.
  2. System
  3. Programmer
  4. User of program
  5. None of given options

816.Templates will not safe type?

  1. True
  2. False

817.*.doc will by type.

  1. Sequential File
  2. Random Access File
  3. Data File
  4. Record File

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


  1. #Error
  2. #Define
  3. #Line     
  4. #Ndefine

819.The return type of operator function must always be void.

  1. True
  2. False

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

821.The statement cin.get (; is used to,

  1. Read a string from keyboard
  2. Read a character from keyboard
  3. Read a string from file
  4. Read a character from file

822.When we do dynamic memory allocation in the constructor of a class, then it is necessary to provide a destructor.

  1. True
  2. False

823.Overloaded new operator function takes parameter of type size_t and returns

  1. void (nothing)
  2. void pointer
  3. object pointer
  4. int pointer

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

A.            True

B.            False


825. C++ is a case-sensitive language

  1. True
  2. False

826.To include code from the library in the program?

  1. #include “iostream.h”
  2. include < iostream.h>
  3. include < iostream.h>
  4. #include < iostream.h>

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

  1. True
  2. False

828.Template class will not have static variables.

  1. True
  2. False

829.What will be the correct syntax to assign array of 5 elements to a pointer?

  1. *pointer = array;
  2. pointer = array;
  3. *pointer= array [5];
  4. pointer = array [5];

830.What will be the correct syntax to access the value of fourth element of an array using pointer

Pointer?

  1. Pointe [3]
  2. (ptr+3
  3. *(ptr+3
  4. Both 1and 3

831.The most significant bit of un-signed number is 1 then it represents a positive number.

  1. True
  2. False

832.I What is meant by a symbol & sign used with the variable name? 

  1.  Address of variable, reference variable
  2.  Reference variable, value of variable
  3.    Reference variable, address of variable367
  4.  Address of variable, value of variable

833.How can conditional compilation with preprocessor directives.

  1.  True272
  2.  False

834.How can give the default value of a parameter can be inside the    

 function prototype?

  1.  function definition
  2.  both function prototype or function definition
  3.  none of the given options.

835.Classes defined inside other classes are called?

  1. classes
  2. looped
  3. nested
  4. overloaded
  5. none of the given options.

836.What purpose of classes serve?

  1. Data encapsulation
  2.  Providing a convenient way of modeling real-world objects
  3. Simplifying code reuse
  4.  All of the given options

837.Every class contains                              

  1. Constructor
  2. Destructor
  3. Both a constructor and a destructor
  4. None of the given options

838. How will perform the new operator to allocate memory from the free store during?

  1.  Compile Time
  2. Run Time
  3. Link Time
  4. None of the given options

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

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

840. Is it possible to define a class within another class.

  1. True
  2. False

841.New and Delete are also used with and data types as well.

  1. Class, Objects
  2. Structures, Pointers
  3. Both Class and structures
  4. None of above

842. New keyword, data types and class members are initialized with meaningful values?

  1. True
  2. False

843.If it is required to copy an array to another array then?

  1. Both arrays must be of the same size and data type
  2. Both arrays may be of different size
  3. Both arrays may be of different data type
  4. Both arrays may be of different size and type

844. Which is best way for Dealing with structures and functions passing by reference is the most economical

  1. True
  2. False

845. Are all manipulators like Eof(,bad( , good( , clear?

  1. True
  2. False

846.Overloaded new operator function takes parameter of type Size-t and returns?

  1. void (nothing
  2. void pointer
  3. object pointer
  4. int pointer

847.When new operator is overloaded at global level then corresponding built-in new operator will not be visible to whole of the program.

  1. True
  2. False

848.If there is more than one statement in the block of a for loop, which will be of the beginning and the ending of the loop block?

  1. parentheses
  2. braces {}
  3. brackets []
  4. arrows < >

849.The return type of a function that do not return any value                 

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

850.UNIX will be developed in language.

  1. JAVA
  2. B
  3. C
  4. FORTRAN