You are on page 1of 13

Which of the following UML diagrams represents an instance of a Class diagram?

Options
1. Object diagram 2. Use Case diagram 3. State Machine diagram 4. Component diagram

Correct Answer: -> 1

Consider the following statements: Statement A: The generalization relationship exists among actors that have similar behavior and similar properties. Statement B: Association relationship is represented using an arrow or a simple line. Which of the following options is correct with respect to the preceding statements? Options
1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Correct Answer: -> 2 Consider the following statements: Statement A: Recursive aggregation is an association relationship between two objects of the same class. Statement B: Qualified association is an association relationship that relates an object of a class to a particular object or a set of objects of another class. Which of the following options is correct with respect to the preceding statements? Options
1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Correct Answer: -> 2

Which of the following options realizes the static constituents of the system through a set of interfaces? Options

1. Package 2. Node 3. Component 4. Constraint

Correct Answer: -> 3

Consider the following statements: Statement A: Outside view represents the structure of the design pattern as a parameterized collaboration. Statement B: Inside view represents the structure of the design pattern as a collaboration without parameters. Which of the following options is correct with respect to the preceding statements? Options
1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Correct Answer: -> 2


What are generics? Options 1. Generics are classes which are instantiated at compile time rather than at run time. 2. Generics is a new concept in the .NET Framework using which you can create a method, class, structure, or an interface in your code without specifying any fixed data type.

3. Generics is a new concept in the .NET Framework using which you can assign null values to value type variables. 4. Generics is a data type in which you can store any type of data.

Correct Answer: -> 2

Consider the following statements: Statement A: The limitation of the incremental approach is that it is applicable only to large applications. Statement B: The spiral approach includes the iterative nature of prototyping approach and the linear nature of the waterfall approach. Which of the following options is correct with respect to the preceding statements? Options
1. Both, Statement A and Statement B, are False.

2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Correct Answer: -> 2 The evolution of Linux operating system begins from Red Hat Linux 6.0 to Fedora Core 6.0. The Red Hat Linux 6.0 operating system as the first iteration. The product was released as a freeware in the market and evaluated by the customer. After getting the feedback from the customers, Red Hat planned to develop the new version and released Red Hat Linux 7.0 with GUI interface. Similarly, the other versions of Linux operating system were released. Which of the following software development approaches should be applied for developing such a software with various versions? Options
1. Incremental approach 2. Spiral approach 3. Waterfall approach 4. Prototyping approach

Correct Answer: -> 2 Which of the following represents the output of the Requirement Analysis and Specification Phase of SDLC? Options
1. Logical structure of the design 2. SRS document 3. Design document 4. Feasibility report

Correct Answer: -> 2

Which of the following options is used to model the functional requirements of the software system? Options
1. Class diagrams 2. Object diagrams 3. Deployment diagrams 4. Use case diagrams

Correct Answer: -> 4

The Library Management System enables the librarian to perform a number of functions, such as checking the availability of a book, issuing a book, receiving a book returned by a member, and maintaining the fine details. Identify the relationship between the following: a) Check the availability of the book b) Issue the book Options
1. Extend 2. Generalization 3. Include 4. Association

Correct Answer: -> 3

Wilson Software Inc. has been assigned a project to automate the admission process of Model School. The requirements for the automation of the process are: a) Fill the application form online b) Submit the application form c) Deposit Fee d) Conduct an Interview e) Fill the admission form online In the first iteration, the school management wants to automate the feature of filling and submitting the application form. The interview procedure feature will be implemented in the second iteration and the feature of filling and submitting the application form will be implemented in the third iteration. Which of the following pairs of use cases can be related through an extend relationship? Options
1. Fill the application form online and Submit the application form 2. Fill the application form online and Fill the admission form online 3. Fill the admission form online and Deposit Fee 4. Fill the application form online and Conduct an interview

Correct Answer: -> 2

Which of the following use cases contains the Business rules information? Options
1. Filled Use Case

