Loading...

C++ Multiple Choice Questions

Our C++ questions and answers focuses on all areas of C++ programming language covering 100+ topics in C++

C++ Fundamentals MCQ | Set 1

C++ Fundamentals | Set 1


1. Who created C++?

a) Bjarne Stroustrup
b) Dennis Ritchie
c) Ken Thompson
d) Brian Kernighan



2. C++ Language developed at _________?

a) AT & T's Bell Laboratories of USA in 1972
b) Sun Microsystems in 1973
c) Cambridge University in 1972
d) AT & T's Bell Laboratories of USA in 1979



3. Which one of the following is a keyword?

a) Size
b) Key
c) Jump
d) Switch



4. ____ is the smallest individual unit in a program.

a) Variable
b) Control
c) Character
d) Token



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

a) #include <userdefined.h>
b) #include <userdefined>
c) #include “userdefined”
d) #include [userdefined]



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

a) 7var_name
b) 7VARNAME
c) VAR_1234
d) $var_name



7. Which of the following is called address operator?

a) *
b) &
c) _
d) %



8. C++ is _______ type of programming language.?

a) Object Oriented
b) Procedural
c) Bit level language
d) Functional



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

a) // comment
b) /* comment */
c) both // comment or /* comment */
d) // comment */



10. What are the actual parameters in C++?

a) Parameters with which functions are called
b) Parameters which are used in the definition of a function
c) Variables other than passed parameters in a function
d) Variables that are never used in the function



- Related Topics