C++ Quiz

C++ Quiz

Professional Development

30 Qs

quiz-placeholder

Similar activities

DSA QUIZ-2

DSA QUIZ-2

Professional Development

25 Qs

CE - UOB Review

CE - UOB Review

Professional Development

26 Qs

CISCO M1 - Networking Today (Module 1)

CISCO M1 - Networking Today (Module 1)

Professional Development

28 Qs

ReactJS Online Test

ReactJS Online Test

Professional Development

25 Qs

Printer and Scanner

Printer and Scanner

Professional Development

25 Qs

FCS_Finals Exam

FCS_Finals Exam

Professional Development

25 Qs

CS Quiz Test 2

CS Quiz Test 2

Professional Development

25 Qs

AI QUEST QUIZ ROUND-1

AI QUEST QUIZ ROUND-1

Professional Development

25 Qs

C++ Quiz

C++ Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

AI ML

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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?