2. Facade Use Case 3. Focused Use Case 4. Business Use Case

Correct Answer: -> 1

Which of the following visibility signs indicates that the attribute or operation is visible to classes, which are within the same package? Options
1. + 2. 3. # 4. ~

Correct Answer: -> 4

Consider the following scenario: Grant college is a reputed college in California having approximately 2500 students. To distinguish a particular student from the other students, it is required to map a particular Student Id to each student. What type of relationship should be applied between the Student class and College class? Options
1. Recursive aggregation 2. Qualified association 3. Realization 4. Binary association

Correct Answer: -> 2

Consider the following scenario: InfoSolutions Inc. has got a requirement to develop a Billing software for Blueseas General store. Currently, the manager maintains the details of customer, product, and purchases. He calculates the total sales of the products purchased by the customer, calculates the payable amount after the discount, and then generates the bill. This system now needs to be automated. Jenny works as a designer in InfoSolutions Pvt. Ltd. He has to design UML model for the Billing software. She has identified the following use cases of the system: a) Maintain customer details b) Maintain product details c) Maintain sales details d) Calculate sales

e) Calculate discount (20% of total amount) f) Accept payment g) Generate Bill On the basis of the preceding use cases, help Jenny to identify the various classes to draw the Class diagram for the General Store Management system. Options
a) Customer: Maintains customer information b) Product: Maintains product information 1. c) Sales: Maintains sales data d) Discount: Select the discount for a customer e)Bill: Generate bill a) Customer: Maintains customer information b) Product: Maintains product information 2. c) Sales: Maintains sales data d) Payment: Calculate payable amount and accept payment. e) Bill: Generate bill 3. a) Customer: Maintains customer information b) Product: Maintains product information c) Sales: Maintains sales data d) Discount: Select the discount and generate bill a) Customer: Maintains customer information b) Product: Maintains product information c) Sales: Maintains sales data d) Bill: Select the discount and generate bill

4.

Correct Answer: -> 2

Consider the following statements referring the two classes X and Y. Statement A: Aggregation represents an association between two classes such that class X is a part of class Y and class X can exist independently. Statement B: Composition represents an association between two classes such that class X contains class Y and also controls the lifetime of class Y. Which of the following options is correct, with respect to the preceding statements? Options
1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Correct Answer: -> 2

Which of the following types of messages specify the invocation of a method of an object? Options
1. Return Message 2. Send Message

3. Call Message 4. Create Message

Correct Answer: -> 3

John is a designer at Wilson Solutions Ltd. While designing an Activity diagram for Online shopping system, he wants to represent a flow from the Order action state to two independent action states Payment and Delivery that are to be processed simultaneously. Which of the following elements should he use in the activity diagram to represent the flow from the Order action state to the Payment and Delivery action states? Options
1. Fork 2. Join 3. Expansion 4. Tokens

Correct Answer: -> 1

Which of the following is a creational pattern? Options


1. Observer 2. Factory 3. Proxy 4. Composite

Correct Answer: -> 2

Which of the following metrics measures the total number of operations and attributes that are declared in a derived class and have private visibility? Options
1. NOO 2. NOA 3. CS

4. CF

Correct Answer: -> 2

