C++ MCQ’s

C++ MCQ’s Home Page

C++ Basic 1
C++ Basic 2
C++ Basic 3
C++ Basic 4
C++ Basic 5
C++ OOPs Concepts 1
C++ OOPs Concepts 2
C++ OOPs Concepts 3
C++ OOPs Concepts 4
C++ OOPs Concepts 5

 

C++ MCQ’S | Basics

C++ Programming Questions and Answers – Basics

This set of C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Basics of C++”.

1.
Which of the following is called address operator?

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

 

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

a) 7abc
b) 7_abc
c) abc_1234
d) $abc_name

3.
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]

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

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

5.
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

Visitor Counter

0142240