1.
Which of the following is true about UML?
Correct Answer
C. It was developed by the Three Amigos
Explanation
UML stands for Unified Modeling Language and it was indeed developed by the Three Amigos, namely Grady Booch, James Rumbaugh, and Ivar Jacobson. UML is not proprietary software, but rather a standardized modeling language used in software engineering to visually represent software systems. It is not a Universal Modelling Logo, as there is no such thing. Additionally, UML is not limited to Java and can be used with various programming languages.
2.
What is a purpose of a Class Diagram?
Correct Answer
D. To identify multiplicities
Explanation
A class diagram is used to represent the structure and relationships between classes in a system. One of the purposes of a class diagram is to identify multiplicities, which specify the number of instances of one class that can be related to the instances of another class. By identifying multiplicities, the class diagram helps in understanding and defining the cardinality of associations between classes, which is crucial for designing and implementing the system accurately.
3.
Is the above a correct example of a Use Case?
Correct Answer
D. No as it uses the incorrect syntax for a Use Case
Explanation
The given answer is correct because it states that the above example is not a correct use case due to the incorrect syntax used. Use cases typically consist of actors, actions, and outcomes, and they are usually written in a specific format. In this case, since the syntax used is incorrect, it indicates that the example does not meet the criteria of a proper use case.
4.
Consider the following statement "Jude is an excellent teacher". Which of the following is correct?
Correct Answer
D. "Jude" could be an instance of a class (object)
Explanation
The statement "Jude is an excellent teacher" suggests that Jude can be considered as an instance of a class or object. In object-oriented programming, a class represents a blueprint for creating objects, and an instance is a specific occurrence of that class. Therefore, "Jude" could be an instance of a class or object in this context.
5.
Generalisation can be expressed:
Correct Answer
D. A is a kind of B
Explanation
The correct answer is "A is a kind of B". This statement suggests that A is a specific type or subtype of B. It implies that A inherits or possesses some characteristics or attributes of B, but may also have additional unique qualities. This concept of generalization is commonly used in object-oriented programming and modeling to represent hierarchical relationships between classes or entities.
6.
Which statement is true in this diagram
Correct Answer
A. Customer is a Class
Explanation
In the given diagram, the statement "Customer is a Class" is true. This means that in the diagram, the entity or concept of a customer is represented as a class. In object-oriented programming, a class is a blueprint for creating objects, and it defines the properties and behaviors that the objects of that class will have. Therefore, in this diagram, the customer is represented as a class, indicating that it has certain attributes and behaviors associated with it.
7.
For the subject of question 6, which is true
Correct Answer
C. The empty boxes are for attributes and operations
Explanation
The empty boxes in question 6 are used to represent attributes and operations in the subject being discussed. Attributes refer to the characteristics or properties of the subject, while operations refer to the actions or behaviors that the subject can perform. The empty boxes provide space to specify and define these attributes and operations within a diagram or model.
8.
Sequence diagrams can model...........
Correct Answer
B. A pass through a full Use Case
Explanation
Sequence diagrams are used to model the interactions and flow of messages between different objects or components in a system. They can be used to represent the sequence of actions and events that occur during the execution of a use case. Therefore, the correct answer suggests that sequence diagrams can be used to model a pass through a full use case, capturing the order and flow of interactions between different objects or components involved in the use case.
9.
Consider the multiplicity 1...*. Which of the following is correct?
Correct Answer
A. There can be one or many instances
Explanation
The multiplicity 1...* indicates that there can be one or many instances. This means that there must be at least one instance, but there can also be more than one instance.
10.
The multiplicity 0...* is the same as;
Correct Answer
B. *
Explanation
The multiplicity 0...* means that there can be zero or more occurrences of the element. The asterisk (*) is used as a shorthand notation to represent this. Therefore, the correct answer is *.
11.
A class has a Name and.....
Correct Answer
C. Operations and attributes
Explanation
The correct answer is "Operations and attributes." In object-oriented programming, a class is a blueprint for creating objects. It defines the properties (attributes) and behaviors (operations) that an object of that class can have. Attributes represent the state or data of an object, while operations represent the actions or behaviors that the object can perform. Therefore, a class typically consists of both operations and attributes.
12.
This part of an Activity Diagram shows a?
Correct Answer
D. Fork node
Explanation
A fork node in an activity diagram is used to represent a point where multiple flows of control can occur simultaneously. It is typically used to split the flow of control into multiple parallel paths. In this part of the activity diagram, a fork node is being used to show that the flow of control is being divided into multiple paths.
13.
Which of the following is a valid Class?
Correct Answer
C. Room
Explanation
The given options are "Room Number", "Reserve Room", "Room", and "Booking System". Among these options, "Room" is a valid class name because it follows the naming conventions for classes, which typically start with an uppercase letter. The other options do not follow this convention and are not valid class names.
14.
Consider the statement;
"Jemahl is a waiter, his main task is to greet diners and direct them to their table, either pre-booked or 'walk-in' booking. He occasionally answers the phone to take bookings. Most tables seat six people, with two tables seating 8. Diners are required to give a name, and in the case of regular diners a credit card number, these are also given a unique ID".
Which of the following would be the best identification of classes?
Correct Answer
C. Dinner, booking, table
Explanation
The best identification of classes would be "Diner, Booking, Table" because these three classes are mentioned in the statement and are directly related to the tasks and activities described. The statement mentions the main task of Jemahl as a waiter is to greet diners and direct them to their table, which indicates the presence of a "Diner" class. The statement also mentions that diners are required to give a name and in the case of regular diners, a credit card number, which suggests the need for a "Booking" class to handle these details. Finally, the statement mentions the different table sizes, indicating the need for a "Table" class to manage and track table availability.
15.
"Jemahl is a waiter, his main task is to greet diners and direct them to their table, either pre-booked or 'walk-in' booking. He occasionally answers the phone to take bookings. Most tables seat six people, with two tables seating 8. Diners are required to give a name, and in the case of regular diners a credit card number, these are also given a unique ID".
From the above statement identify the most valid Use Case
Correct Answer
C. Take booking
Explanation
The most valid use case from the given statement is "Take booking". This is because the statement mentions that Jemahl occasionally answers the phone to take bookings. This indicates that taking bookings is one of Jemahl's main tasks as a waiter.
16.
"Jemahl is a waiter, his main task is to greet diners and direct them to their table, either pre-booked or 'walk-in' booking. He occasionally answers the phone to take bookings. Most tables seat six people, with two tables seating 8. Diners are required to give a name, and in the case of regular diners a credit card number, these are also given a unique ID".
From the statement above, which is true
Correct Answer
A. Jemahl could perform as the actor Waiter and Receptionist
Explanation
Based on the given statement, it is mentioned that Jemahl's main task is to greet diners and direct them to their table, which aligns with the role of a waiter. Additionally, it is also mentioned that Jemahl occasionally answers the phone to take bookings, which aligns with the role of a receptionist. Therefore, it can be inferred that Jemahl could perform as the actor Waiter and Receptionist.
17.
"Jemahl is a waiter, his main task is to greet diners and direct them to their table, either pre-booked or 'walk-in' booking. He occasionally answers the phone to take bookings. Most tables seat six people, with two tables seating 8. Diners are required to give a name, and in the case of regular diners a credit card number, these are also given a unique ID".
From the statement above, which is true?
Correct Answer
C. Size could be an instance of the class Table
Explanation
Based on the given statement, it is mentioned that "Most tables seat six people, with two tables seating 8". This implies that the size of the tables can vary, and therefore, size could be an instance of the class Table.
18.
"Jemahl is a waiter, his main task is to greet diners and direct them to their table, either pre-booked or 'walk-in' booking. He occasionally answers the phone to take bookings. Most tables seat six people, with two tables seating 8. Diners are required to give a name, and in the case of regular diners a credit card number, these are also given a unique ID".
From the statement above, which is true?
Correct Answer
C. Size is a valid attribute of the class Table
Explanation
The statement mentions that most tables seat six people, with two tables seating 8. This implies that the size of the table is a valid attribute of the class Table.