C++ Object-Oriented Programming Quiz

C++ Object-Oriented Programming Quiz

Assessment

Interactive Video

Computers

9th - 10th Grade

Hard

Created by

Jennifer Brown

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main focus of this tutorial?

Functions in C++

Pointers in C++

Classes and objects in C++

Data structures in C++

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a class in C++?

To handle exceptions

To execute code sequentially

To define a blueprint for objects

To store data temporarily

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the MMORPG example, what is the type of the user?

Healer

Archer

Warrior

Mage

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you access the username of player one in the example?

player1.username

player1.getUsername()

player1->username

username.player1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a property of the user in the MMORPG example?

Experience Points

Magic Points

Level

Username

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is created every time a new player object is instantiated?

A new function

A new variable

A new class

A new user

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the initial HP of player one in the example?

50

100

150

200

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?