Sad Mock Exam 2

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Sadexam1
S
Sadexam1
Community Contributor
Quizzes Created: 3 | Total Attempts: 11,891
Questions: 18 | Attempts: 61

SettingsSettingsSettings
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


Questions and Answers
  • 1. 

    Which of the following is true about UML?

    • A.

      It is proprietary software

    • B.

      It is a Universal Modelling Logo

    • C.

      It was developed by the Three Amigos

    • D.

      It is only compatible with Java

    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.

    Rate this question:

  • 2. 

    What is a purpose of a Class Diagram?

    • A.

      Functional Decomposition

    • B.

      Identification of functional requirements

    • C.

      To define sequences of actions

    • D.

      To identify multiplicities

    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.

    Rate this question:

  • 3. 

    Is the above a correct example of a Use Case?

    • A.

      Yes as it uses multiplicities

    • B.

      No as attributes are not identified

    • C.

      Yes as it uses the correct syntax for a Use Case

    • D.

      No as it uses the incorrect syntax for 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.

    Rate this question:

  • 4. 

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

    • A.

      Being a teacher is a Use Case

    • B.

      "Excellent teaching" would be an appropriate Use Case

    • C.

      Excellent is a suitable Class

    • D.

      "Jude" could be an instance of a class (object)

    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.

    Rate this question:

  • 5. 

    Generalisation can be expressed:

    • A.

      A is the same as B

    • B.

      A is different to B

    • C.

      A is a Class and B is a Use Case

    • D.

      A is a kind of B

    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.

    Rate this question:

  • 6. 

    Which statement is true in this diagram

    • A.

      Customer is a Class

    • B.

      Customer is an Attribute

    • C.

      Customer is an Object

    • D.

      Customer is a Use Case

    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.

    Rate this question:

  • 7. 

    For the subject of question 6, which is true

    • A.

      The empty boxes are for attributes and multiplicities

    • B.

      The empty boxes are for attributes and iterations

    • C.

      The empty boxes are for attributes and operations

    • D.

      The empty boxes are for iterations and operations

    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.

    Rate this question:

  • 8. 

    Sequence diagrams can model...........

    • A.

      Work rate

    • B.

      A pass through a full Use Case

    • C.

      The properties of a Class

    • D.

      The sequence of associations in a Domain 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.

    Rate this question:

  • 9. 

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

    • A.

      There can be one or many instances

    • B.

      There must be at least one instance and not more than 20

    • C.

      One instance happens many times

    • D.

      There can be none, one or many instances

    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.

    Rate this question:

  • 10. 

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

    • A.

      1...0

    • B.

      *

    • C.

      1...*

    • D.

      0...1

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

    Rate this question:

  • 11. 

    A class has a Name and.....

    • A.

      Iterations and associations

    • B.

      Appropriations and attributes

    • C.

      Operations and attributes

    • D.

      Iterations and operations

    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.

    Rate this question:

  • 12. 

    This part of an Activity Diagram shows a?

    • A.

      Decision point

    • B.

      Join node

    • C.

      Object node

    • D.

      Fork node

    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.

    Rate this question:

  • 13. 

    Which of the following is a valid Class?

    • A.

      Room Number

    • B.

      Reserve Room

    • C.

      Room

    • D.

      Booking System

    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.

    Rate this question:

  • 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?

    • A.

      Jamahl, diner, ID

    • B.

      Table size, ID, booking

    • C.

      Dinner, booking, table

    • D.

      Phone, waiter, booking

    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.

    Rate this question:

  • 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

    • A.

      Eat meal

    • B.

      Answer phone

    • C.

      Take booking

    • D.

      Provide ID

    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.

    Rate this question:

  • 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

    • A.

      Jemahl could perform as the actor Waiter and Receptionist

    • B.

      Waiter is an instance of the class Jemahl

    • C.

      Size is a valid operation of the class Table

    • D.

      Phone is a valid attribute of the class Waiter

    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.

    Rate this question:

  • 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?

    • A.

      Regular could be a generalisation of the class Diner

    • B.

      Jemahl could be a generalisation of the class Waiter

    • C.

      Size could be an instance of the class Table

    • D.

      Diner is an instance of the class Regular

    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.

    Rate this question:

  • 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?

    • A.

      Jemahl is a valid attribute of the class Waiter

    • B.

      Take booking is a valid attribute of the class Waiter

    • C.

      Size is a valid attribute of the class Table

    • D.

      Phone number is a valid attribute of the class Diner

    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.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Mar 19, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 16, 2011
    Quiz Created by
    Sadexam1
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.