C/C MCQ Quiz Hub

C programming language MCQ Questions Set 2

Choose a topic to test your knowledge and improve your C/C skills

Which of the following is the correct syntax of including a user defined header files in C++?





✅ Correct Answer: 3

Which of the following is a correct identifier in C++?





✅ Correct Answer: 3

Which of the following is called address operator?





✅ Correct Answer: 2

Which of the following is used for comments in C++?





✅ Correct Answer: 3

What are the actual parameters in C++?





✅ Correct Answer: 1

What are the formal parameters in C++?





✅ Correct Answer: 2

Which function is used to read a single character from the console in C++?





✅ Correct Answer: 1

Which function is used to write a single character to console in C++?





✅ Correct Answer: 1

 What are the escape sequences?





✅ Correct Answer: 1

Which of the following escape sequence represents carriage return?





✅ Correct Answer: 1

Which of the following escape sequence represents tab?





✅ Correct Answer: 1

Who created C++?





✅ Correct Answer: 1

Which of the following is called insertion/put to operator?





✅ Correct Answer: 1

Which of the following is called extraction/get from operator?





✅ Correct Answer: 2

A language which has the capability to generate new data types are called _______





✅ Correct Answer: 1

Wrapping data and its related functionality into a single entity is known as ______





✅ Correct Answer: 2

How structures and classes in C++ differ?





✅ Correct Answer: 1

What does polymorphism in OOPs mean?





✅ Correct Answer: 1

Which concept allows you to reuse the written code?





✅ Correct Answer: 3

Which of the following shows multiple inheritances?





✅ Correct Answer: 3

How access specifiers in Class helps in Abstraction?





✅ Correct Answer: 2

C++ is _______





✅ Correct Answer: 4

What does modularity mean?





✅ Correct Answer: 2

Which of the following class allows to declare only one object of it?





✅ Correct Answer: 3

Which of the following is not a type of Constructor?





✅ Correct Answer: 1

Which of the following is correct?





✅ Correct Answer: 2

Out of the following, which is not a member of the class?





✅ Correct Answer: 2

What is the other name used for functions inside a class?





✅ Correct Answer: 2

Which of the following cannot be a friend?





✅ Correct Answer: 3

Why references are different from pointers?





✅ Correct Answer: 4

Which of the following provides a programmer with the facility of using object of a class inside other classes?





✅ Correct Answer: 2

How many types of polymorphism are there in C++?





✅ Correct Answer: 2

How run-time polymorphisms are implemented in C++?





✅ Correct Answer: 4

How compile-time polymorphisms are implemented in C++?





✅ Correct Answer: 3

Which of the following is an abstract data type?





✅ Correct Answer: 3

 Which concept means the addition of new components to a program as it runs?





✅ Correct Answer: 3

Which of the following explains the overloading of functions?





✅ Correct Answer: 3

Which of the following approach is used by C++?





✅ Correct Answer: 2

 Which operator is overloaded for a cout object?





✅ Correct Answer: 2

Which of the following cannot be used with the virtual keyword?





✅ Correct Answer: 3

Which concept is used to implement late binding?





✅ Correct Answer: 1

Which of the following is correct?





✅ Correct Answer: 4

Which of the following supports the concept that reusability is a desirable feature of a language?





✅ Correct Answer: 4

Which of the following is a static polymorphism mechanism?





✅ Correct Answer: 4

Which of the following is not a type of inheritance?





✅ Correct Answer: 3

What happens if a class does not have a name?





✅ Correct Answer: 2

Which members are inherited but are not accessible in any case?





✅ Correct Answer: 1

Which of the following is correct?





✅ Correct Answer: 4

Which of the following is correct in C++?





✅ Correct Answer: 2

Which of the following is used to make an abstract class?





✅ Correct Answer: 4