C++ Quiz

C++ Quiz

Professional Development

30 Qs

quiz-placeholder

Similar activities

C Language Test 3

C Language Test 3

Professional Development

25 Qs

Java

Java

Professional Development

25 Qs

Introducción a Java

Introducción a Java

University - Professional Development

29 Qs

C Programming

C Programming

Professional Development

25 Qs

8844/8 0002

8844/8 0002

Professional Development

27 Qs

9.Primitive Data Types (floating point datatype)

9.Primitive Data Types (floating point datatype)

Professional Development

25 Qs

C Language Test - 2

C Language Test - 2

Professional Development

25 Qs

Smart Programmer Crew

Smart Programmer Crew

Professional Development

32 Qs

C++ Quiz

C++ Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

AI ML

Used 2+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?