OOPS Flashcard

OOPS Flashcard

Assessment

Flashcard

Computers

University

Hard

Created by

Quizizz 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

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

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++

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?