Understanding Classes and Objects

Understanding Classes and Objects

Assessment

Flashcard

Computers

University

Hard

Created by

Yasmin Basiran

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Object variety

Back

You can have many bedrooms (objects) built from the same design (class), but each one is decorated differently.

2.

FLASHCARD QUESTION

Front

Example of a class

Back

A bedroom design specifying furniture and behaviors.

3.

FLASHCARD QUESTION

Front

Implementation file

Back

Tasks/implementations of class members

4.

FLASHCARD QUESTION

Front

Definition of Enum

Back

Enum is short for enumeration, a user-defined data type in C++.

5.

FLASHCARD QUESTION

Front

Data type of `author` in the `Books` structure

Back

`char author[50];` indicates that `author` is an array of 50 characters.

6.

FLASHCARD QUESTION

Front

Variable definition in a structure

Back

A variable definition in a structure can be any valid variable type, such as `int` or `float`.

7.

FLASHCARD QUESTION

Front

Pointers can be redirected to different memory locations as needed.

Back

Pointers allow you to decide where in memory things go and change them without copying.

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?