Search Header Logo

C/C++ Quiz

Authored by Mustkeem Sheikh

Education

University

Used 1+ times

C/C++ Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Identify the correct extension of the user-defined header file in C++.

a)     cpp

b)     .hg

c)     .h

d)     .hf

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. C++ uses which approach?

a) right -left

b) Top-down

c) left-right

d) bottom–up

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which of the following data type is supported in C++ but not in C?

 

a) int

b) bool

c) double

d) float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of the following is the “address of the operator”?

a) *

b) &

c) []

d) &&

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Identify the scope resolution operator.

a) :

b) ::

c) ?

d) None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. Identify the correct definition of the ‘*’ operator in the pointer.

a) Address of operator

b) Value of address operator

c) Multiplication operator

d) All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Choose the correct default return value of a function.

a) int

b) void

c) char

d) float

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?