John is working as a development executive in BlueValley Inc. He needs to create an object of ArrayList collection named arrEmployees to store the employee ids of all the employees of his organization. He is also required to write the state of the ArrayList object, arrEmployees, in a binary format and save it to a file named Employees.dat. To accomplish this task, John has written the following code snippet: ArrayList arrEmployees = new ArrayList(); arrEmployees.Add("E5001"); arrEmployees.Add("E5034"); FileStream fs = new FileStream("C:\\Employees.txt", FileMode.Create); BinaryFormatter formatter = new BinaryFormatter(); Serialize(fs, arrEmployees); fs.Close(); However, there is some problem in the preceding code snippet. Identify the correct code snippet that would enable John to accomplish his task. Options
ArrayList arrEmployees = new ArrayList(); arrEmployees.Add("E5001"); arrEmployees.Add("E5034"); 1. FileStream fs = new FileStream("C:\\Employees.txt", FileMode.Create); SoapFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, arrEmployees); fs.Close(); ArrayList arrEmployees = new ArrayList(); arrEmployees.Add("E5001"); arrEmployees.Add("E5034"); 2. FileStream fs = new FileStream("C:\\Employees.txt", FileMode.Create); BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, arrEmployees); fs.Close(); ArrayList arrEmployees = new ArrayList(); arrEmployees.Add("E5001"); arrEmployees.Add("E5034"); 3. FileStream fs = new FileStream("C:\\Employees.txt", FileMode.Create); SoapFormatter formatter = new BinaryFormatter(); fs.Serialize(formatter, arrEmployees); fs.Close(); ArrayList arrEmployees = new ArrayList(); arrEmployees.Add("E5001"); arrEmployees.Add("E5034"); 4. FileStream fs = new FileStream("C:\\Employees.txt", FileMode.Create); BinaryFormatter formatter = new BinaryFormatter(); fs.Serialize(formatter, arrEmployees); fs.Close();

Correct Answer: -> 2

Which of the following diagrams is NOT a type of Interaction diagram? Options


1. Timing Diagram

2. Sequence Diagram 3. Package Diagram 4. Communication

Correct Answer: -> 3

Wilson Technologies Inc. needs to create the architectural model for the prototype of the bank ATM system. The project manager of Wilson Technologies Inc. has identified the ATMCard, BankCustomer, Account, Transaction, CardScanner, DisplayScreen, and CashDispenser classes for the prototype of the bank ATM system. Which of the following packages correctly groups the classes that collaborate to realize the Check Balance use case? Options
1. The CheckBalance package containing the BankCustomer, Account, and Transaction classes 2. The CheckBalance package containing the BankCustomer and DisplayScreen and Account classes 3. The CheckBalance package containing the BankCustomer, Cardscanner, Displayscreen, Account, and CardScanner classes

4. The CheckBalance package containing the BankCustomer, ATMCard, CardScanner, DisplayScreen, and Account classes.

Correct Answer: -> 4

Consider the following statements: Statement A: Outside view represents the structure of the design pattern as a collaboration containing formal parameters. Statement B: Inside view represents the structure of the design pattern as seen by the creator of the pattern. Which of the following options is correct with respect to the preceding statements? Options
1. Both the Statement A and Statement B are false. 2. Both the Statement A and Statement B are true. 3. Statement A is true and Statement B is false. 4. Statement A is false and Statement B is true.

Correct Answer: -> 2

John wishes to store an assembly so that the assembly is shared among other applications. What should John do to accomplish this task? Options
1. Create a multifile assembly

2. Install the assembly in the global assembly cache. 3. Create an assembly installer 4. Install the assembly by using XCOPY

Correct Answer: -> 2

James is a designer at Janes technology. He is designing UML models for a library management system. He has designed a class diagram for the library management system representing all the classes and their relationships. The following classes have been identified for the library management system: a) Member (contains operations enterBookCode(), enterTransactionType(), getMemberDetails(), and setMemberDetails()) b) User Interface (contains the operations displayMenu(), acceptTransactionType() and acceptBookCode()) c) Book (contains operations getBookDetails(), checkAvailability(), updateAvailabilityStatus(), and setBookDetails()) d) Transaction (contains operations issueBook() and returnBook()) John wants to draw the Communication diagram for the Issue Book use case. He has identified the following sequence of messages among the various classes of the library system: 1. An object of the Member class invokes the displayMenu() operation of the User Interface class. 2. The object of the User Interface class invokes the enterTransactionType() operation of the Member class. 3. The object of the Member class invokes the acceptTransactionType() operation of the User Interface class. 4. The object of the User Interface class invokes the enterBookCode() operation of the Member class. 5. The object of the Member class invokes the acceptBookCode() operation of the User Interface class. 6. The object of the User Interface class invokes the checkAvailability() operation of the Book class. 7. An object of the Book class invokes the issueBook() operation of the Transaction class. Identify the error (if any) in the communication diagram. Options
1. An object of the Member class cannot invoke the displayMenu() operation of the User Interface class. 2. The communication diagram is correct. 3. An object of the Member class cannot invoke the acceptBookCode() operation of the User Interface class. 4. After the book is issued, the updateAvailabilityStatus() operation of the Book class needs to be invoked to update the availability of the book in the library.

