Search Header Logo

C++ Quiz

Authored by AI ML

Computers

Professional Development

Used 2+ times

C++ Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

1.Which of the following statement is not true about C++?

A class cannot have the private members
Members of a class are public by default
A structure can have the member functions
All of the above

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

2. Which of the following can be considered as the members that can be inherited but not accessible in any class?

Protected
Public
Private
None of the above

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

3. Which of the following is the correct syntax to print the message in C++ language?

Out <<“Hello world!;
cout <<“Hello world!”;
Cout << Hello world! ;
None of the above

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

4. Which of the following can be considered as the correct syntax for declaring an array of pointers of integers that has a size of 10 in C++?

int *arr = new int*[10]
int *arr = new int[10];
int arr = new int[10];
int **arr = new int*[10];

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

5. Which of the following can be considered as the object of an array?

Elements of the Array
Index of an array
Functions of the Array
All of the above

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

6. Which of the following is the correct identifier?

varname@
$var_name
VAR_123
None of the above

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

7. The programming language that has the ability to create new data types is called_______________

Overloaded
Reprehensible
Extensible
Encapsulated

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?