Self-Assessment 1 Flashcards

1
Q

Which feature of OOP described the reusability of code?

A

D. Inheritance allows a new class to reuse the properties and methods of an existing class, promoting reusability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is not an OOP?

A

D. C is a procedural programming language, not object-oriented, unlike Java, C#, and C++.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

OOP acronym for

A

C. Object Oriented Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which feature of OOPS derives the class from another class?

A

A. Inheritance allows a new class (derived class) to acquire properties and methods from an existing class (base class).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is correct about class?

A

D. Class data members are private by default while those of structure are public by default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is not an access specifier?

A

B. Char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following OOP concept is not true for the C++ programming language?

A

D. C++ program must contain at least one class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the extra feature in classes which was not in the structures?

A

A. Member Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which operator is used to define a member function outside the class?

A

D. :: (Scope Resolution Operator)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Nested member function is

A

B. A member function may call another member function within itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following is syntax of C++ class member function?

A

B. return_type class_name :: member_function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which among the following feature does not come under the concept of OOPS?

A

A. Platform independent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The combination of abstraction of the data and code is viewed in

A

C. Object

Object is a technique which can be viewed as an abstraction of the combination of data and code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which private member functions access scope?

A

B. Member functions which can only be used within the class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which syntax among the following shows that a member is private in a class?

A

B. private: function Name (parameters)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
A