Search Header Logo

NPTEL Software Engineering Quiz B

Authored by Deepak Dubey

Computers

University

Used 6+ times

NPTEL Software Engineering Quiz B
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

How is inheritance useful?

a. It prevents inherited properties from being lost

b. It minimizes the amount of code which has to be written

c. It creates elegant tree structures in the class model

d. It divides objects up into useful classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the sentence: A book has one or more pages. Which of the following best characterizes the relationship between the Book class and the Page class?

a. Inheritance

b. Specialization

c. Association

d. Composition

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following characteristics of a class implies that the same message can be interpreted by it differently?

a. Encapsulation

b. Polymorphism

c. Information Hiding

d. Inheritance

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is true of encapsulation?

a. Encapsulation helps in reuse since it is not necessary for the developers to know how an off-the-shelf software component works internally.

b. Encapsulation means that software components can work more efficiently.

c. Encapsulation means that there is no need for software developers to document their work.

d. Encapsulation hinders reuse.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following best characterizes a sequence diagram?

a. A call graph illustrating all possible sequences of calls between class method members

b. A time-line illustrating a typical sequence of calls between object methods

c. A time-line illustrating the changes in inheritance and instantiation relationships between classes and objects over time

d. A tree illustrating inheritance relationship between classes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following UML diagrams should you use when allocating use-case behavior to classes?

a. sequence and communication diagrams

b. use-case and activity diagrams

c. sequence and activity diagrams

d. class and composite structure diagrams

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following sentence: “A square is a polygon”. From an analysis of the sentence, identify the relations between the two classes Square and Polygon that can be inferred from the sentence.

a. Inheritance

b. Association

c. Aggregation

d. Composition

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