Explore topic-wise MCQs in C++ Programming.

This section includes 160 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.

151.

What is the use of no linkage?

A. make the entity visible to other blocks in the same program.
B. make the entity visible only to that block
C. make the entity visible to other programs
D. All of above
E. None of these
Answer» C. make the entity visible to other programs
152.

Which is used to use a function from one source file to another?

A. declaration
B. prototype
C. code
D. All of above
E. None of these
Answer» B. prototype
153.

To use external linkage we have to use which keyword?

A. extern
B. const
C. static
D. All of above
E. None of these
Answer» B. const
154.

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

A. no linkage
B. internal
C. external
D. All of above
E. None of these
Answer» D. All of above
155.

What will be the output of these two programs?

A. 252
B. 251
C. Compilation Error
D. Runtime Error
E. None of these
Answer» C. Compilation Error
156.

How many types of returning values are present in c++?

A. 4
B. 3
C. 2
D. 1
E. None of these
Answer» C. 2
157.

How are any types of linkage there in c++?

A. 4
B. 3
C. 2
D. 1
E. None of these
Answer» C. 2
158.

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

A. no linkage
B. internal linkage
C. external linkage
D. All of above
E. None of these
Answer» D. All of above
159.

To use internal linkage we have to use which keyword?

A. global
B. static
C. extern
D. static or extern
E. None of these
Answer» C. extern
160.

When will we use the function overloading?

A. same function name but same number of arguments
B. different function name but different number of arguments
C. same function name but different number of arguments
D. different function name but same number of arguments
E. None of these
Answer» D. different function name but same number of arguments