C/C /C (CPP) MCQ Question with Answer Sample Test,Sample questions

Question:
A C++ code line ends with ___

1.A Semicolon (;)

2.A Fullstop(.)

3.A Comma ()

4.A Slash (/)


Question:
A class whos objects can not be created is known as _____

1.Absurd Class

2.Dead Class

3.Super Class

4.Abstract Class


Question:
A ponter pointing to a variable that is not initialized is called ____

1.Void Pointer

2.Null Pointer

3.Empty Pointer

4.Wild Pointer


Question:
An exceptio in C++ can be generated using which keywords.

1.thrown

2.threw

3.throw

4.throws


Question:
An expression A.B in C++ means ____

1.A is member of object B

2.B is member of Object A

3.Product of A and B

4.None of these


Question:
Default constructor has ____ arguments.

1.No argument

2.One Argument

3.Two Argument

4.None of these


Question:
In C++ Program inline fuctions are expanded during ____

1.Run Time

2.Compile Time

3.Debug Time

4.Coding Time


Question:
In CPP members of a class are ______ by default.

1.Public

2.Private

3.Protected

4.Static


Question:
´╗┐Delaration a pointer more than once may cause ____

1.Error

2.Abort

3.Trap

4.Null


Question:
Reusability of code in C++ is achieved through ___

1.Polymorphism

2.Inheritance

3.Encapsulation

4.Both A and B


Question:
To perfor file input / output operation in C++ we must include which header file ?

1.<fiostream>

2.<ifstream>

3.<ofstream>

4.<fstream>


Question:
Which class allows only one object to be created.

1.Nuclear Family Class

2.Abstruct Class

3.Sigleton Class

4.Numero Uno Class


Question:
Which one is not a correct variable type in C++?

1.float

2.real

3.int

4.double


Question:
Which operation is used as Logical 'AND'

1.Operator-&

2.Operator-||

3.Operator-&&

4.Operator +


Question:
___ function is used to allocate space for array in memory.

1.malloc()

2.realloc()

3.alloc()

4.calloc


More MCQS

  1. C++ Programming MCQS Set-1
  2. C++ Multiple Choice Questions Set-1
  3. C++ Multiple Choice Questions Set-2
  4. C++ Programming MCQS Set-2
  5. C++ Programming MCQS Set-3
  6. C++ Programming MCQS Set-4
  7. C++ (CPP) MCQ Question with Answer
  8. Advanced c++ multiple choice question(MCQS)
  9. OOPS Quiz Questions and Answers(MCQS)
  10. C Programming - MCQ Questions Set 1
  11. C Programming - MCQ Questions Set 2
  12. C Programming - MCQ Questions Set 3
  13. C Programming - MCQ Questions Set 4
  14. C Programming - MCQ Questions Set 5
  15. C++ programming language MCQ Questions Set 1
  16. C++ programming language MCQ Questions Set 2
  17. C++ programming language MCQ Questions Set 3
  18. C++ programming language MCQ Questions Set 4
  19. C++ programming language MCQ Questions Set 5
  20. C++ Programming -Constructors and Destructors
  21. C++ Programming -OOPS Concepts
  22. C++ Programming - References
  23. C++ Programming - Functions
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!