OOP UNIT I MCQ

OOP UNIT I MCQ , OOP UNIT I MCQ 22316 , OOP UNIT I MCQ MSBTE, OOP UNIT I MCQ OBJECT ORIENDTED PROGRAMMING C++, OOP UNIT I MCQ C++,MSBTE ,

 OOP UNIT I  MCQ 

MADE BY : -- VISHAL CHAVARE

SEMESTAR : -- THIRD

STUDY MATERIAL TYPE : -- MCQ

BRANCH :-- COMPUTER

                                       

                           UNIT-1

 

1. What is the size of wchar_t in C++?

 

A.   2

 

B.   4

 

C.   2 or 4

 

D.   based on the number of bits in the system ANSWER: A

2. Pick the odd one out

 

A.   array type

 

B.   character type

 

C.   boolean type

 

D.   integer type ANSWER: A

3. Which datatype is used to represent the absence of parameters?

 

A.   int

 

B.   short

 

C.   void

 

D.   float ANSWER: C

4. What does a escape code represent?

 

A.   alert

 

B.   backslash

 

C.   tab

 

D.   form feed ANSWER: B

 

 

5. Which type is best suited to represent the logical values?

 

A.   integer


B.   boolean

 

C.   character

 

D.   all of the mentioned ANSWER: B

6. Identify the user-defined types from the following?

 

A.   enumeration

 

B.   classes

 

C.   both a and b

 

D.   int ANSWER: C

7. Which of the following statements are true?        int f(float)

 

A.   f is a function taking an argument of type int and retruning a floating point number

 

B.   f is a function taking an argument of type float and returning a integer.

 

C.   f is a function of type float

 

D.   none of the mentioned ANSWER: B

8. The value 132.54 can represented using which data type?

 

A.   double

 

B.   void

 

C.   int

 

D.   bool ANSWER: A

 

 

9. When a language has the capability to produce new data type mean, it can be called as

 

A.   overloaded

 

B.   extensible

 

C.   encapsulated

 

D.   reprehensible


ANSWER: B

 

 

10.  Pick the odd one out.

 

A.   integer, character, boolean, floating

 

B.   enumeration, classes

 

C.   integer, enum, void

 

D.   arrays, pointer, classes ANSWER: C

 

 

11.  << is called

 

A.   Insertion operator

 

B.   Extraction operator

 

C.   Object

 

D.   Function ANSWER: A

 

 

12.  >> is called

 

A.   Insertion operator

 

B.   Extraction operator

 

C.   Object

 

D.   Function ANSWER: B

 

 

13.  cin object in c++ corresponds to the

 

A.   standard input stream

 

B.   standard output stream

 

C.   Iterative statement

 

D.   Function


ANSWER: A

 

 

14.  The for loop is best if we know

 

A.   Fixed number of iterations

 

B.   Test condition

 

C.   Value for calculation

 

D.   Number of conditions are fixed ANSWER: A

 

 

15.  In while loop condition is evaluated

 

A.   First then body is executed

 

B.   After the execution of body

 

C.   In between the body of the loop

 

D.   After update statement is executed ANSWER: A

 

 

16.  In do while loop the condition is evaluated

 

A.   First then body is executed

 

B.   After the execution of body

 

C.   In between the body of the loop

 

D.   After update statement is executed ANSWER: B

 

 

17.  To display output; what is used in C++

 

A.   cout

 

B.   cin

 

C.   header file

 

D.   class


ANSWER: A

 

 

18.    Function prototype is also called

 

A.   Function declaration

 

B.   Function definition

 

C.   Function call

 

D.   Return type ANSWER: A

 

 

19.  Inline function should be used

 

A.   Small set of code

 

B.   Large set of code

 

C.   Friend function

 

D.   For main() function ANSWER: A

 

 

20.  Static variable should be defined

 

A.   Inside the function

 

B.   Outside the function

 

C.   In the function call

 

D.   Anywhere ANSWER: B

 

 

21.  Parameters associated with function call are called

 

A.   Actual parameter

 

B.   Formal parameter

 

C.   Global parameter

 

D.   Auto parameter

I am Vishal Chavare , I'm a coder, animater. I'm extremely fond of anything related to education, animation & coding. I aim to reach my creative goals one step at a time I believe everyth…

Post a Comment

Solved Manual

© Computer Diploma Third Semester. All rights reserved. DMCA.com Protection Status