C++ Object-Oriented Programming Quiz

C++ Object-Oriented Programming Quiz

Assessment

Interactive Video

Computers

9th - 10th Grade

Practice Problem

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

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?