C/C MCQ Quiz Hub

C Programming MCQS Set-3

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

Which value can we not assign to reference?





✅ Correct Answer: 4

Identify the incorrect statement.





✅ Correct Answer: 2

Which reference modifier is used to define the reference variable?





✅ Correct Answer: 1

What does a reference provide?





✅ Correct Answer: 2

Identify the correct sentence regarding inequality between reference and pointer.





✅ Correct Answer: 1

What are the references in C++?





✅ Correct Answer: 1

What is the difference between references and pointers?





✅ Correct Answer: 1

Pick the correct statement about references in C++.





✅ Correct Answer: 2

Pick the correct statement about references.





✅ Correct Answer: 2

Which of the following operator is used while declaring references?





✅ Correct Answer: 2

Which of the following is incorrect?





✅ Correct Answer: 4

Which of the following function must use reference.





✅ Correct Answer: 2

How a reference is different from a pointer?





✅ Correct Answer: 4

Which of the following statement(s) is/are correct?





✅ Correct Answer: 4

To which does the function pointer point to?





✅ Correct Answer: 3

What will we not do with function pointers?





✅ Correct Answer: 3

What is the default calling convention for a compiler in c++?





✅ Correct Answer: 1

What is the mandatory part to present in function pointers?





✅ Correct Answer: 3

which of the following can be passed in function pointers?





✅ Correct Answer: 3

What is the meaning of the following declaration? int(*ptr[5])();





✅ Correct Answer: 2

which keyword is used to define the macros in c++?





✅ Correct Answer: 3

Which symbol is used to declare the preprocessor directives?





✅ Correct Answer: 1

How many types of macros are there in c++?





✅ Correct Answer: 2

What is the mandatory preprocessor directive for c++?





✅ Correct Answer: 2

What is the other name of the macro?





✅ Correct Answer: 1

which of the following is used to implement the c++ interfaces?





✅ Correct Answer: 2

What is the ability to group some lines of code that can be included? in the program?





✅ Correct Answer: 3

How many types do functions fall depends on modularization?





✅ Correct Answer: 2

How many types of modularization are there in c++?





✅ Correct Answer: 4

What does the client module import?





✅ Correct Answer: 3

Identify the correct statement.





✅ Correct Answer: 1

What is similar to the interface in c++?





✅ Correct Answer: 3

Which of the following implements the module in the program?





✅ Correct Answer: 2

Which operator is used to signify the namespace?





✅ Correct Answer: 3

Identify the correct statement.





✅ Correct Answer: 1

What is the use of Namespace?





✅ Correct Answer: 2

What is the general syntax for accessing the namespace variable?





✅ Correct Answer: 1

Which keyword is used to access the variable in the namespace?





✅ Correct Answer: 1

Pick the incorrect statement for namespaces in C++.





✅ Correct Answer: 3

Which operator is used for accessing a member of namespace?





✅ Correct Answer: 2

What is the correct syntax of defining a namespace?





✅ Correct Answer: 1

To where does the program control transfers when the exception is arisen?





✅ Correct Answer: 2

Which keyword is used to check exception in the block of code?





✅ Correct Answer: 3

What will happen when the exception is not caught in the program?





✅ Correct Answer: 1

What will happen when the handler is not found for an exception?





✅ Correct Answer: 1

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





✅ Correct Answer: 3

To use internal linkage we have to use which keyword?





✅ Correct Answer: 1

Which one is used to refer to program elements in any translation units?





✅ Correct Answer: 2

What is the default type of linkage that is available for identifiers?





✅ Correct Answer: 2