Correct Answer: -> 4

John has designed a prototype model for Order Processing system. He has depicted the following use cases for Order Processing system: a) Display products b) Accept feedback c) Place order d) Process order e) Generate Bill The Actors for the Order Processing system are: a) Manager b) Accountant Which of the following represents the use cases packaged according to the actors that uses them? Options
1. a) Actor: Inventory Manager Package : Order_process containing Display products, Accept feedback, Place order, and Process order use cases.

b) Actor: Accountant Package: Accounts containing Generate Bill use case a) Actor: Manager Package : Order_process containing Display products, Accept feedback, Place orders and Generate Bill use cases. b) Actor: Accountant Package: Accounts containing Process order use case a) Actor: Manager Package : Order_process containing Display product, Accept feedback, and Place order use cases. b) Actor: Accountant Package: Accounts containing Process order and Generate Bill use cases a) Actor: Manager Package : Order_process containing Place order and Process order use cases. b) Actor: Accountant Package: Accounts containing Generate Bill use cases

2.

3.

4.

Correct Answer: -> 1 You are creating a program that needs to load and display large image files. Because loading a large image is a timeconsuming activity, you decide to delay the display of the picture object until the page loads completely. Therefore, in place of the picture object, you use a simple object, such a rectangle that indicates to the program that an image is to be displayed in the specified area. This helps the program to lay out the screen correctly. Which design pattern are you using in this case? Options
1. Composite 2. Proxy 3. Faade 4. Observer pattern

Correct Answer: -> 2

Which of the following holds TRUE for an assembly? Options


1. An assembly is a self-contained unit of code that does not contain any security, versioning, and dependency information.

2. Assemblies can run only on the Windows platform. 3. Assemblies are intermediate executable files created after compiling a program. 4. Assemblies require an external type library file.

Correct Answer: -> 3

You are developing the student information system for a college. You need to create an activity diagram for shortlisting

eligible candidates from the set of applicants for a course. To shortlist the eligible candidates for each course, you need to check the following: --Whether the age of the applicant matches the age limit specified for the course --Whether the qualification of the applicant matches the qualification specified for the course --Whether the marks obtained by the applicant in the entrance test match the score requirements specified for the course Which of the following elements of an activity diagram can you use to represent the shortlisting process? Options
1. Pins and Transformations 2. Submachine reference state 3. Expansion region 4. Concurrent substates

Correct Answer: -> 3

Consider the following statements: Statement A: Packaging enables you to visualize the functional groups and the relationships among these. Statement B: Packaging facilitates easy management of large software systems. Which of the following options is correct with respect to the preceding statements? Options
1. Both, Statement A and Statement B, are False. 2. Both, Statement A and Statement B, are True. 3. Statement A is True and Statement B is False. 4. Statement A is False and Statement B is True.

Correct Answer: -> 2

Consider the following classes for implementing a table: --Table --Row --TableHeader --Data According to the creator pattern, which class should be assigned the responsibility of creating a new row? Options
1. TableHeader 2. Data 3. Table 4. Row

Correct Answer: -> 3

John has written the following code snippet: int64 a = 0; int32 b = 0; b = (int32) a; Identify the task John is trying to implement in the preceding code snippet? Options
1. Implicit casting 2. Boxing 3. Explicit casting 4. Unboxing

Correct Answer: -> 3

You might also like