MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
which of these abstractions class consist?
A
Attributes
B
operation
C
set of objects
D
all of the above mentioned
Explanation: 

Detailed explanation-1: -A Class consists of which of these abstractions? Explanation: A class is an abstraction of objects, operations and attributes.

Detailed explanation-2: -8. A Class consists of which of these abstractions? a) Set of the objects b) Operations c) Attributes d) All of the mentioned e) b, c Answer: d Explanation: A class is a abstraction of objects, operations and attributes.

Detailed explanation-3: -Answer-A) Abstraction can be implemented using encapsulation.

Detailed explanation-4: -Explanation: Abstraction is hiding the complex code. For example, we directly use cout object in C++ but we don’t know how is it actually implemented. Encapsulation is data binding, as in, we try to combine a similar type of data and functions together.

There is 1 question to complete.