Which of the following is NOT a UML diagram?

(1) Which of the following is NOT a UML diagram?

(a.) Package diagram.

(b.) Network diagram.

(c.) Component diagram.

(d.) Deployment diagram.

Answer 1.

b is the correct answer.

We know that we can find the Component diagram comes under UML, Package diagram comes under UML, and Deployment diagram also comes under UML diagrams. And UML stands for (Unified Modelling Language).
But there are no specific diagrams that can represent a network architecture.
So, the Network diagrams can not come under the UML diagrams.
So, here option-b will be the correct answer.

 

 

(2) What type of diagram would you use to illustrate sending messages between objects and classes?

(a.) Sequence diagrams.

(b.) Collaboration diagrams.

(c.) Communication diagrams.

(d.)Sequence, collaboration, and communication diagrams.

 

Answer 2. 

b is the correct answer.

Objects, Links, and Messages are the three major elements of collaboration diagrams.
Collaboration diagrams illustrate the sending of messages between objects and classes.
So here also, option-b will be the correct answer.

 

 

(3) Which type of diagram would you use to illustrate the lifecycle of a class?

(a.) State diagram.

(b.) Activity diagram.

(c.) Freeform diagram.

(d.) Network diagram.

Answer 3.

a is the correct answer.

We know that we use a state diagram for illustrating the life cycle of a class.
An activity diagram is used to show the activity flow of a process.
There is no such diagram as a network diagram to describe the network architecture.
Hence, option-a is the correct answer.

 

 

(4) The order of growth efficiency of the function 3N3+17N² is:

(a.) O(3N).

(b.) O(3N³).

(c.) O(17).

(d.) O(N2).

(e.) None of these is correct.

Answer 4.

e is the correct answer.

We have been given the complexity function as follows:
T(N) = 3N³ + 17N2
According to Big-O notation, we consider that term which has the highest degree and we ignore the coefficient.
So,
T(N) = O(N3) is the highest degree term here.
So, except e, there is no any option which is right here.
So here, option-e will be the correct answer.

 

 

(5) What are the two basic structuring mechanisms?

(a.) The reference and the array.

(b.) The array and the primitive variable.

(c.) The stack and the queue.

(d.) Objects and classes.

(e.) None of these is correct.

Answer 5.

b is the correct answer.

We know that the primitive data types can not form a structure because primitive data types exist individually. The array is a collection of similar data types elements and it is also a linear data structure. Stack and queue also store the elements in a linear manner.
The objects and classes describe a collection of elements of different data types. 

So here, option-b will be the correct answer.

 

Also read, Top 10 Web Development Language Courses

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *