Sad Mock Exam 2

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Sadexam1
S
Sadexam1
Community Contributor
Quizzes Created: 3 | Total Attempts: 12,953
| Attempts: 65 | Questions: 18
Please wait...
Question 1 / 18
0 %
0/100
Score 0/100
1. Which statement is true in this diagram

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.

Submit
Please wait...
About This Quiz
Sad Mock Exam 2 - Quiz


You have one hour to answer the questions, take your time reading over them. You should get feedback on the questions at the end. GOOD LUCK

2. A class has a Name and.....

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.

Submit
3. For the subject of question 6, which is true

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.

Submit
4. Consider the multiplicity 1...*. Which of the following is correct?

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.

Submit
5. 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?

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.

Submit
6. The multiplicity 0...* is the same as;

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 *.

Submit
7. "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?

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.

Submit
8. Generalisation can be expressed:

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.

Submit
9. Which of the following is a valid Class?

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.

Submit
10. Which of the following is true about UML?

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.

Submit
11. Is the above a correct example of 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.

Submit
12. "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

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.

Submit
13. Consider the following statement "Jude is an excellent teacher". Which of the following is correct?

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.

Submit
14. This part of an Activity Diagram shows a?

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.

Submit
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 statement above, which is true?

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.

Submit
16. What is a purpose of a Class Diagram?

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.

Submit
17. Sequence diagrams can model...........

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.

Submit
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

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.

Submit
View My Results

Quiz Review Timeline (Updated): Jun 19, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jun 19, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 16, 2011
    Quiz Created by
    Sadexam1
Cancel
  • All
    All (18)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which statement is true in this diagram
A class has a Name and.....
For the subject of question 6, which is true
Consider the multiplicity 1...*. Which of the following is correct?
Consider the statement;...
The multiplicity 0...* is the same as;
"Jemahl is a waiter, his main task is to greet diners and direct...
Generalisation can be expressed:
Which of the following is a valid Class?
Which of the following is true about UML?
Is the above a correct example of a Use Case?
"Jemahl is a waiter, his main task is to greet diners and direct...
Consider the following statement "Jude is an excellent...
This part of an Activity Diagram shows a?
"Jemahl is a waiter, his main task is to greet diners and direct...
What is a purpose of a Class Diagram?
Sequence diagrams can model...........
"Jemahl is a waiter, his main task is to greet diners and direct...
Alert!

Advertisement