OOPS Flashcard

OOPS Flashcard

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

FLASHCARD QUESTION

Front

A constructor that accepts __________ parameters is called the default constructor.

Back

0

2.

FLASHCARD QUESTION

Front

What is the purpose of constructors in C++?

Back

To initialize the data members of objects

3.

FLASHCARD QUESTION

Front

Which of the following is true about constant objects in C++? Options: The member functions of a constant object can modify the object. A constant object cannot be used as an argument to a non-const member function. The data members of a constant object can be modified. A constant object can be created only with a parameterized constructor.

Back

A constant object cannot be used as an argument to a non-const member function.

4.

FLASHCARD QUESTION

Front

Media Image

Back

Default Constructor Parameterized Constructor: 10 Destructor Parameterized Constructor: 5 Destructor

5.

FLASHCARD QUESTION

Front

What is the purpose of the "protected" access modifier in C++ inheritance?

Back

To allow access to the member variables and functions from within the class and its subclasses

6.

FLASHCARD QUESTION

Front

Media Image

Back

Shape constructor called, Circle constructor called, Cylinder constructor called, Cylinder destructor called, Circle destructor called, Shape destructor called

7.

FLASHCARD QUESTION

Front

.............. method and operator overloading can be achieved.

Back

C++

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?

Discover more resources for Computers