Вы находитесь на странице: 1из 2

1.

A program validates a numeric field as follows, Values less than 5 are


rejected, values between 5 and 70 are accepted, value greater than or equal to
70 are rejected. Produce equivalence partitioning for the program.

Equivalence Partitioning is a tool for evaluating test cases. In this method,


equivalence classes (for input values) are identified in such a way that each class
member causes the same type of processing and output to occur.The values at the
poles (start / end values or lower / upper-end values) of this class are known as
boundary values. Analyzing the behavior of the device using these values is called
Boundary Value Analysis (BVA).The program accepts numeric values in the range
18 to 25 (18 and 25 are part of the class as well). This class is going to become our
true class.
The classes will be as follows:
Class I: values < 5 => invalid class
Class II: 5 to 70 => valid class
Class III: values > 70 => invalid class

2. Identify FOUR (4) suitable attributes for each of the following entities.
a) Doctor
The Doctor entity has 4 attributes:
● First Name,
● Last Name,
● ID (which is also a key attribute),
● Multi-valued Specialization(s) attribute.

b) Student
Four attributes for Student are:
● First name,
● Last name,
● Date of birth,
● Address.
3. University management team decided to introduce library management
system for all members of the faculty. This system aims to ease the process of
monitoring books borrowed and returned by members. Members are able to
search for the books using the system. The system keeps each member’s
borrowed book details. Members can borrow and return books. Librarian will
verify member details before approve borrowing book process. When
returning book, Librarian will use the system to check on fine if the book
returned late. Members can also check availability of the book. The librarian
will add new book details and also maintains existing book details. Librarian
also adds new member details in the system. Based on the given scenario,
draw a use case diagram.

Вам также может понравиться