1.

Which of the following phases of Software Development Life Cycle (SDLC) includ es translation of the requirements specified in the SRS document into a logical structure? 1, Coding 2, Design 3, Feasibility Analysis 4, Maintenance 2 2. """At the time of identifying the requirements, the development team and th e customer hold discussions and negotiate on the requirements that need to be included in the current iteration of th e software."" Which of the following software development approaches is depicted by the preceding statement?" 1, Prototyping approach 2, Win-win approach 3, Waterfall approach 4, Incremental approach 2 3. A value lifeline is used to represent changes in the value of objects over a period of time. Which of the following diagrams depicts this value lifeline? 1,Class diagram 2, Robust notation timing diagram 3, Concise notation timing diagram 4, Object diagram 3 4 ________ are the sequence of actions that form a single unit of work for an actor. 1, Use cases 2, Classes 3, State Machines 4, Communications 1 5 Which of the following diagrams shows how a class reacts when an event o ccurs? 1, Class diagram 2, Object diagram 3, State Machine diagram 4, Activity diagram 3 6 Which of the following software development approaches applies a combina tion of the iterative approach as well as the linear approach for development of a software system? 1, Prototyping approach 2, Spiral approach 3, Incremental approach 4, Waterfall approach

2 7 The incremental approach of software development includes three phases i n each increment. Identify the phases from the following options. 1, Risk Analysis, Design, Implementation 2, Planning, Design, Implementation 3, Customer communication, Design, Implementation 4, Design, Implementation, Analysis 4 8 Which of the following views of a system represents the physical system including the files and components required to assemble the system? 1, Process view 2, Design view 3, Implementation view 4, Deployment view 3 9 "Peter is hired as a consultant to develop a payroll application for Mac cus, Inc, a manufacturing organization. Peter analyses the existing system and as communicated by Maccus, Inc, identifie s the following functional requirements of the application: * The software should perform basic calculations for pay. * The software should calculate deductions such as tax, loans, and national insu rance. * The software should be able to handle various pension schemes. Next, Peter has to depict these functional requirements diagrammatically. Which of the following UML diagrams should Peter use to depict the software requirements of the payroll system?" 1, Use case diagrams 2, Sequence diagrams 3, Component Diagrams 4, Composite structure diagrams 1 10 Smart Accessories Inc. has recently got an Inventory Management System d eveloped for maintaining the stock at the central warehouse of the company. This software is developed by ITExperts Consultants. Among vari ous other functions performed by the software, it identifies the stock at hand of a specific item and its reorder level. Howeve r, when the application is deployed and made functional at the site, the system gives incorrect output for the reorder level of the specified item. The management of Smart Accessories informed ITExperts Consultants about the error in the software and a sked them to look into the matter. Which of the following phases of the RUP life cycle does the preceding problem fall? 1, Inception 2, Transition 3, Elaboration 4, Construction 2 11 Sam is assigned the task of detecting errors in the code of a banking so ftware. In which SDLC phase is Sam currently working? 1, Coding 2, Design

3, Testing 4, Maintenance 3 12 John is working on a project that is being developed by using the Waterf all approach. Currently, he is translating the identified requirements into a logical structu re that later needs to be implemented in a programming language. Which phase of waterfall appr oach is John currently working on? 1, Construction 2, Analysis 3, Design 4, Initiation 3 13 John needs to create various artifacts of a system graphically, and repr esent a graphical relation between different components. Which building block(s) of UML will John use in th is case? 1, Basic UML constituents and Relationships 2, Diagrams and Relationships 3, Basic UML constituents and Diagrams 4, Relationships only 2 14 How does OOAD use the OO approach to solve real world problems? 1, OOAD uses OO approach to analyzethe system requirements and break a large and complex system into smaller and simpler components. 2, OOAD uses OO approach to analyze the requirements and design of the software system only in terms of the objects, but not encapsulation and abstraction. 3, OOAD uses OO approach to analyze the system requirements, and combine smaller components into a large and complex system. 4, OOAD uses OO approach to analyze the requirements and design of the software system in terms of object attributes. 1 15 John is working on the development of a software project on inventory ma nagement. He is assigned the task of developing a module on the receipt of inventory parts from different suppliers. However, he first needs to draw an object diagram representing the relationship between suppliers and parts. From the figures given in the exhibit, identify the correct object diagram for J ohn to accomplish this task. Click the Exhibit button to view the exhibit. 1, 2, 3, 4, a b c d 1 16 Sam is working on the development of a software project related with the

management of online courses. He is assigned the task of developing a module for online registration of studen ts for different courses. To begin this activity, he first needs to create an interaction diagram to repre sent online registration of a course. From the figures given in the exhibit, identify the correct diagram to accomplish this task. Click the Exhibit button to view the exhibit. 1, a 2, b 3, c 4, d 3 17 While implementing the iterative approach to create your software system , you need to establish the project scope for each iteration. What sequence of steps will you perform to achieve the same? "(1), 1. Identify the requirements . 2. Assess the efforts required to implement the requirements. 3. Analyze the impact of implementing each requirement of the system. 4. Set priorities for the requirements to identify successive iterations." "(2), 1. Identify the 2. Set priorities for 3. Assess the efforts 4. Analyze the impact requirements. the requirements to identify successive iterations. required to implement the requirements. of implementing each requirement of the system." "

(3),1. Set priorities for the requirements to identify successive iterations. 2. Identify the requirements. 3. Analyze the impact of implementing each requirement of the system. 4. Assess the efforts required to implement the requirements." ("4), 1. Assess the efforts required to implement the requirements. 2. Identify the requirements. 3. Set priorities for the requirements to identify successive iterations. 4. Analyze the impact of implementing each requirement of the system." 2 18 "In an envisioned automobile service centre, the automobile engineer, af ter fixing a motor car, will be required to generate a report of the tasks performed by him on the car. While developing a model of the automobile centre by using the iterative approac h, Generate Report is identified as one of the use cases in the iteration. Based o n this report, a Bill of Charges will be printed for the customer to pay. As a result, Print Bi ll is identified as another use case. This use case will be implemented in the next iteration.

By using the Include relationship 3 19 The __________ enables you to focus on the functions performed by the so ftware system in each iteration. include 3. activity diagram 4. Business actor 2. system boundary 3. use case 2. By using the Generalization relationship 2. Business entity 2 21 When an additional behavior is added to an existing use case to obtain a new use case. then the use cases are said to share the ________ relationship amongst them. By using the Extends relationship 4. composite 3 22 Which of the following use cases describes the software system in three terms: information. extend 4. 1. Collaboration 3. Business Worker 4. generalization 2. 1. and output? . input. By using the Association relationship 3.How will you relate the Print Bill to the Generate Report in the second iteratio n?" 1. sequence diagram 2 20 Which of the following business modeling constructs shows how a particul ar function described in a use case is implemented? 1.

Facade 3. Brainstorming 1 24 Which of the following business modeling constructs represents an extern al entity that interacts with the business process? 1. Business entity 4. Passive storyboard . Interviewing Stakeholders 4. Storyboarding 2. Active storyboard 3. Business 2 23 Which of the following is a technique that involves the task of designin g a series of user interfaces on paper before developing a software system? 1. Business use case 2 25 ject? Which of the following contains the cost benefit justification for a pro 1. 1. Business worker 2. Business case 2. Interactive storyboard 1 26 ____________ enables you to focus on the functions performed by the soft ware system in each iteration. Business actor 3. Focused 4.1. Filled 2. Test case 2. Preparing questionnaires 3. SRS document 3. Questionnaire 4.

Business actor only 2. As a r esult. one of the requirements that he iden tified was that the user should be able to easily upload photos. How will you relate the Neurologist. create galleries. include updating the inventory records with the current status regarding the availability of par ts. By using the Association relationship 4. a photographer. namely. Business actor and collaboration 3. Cardio logy." 1. He is required to repair and fix the motor cars that are brought to the service center. Also. Among various requirements. Cardiologist. The details about the use case. Cardiologist. and Orthopedician. created the requirements for a website to displ ay some of his digital photos. Neurology. He may be required to replace the old parts of the motor cars with new spare parts. he is required to forward a requisitio n for the particular spare part to the parts supplier. Upload Photos are as follows: Actor Step . Identify the role of Jonathan in the preceding scenario to create the Business P rocess model. His responsibilities. and enter information about the photos.4. Business actor and business worker 4. By using the Extends relationship 3. Business entity only 3 28 "In the QuickHeal Hospital. and Orthopedician doctors wit h the Doctor behavior in your design for the hospital system?" 1. therefor e. System boundary 4 27 "Jonathan is working as a Service Engineer in an automobile service cent re. three departments. By using the Include relationship 1 29 "Thomas. when the stock of spare parts reaches its reorder level. By using the Generalization relationship 2. the doctors attached with each department are categorized as Neurologist. and Orthopedics have been set up for the treatment of patients with respective ailments.

Take appointment in the design phase. Create a photo Select the photos Create a gallery Select a gallery Enter photo details Change the details of a photo Remove a photo and its details" 1 30 "Consider the following scenario: A patient contacts the hospital reception for an appointment with a doctor. he verified that the test cases are not adequate to test the use case. if necessary The test case identified for the Upload Photos use case checks whether or not th e software system performs the following actions: Select the photo Select the gallery or create a new gallery Provide the photo details Change or delete the photo However. The receptionist checks the availability of the doctor and gives an appointment to the patient. He identifies the following participating classes for this use case: Appointment Schedule Reception Contact . when Thomas performed backward traceability. Select the photos Create a gallery Enter photo details Change the details of a photo Remove a photo and its details" "4. John is asked by his supervisor to realize the use case.Photographer Photographer a new gallery Photographer Photographer Selects photo to be uploaded Selects gallery that photo should be uploaded to or creates Provides photo details such as camera and artist's comments Changes or deletes the photos. Analyze the scenario . and identify the test cases that are required to test the given use case. Select the photos Select a gallery Enter photo details Change the details of a photo Remove a photo and its details" "3. Upload Photos. This app ointment is entered in the doctor s schedule by the receptionist. Select the photos Select a gallery Create a gallery Enter photo details Change the details of a photo Remove a photo and its details" "2." "1.

4. The check out guest use case allows the receptionist to complete t he payment formalities before the guest leaves the hotel. Which of the following options is correct with respect to the given figure?" 1. The figure drawn by Sam is correct. No. The system boundary should include the actors. identify the co rrect participating classes for the given use case. The figure drawn by Sam is incorrect. Guest and Receptionist along with the use cases. The particip ating classes should be: Appointment Schedule Doctor Patient" "4." 1. 2. Receptionist. 1 . the participating classes identified by John are incorrect. The check in guest use case allows the receptionist at the hotel to validate the guest details and check the guest in. the participating classes identified by John are incorrect. Sam draws a figure to depict the use case diagram with the system boundary for t he first iteration of the hotel system. Click the Exhibit button to view the figure. The System boundary should contain the use case along with the actor. This is because Receptionist is member of the Hotel. The particip ating classes should be: Appointment Schedule Doctor Receptionist Contact" "3. 3. The figure drawn by Sam is incorrect. Therefore. "2. The particip ating classes should be: Appointment Schedule Doctor Availability Patient" 3 31 "Consider the scenario for a hotel reservation system: The use cases required to implement the requirements of the first iteration are: * Make reservation * Check in guest * Check out guest The make reservation use case allows either a guest or the receptionist to reser ve a room in the hotel. No. the line from both the actors to the make reserv ation use case is incorrect. No. The make reservation use case is either initiated by the Guest or the Receptionist.Availability Has John identified the participating classes correctly? If not. the participating classes identified by John are incorrect. Yes. the participating classes identified by John are correct. The figure drawn by Sam is incorrect.

Interactive and Passive 4. Uncertainty 3. and data entry operator. The data entry operator updates all the transactions made by the buyer/supplier in the system. Requirements validation 2 34 Sam is assigned the task of developing a storyboard that consists of sim ulations and various animations. and operational feasibility of th e software to be developed. Status 2. Stability 4 33 Joseph is assigned the task of managing the requirements of a software s ystem to be developed. Identify the secondary actor(s) in this scenario.32 John is assigned the task of documenting the inputs provided by the stak eholders. buyers. Which of the following attributes did John miss to mention in the document? 1. Requirements specification 4. Requirements gathering 3. Requirements analysis and negotiation 2. He is currently analyzing economic. he missed to mention the probability of change in the various requir ements in future. In which phase of requirement management is Joseph currently working? 1. Which type of storyboard(s) can Sam use to accomplish this task? 1. Only Interactive 2 35 "John has developed a software on inventory management system that invol ves various entities such as suppliers. While documenting the inputs." 1. Suppliers and Buyers . Active and Passive 2. Rank 4. technical. Active and Interactive 3. Suppliers and data entry operator 2.

later he found that a use case. Therefore. issueBook and deleteBook.DateOfReturn:date):float 1 . ~CalculatePenalty(DateOfIssue:date. #CalculatePenalty:(date:DateOfIssue.DateOfReturn:date) 4. For thi s. DateOfIssue and DateOfReturn and returns a float value to the invoking function." 1. identify what shou ld John have done to enhance the existing use case of the library management system. is returned by a member.date:DateOfReturn):float 3. He should have redefined the flow of events to represent the desired function ality. Provide the correct syntax for the declaration of the above mentioned operation in a class diagram. The ope ration needs to be invoked every time a book. checkBookDetails. However. -CalculatePenalty:float(DateOfIssue:date. you have created a BookTransaction class that includes an operation named CalculatePenalty. The functions of this use c ase are required in the functions of the existing use cases. namely. is missing. 4. 2. The operation accepts t wo Date type parameters. This operation is used to calculate the penalty. 1. 2 37 "You need to develop a Library Management System for a library. -CalculatePenalty(DateOfIssue:date. John d ecided to modify the existing use case diagram by redefining the functions of the actors to represent the des ired functionality. He should have added the checkBookDetails use case in the existinguse case di agram and connected it with the issueBook and deleteBook use cases by using an include relationship. borrowed earlier. He should have extended the issueBook and deleteBook use cases to incorporate the desired functionality.3. if applicable. He took the correct decision.DateOfReturn:date):float 2. 3. Buyers and data entry operator 4. Data entry operator only 2 36 John has developed various use case diagrams for a library management sy stem. to be paid by the member if the book is returned after the due da te. No other class is able to access this operation except for the container class. Identify whether John has taken the correct decision? If not.

The following operations should be depicted to complete the sequence diagram : -. Penalty.The object of the CardScanner class invokes the CheckCreditCard() method of t he ValidateCard class and on its failure to validate the card. the amount of penalty payable by that member for the delay in retu rning the books is stored in the attribute." "3. the card must be validated. Provide the correct syntax for the declaration of the attribute Penalty in a cla ss diagram.0 and only one value can be stored in it at a ny given time. is designing different modules for automation of the Ne wAge Bank. Visualize the sequence diagram and provide the correct messages that need to be passed within the sequence diagram. The following operations should be depicted to complete the sequence diagram: -. The structure of the sequence diagram has been developed.0 2 39 "InfoVision Inc. The default value of Penalty is 0.0 3. The ValidateCard class checks the c ard and validates it. the message f low among the objects has not been defined. #Float:Penalty[1] = 0. ~Penalty:Float [1]:0. you have created a BookTransaction class that includes an attribute named Penalty. For thi s. -Penalty:Float=[0. The CardScanner accepts the card." 1.The object of the ValidateClass invokes the CheckCard() method of the Validat . However.0] :1 2. invokes the CheckDebitCard() method of the sam e class. Penalty cannot be accessed outside the BookTransaction class and its data type is float.The object of the ValidateCard class invokes the CheckCreditCard() method of the ValidateCard class if the condition [CardType=CC] evaluates to True. -.38 "You need to develop a Library Management System for a library." "1." "2. Before the customer is allowed to request for a transa ction. The module for the ATM system of the bank will involve accepting a card from the bank customer.0 4. -Penalty:Float [1] = 0. The customer can be holding a credit or a debit card.The object of the ValidateClass invokes the CheckDebitCard() method of the Va lidateCard class if the condition [CardType=DC] evaluates to True. The following operations should be depicted to complete the sequence diagram : -. If a member ret urns borrowed books after the due date.

Elementary.Jonathan first invokes the GenerateBill(TasksPerformed) method of the Bill cl ass." "4.The object of the CardScanner invokes the CheckCreditCard() method of the Val idateCard class if the condition [CardType=CC] evaluates to True. -. The record of tasks performed is stored in the object of the TaskPerformed class. and High for each level of study group. namely. In the class diagram for the institute.Jonathan first invokes the EnterTasks() method of the TasksPerformed class. The coaching institute provides educational services and identifies the students in three groups depend ing on their level of studies. Bryan. The sequence diagram should depict invoking of the following messages: -. he has related these three classes with the Stu dents class using a . Middle.Jonathan then invokes the GenerateBill(TasksPerformed) method of the Bill c lass. Once he finishes repairing a motor car assigned to him. and identify the mess ages and the components involved within the sequence diagram that will generate the bill of charges. On the basis of the tasks performed. Middle. The sequence diagram should depict invoking of the following message: -." "1." 2 41 "Bryan needs to model the functioning of a coaching institute. he records the tasks performed by him on the car. while designing th e model creates a class Students." 4 40 "Jonathan is working as an automobile mechanic in an automobile service centre. He also creates separate classes." "2.The Bill class then invokes the EnterTasks() method of the TasksPerformed cla ss.Bill class self-invokes the GenerateBill(TasksPerformed) method contained by it. The sequence diagram should depict invoking of the following message: -." "4. The sequence diagram should depict invoking of the following message: -. namely. The following operations should be depicted to complete the sequence diagram : -. a bill of charges is generated that is payable by the customer. -. New Era S tudies.The object of the CardScanner invokes the CheckDebitCard() method of the Vali dateCard class if the condition [CardType=DC] evaluates to True. and High School students. The bill of charges is gener ated by the object of the Bill class. Visualize the sequence diagram for the preceding scenario. Elementary. -.TasksPerformed class invokes the GenerateBill() method of the Bill class.eCard class." "3.

The relationship depicted amongst these classes is incorrect. The store has also announced that the customers who are not sati sfied with the product they purchased can return the same within 10 days of purchase. 1 42 The customers of a telecommunication company lodge their complaints rela ted to the various subscribed services on the company's website. The classes sho uld be related using Aggregation relationship. The classes sho uld be related using Realization relationship.Generalization relationship symbol.Join 3. the executives need the complaint number and th e complaint text. Fork 2. The complaints are stored in an object of th e CustComplaint class in the Customer Care system." 1. The classes sho uld be related using Dependency relationship. The relationship depicted amongst these classes is incorrect. 3. Flow Final 3 43 "The City Departmental Store has announced heavy discounts on some of it s products during the ongoing festive season. 2. These complaints are addressed by the customer care execut ives appointed by the company. Analyze if the relationship amongst these classes is correctly depicted. While addressing the complaints. Which of the following elements wil l you use in the activity diagram to depict the conversion of an object of the CustComplaint class into co mplaint number and complaint text? 1. The system uses the object of the CustComplaint class to provide these details to the execu tives. Transformation 4. Also pr ovide the correct relationship in case the existing relationship is incorrect. The relationship depicted amongst these classes is incorrect. 4. The store needs to kee . The process of providing the complaint number and the complaint text to the executives by using the objec t of the CustComplaint class needs to be depicted in an activity diagram. The relationship depicted amongst these classes is correct.

Suggest which of the following elements of an activity diag ram should Jonathan use to depict the sub processes for calculating delay and penalty for each book? 1. They also need to keep a tr ack of the products that are defective so that they can be replaced. Analyze the s cenario and provide the most suitable states that Robin should incorporate in hi s design. the total penalty should be calculated and the syste m should print a consolidated penalty slip to be issued to the concerned member. a designer.Out of Stock -. Presently.p a track of all the products so that they can be re-ordered whenever the need be.In Stock -. Robin. the delay in returning each book and the penalty applicable should be calculated. The correct states for the products should be identified as: In Stock Out of Stock Being Sold Not Discounted Defected" 2 44 Jonathan is developing an activity diagram for the Library Management Sy stem. he needs to depict the Book Return process in the diagram. is required to de velop the model for the functioning of the departmental store.Returned However." "1. The correct states for the products should be identified as: In Stock Out of Stock Being Sold Sold Returned Defected" "3.Forks and Joins . The activity diagram should d epict the correct flow of these sub processes. The correct states for the products should be identified as: --------------------In Stock Out of Stock Being Sold Returned" "2. While developing the State Machine diagra m for the products in the store. Pins and Transformation 2. Once penal ty is calculated for each book returned by a member. When a member retur ns books. the design was rejected by the systems design specialist. Robin identified the following states of the products: -. The correct states for the products should be identified as: In Stock Out of Stock Being Sold Returned Defected" "4.

3. Pins 2. identify the correct syntax for declaring an attribute in a class diagram. visibility name type = default multiplicity {property-string} 3. How will you depict the execution of this step in a sequence diag ram? . a particular step is to be executed repeatedly. changing v alues of a variable. 1 2 46 From the following options. 1. visibility name: type multiplicity = default {property-string} 4. 4 4. Transformation 4. 2 2. Expansion Region 4. visibility name type: multiplicity = default {property-string} 2. Flow Final 3 45 1. Forks 3. Flow final 2 How many compartments does a class notation in UML have? 48 In a program. j from 1 to 5. visibility type name: multiplicity = default {property-string} 3 47 Which of the following elements of an activity diagram can be used to mo del parallel flow of activities? 1. 3 3.

*[ j = 1 . 5 ] 3. 2. To attend the lecture. The customer makes the paym ent. In this system.1. Sam's supervisor wants him to modify the activity diagram so that it clearly specifies which acti vity is performed by which class. He should use signals to depict that the order processing is put on hold till the stock arrive s. He should use pins to depict that the order processing is put on hold till the stock arrives. Sam should use swim lanes to depict the classes responsible for each activity . Identify what Sam needs to do to fulfill the preceding requiremen ts.. 5 ] 4 49 "Sam is working on the development of software for an online book store. Sam should use transformations to depict the classes responsible for each act ivity.. *[ j := 1 .. A decisi . If the book is not available. 4 50 "Angelina is a student of the OOAD UML course. Sam has represented the preceding transactions by using an activity diagram. and the sales department dispatches the book. 5 ] 4. the order processi ng is held until the stock arrives. 4. She wants to write the s teps for drawing an activity diagram for attending a lecture of OOAD UML at 8:00 AM in the Universit y. [ j :1 . the system checks for the availabi lity of the book and displays the quantity available to the customer. How ever. she has to get dressed to leave for the lecture. Sam should use swim lanes to depict the classes responsible for each activity . He should use signals to depict that the order processing is put on hold till the stock arrive s. 5 ] 2. Sam should use transformations to depict the classes responsible for each act ivity. his supervisor wants him to depict that the order processing is put on hold till the stock arrives.." 1. when the customer places an order for a book. 3. [ j := 1 . Also. He should use expansion regions to depict that the order processing is put on hold till the st ock arrives.

Angelina should use the following steps to create the activity diagram: 1. No. Add all the transitions of the action states: take a train. Identify concurrent actions. 6. 8. Draw action states: Get dressed. Identify concurrent actions. on time to catch the train or not on time to catch th e train 9. after which the Activity diagram terminates. 8. attend lecture. 3. then she should take the train." "3.on then has to be made. Identify concurrent actions. The steps she writes to create the activity diagram are: 1. 2. If not. catch a train to University and catch a bus to u niversity. 6. Add the start and end states. Add the start and end states. 4. Draw action states: Get dressed. Otherwis e. catch a train to University and catch a bus to u niversity. a nd take a bus. Identify the scope of the activity: Attending a lecture at 8:00am. attend lecture. Identify the first action state: Get dressed. Identify the scope of the activity: Attending a lecture at 8:00am. 7. Add all the transitions of the action states: take a train. Identify the first action state: Get dressed. Add the decision point: on time to catch the train or not on time to catch th e train 9. Add a transition from the attend lecture state to the end state. and attend lecture . attend lecture. Add a transition from the last action state to the attend lecture state. Add a transition from the start state to the get dressed state. 8. and attend lecture . Yes. she has to attend the lecture. 5. take a bus. 4. 9. take a train. and take a bus . a nd take a bus. and attend lecture . Then. 7. Add a transition from the take a bus state to end state. 5. 3. 2. a nd take a bus. Angelina should use the following steps to create the activity diagram: 1. 2. 3. attend lecture. 6. Identify the scope of the activity: Attending a lecture at 8:00am. catch a train to University and catch a bus to u niversity. 7. 4. identify the correct steps that she should follow to create the required activity diagram. take a bus." "4. Identify the scope of the activity: Attending a lecture at 8:00am. 3. take a train. take a train. No. Identify the first action state: Get dressed. Draw action states: Get dressed. Identify whether Angelina used the correct approach to create the activity diagr am. and model those using forks and joins. Angelina has used the correct approach to create activity diagram "2. If there is sufficient time to catch the train. No. and model those using forks and joins. Add the start and end states. Angelina should use the following steps to create the activity diagram: 1. Add a transition from the start state to the get dressed state. take a bus. 5. Add a transition from the start state to the get dressed state. Add the start and end states. and the timings of the public trains. depending on the time available for the lecture to start. take a train. Add all the transitions of the action states: take a train. 2. and model those using forks and joins. Add the decision point. Draw action states: Get dressed." 1. she should take a bus to the University. Add the decision point: on time to catch the train or attend lecture.

but an interface doe s not provide the specification of methods. 4. Add all the transitions of the action states: get dressed. private . or protected. 4. An abstract class is a class that has objects. which fulfill more than one ro le. 4. An abstract class allows you to create instances directly. 3 52 What is the difference between an abstract class and an interface? 1. catch a train to University and catch a bus to u niversity. 2. Static modeling includes class and object diagrams. whereas dynamic modeling hel . An abstract class contains attributes and methods that can be public. on time to attend the lecture or not. Add a transition from the start state to the first action state. but implementation of methods of an interface cannot be provided by derived classes. An abstract class is a class that has multiple objects having the same attrib ute values. attend lecture. An abstract is a class that provides a mechanism to use operations and classe s to work with different data types. 5. 3. 3. 9. An abstract class provides the specification of methods. 7. Add a transition from the attend lecture state to the end state." 2 51 What is an abstract class? 1. whereas dynamic modeling includes interaction. activity. Identify concurrent actions. Identify the first action state: Take a decision to catch the train or the bu s. An abstract class is a class that does not have any direct instances. 4 53 Which of the following options is correct about static modeling and dyna mic modeling? 1. Implementation of methods of an abstract class is provided by derived classes . but an interface d oes not allow you to create instances directly. Add the decision point. 6. 2. Static modeling helps in expressing and model ing the behavior of a system over a period of time.. but an interface consists of only methods. 2. 8. and state diagrams. and model those using forks and joins.

whereas dynamic modeling represents the static or struct ural constituents of a software system. Price 2. and address. Generalization 2. 3. Use the seque ntial and concurrent states to simplify the state diagrams. and dynamic modeling is also known as structural modeling. Maintain book information such as book ID. 3. Static modeling represents the behavior of static constituent s of a software system. 2. Static modeling is also known as beha vior modeling. Address 3. Name. Book. 1 54 Which of the following is NOT a guideline for creating state diagrams? 1. Ensure that a n object attains a state from which there is no possible transition to other sta tes. Staff. Price. 3 55 "John identified the following responsibilities of a library management software system: 1. Staff. 2. d 2 57 Sam needs to represent the relationship between two objects of the Emplo yee class diagrammatically. Identify the collaboration for a system. Staff 4. 1. Maintain staff information such as staff ID. Author. Which relationship diagram should Sam use in this case? 1. a 2. From the figure given in the exhi bit. or use case. Name 3 56 Joseph needs to create an object diagram for the Book class to be used i n the development of the software for library management system.ps in depicting the relationships and dependencies between the constituents of a system. Recursive Aggregation 3. 4. Qualified association . Book. Dependency 4. Author. and price. identify the correct diagram that Joseph should use to accomplish his task. Identify the events that cause a transition in the state of an object . author. Click the Exhibit button to view the exhibit. 4. b 3. class. c 4." 1. name. Identify various classes to be used for this software.

an enhanced version of a particular inventory item has been introduced in the market. Identify the error in the diagram. Recently. 1. He cur rently needs to create a module to facilitate the issue of orders received and update the detail s of books sold in a database. 4. should be greater than the Custom er object. 2. Sam ne eds to graphically represent the interaction among various objects. in the form of messages ordered in a sequence of time. Whenever an inven tory item is ordered. The diagram is correct. d 1 59 "Sam is assigned the task of developing software for a book shop. if any. un . the inventory store has a limited capacity. Clic k the Exhibit button to view the exhibit. The arrow labeled as "IssueOrder (o_num.o_code)" should actually be labeled a s create. Order. 3. 4 60 Consider a scenario of an inventory management system. b 3. a 2. c 4. However. which the invento ry manager wants to keep in the store. He created a diagram as shown in the exh ibit. before implementing this functionality in the code. Therefore.2 58 Mary needs to graphically represent an interface of a calculator by usin g UML. The arrow labeled as "Transaction complete" should be actually labeled as des troyed. such as Order and book database . the inventory manager issues the requested items and simultaneously updates the database to keep a track of the total number of inventory items that are currently present. From the figure given in the exhibit. Click the Exhibit button to view the exhibit." 1. However. identify the correct diagram to accomplish this task. The duration of time for the object.

Statement A is True and Statement B is False. Which of the following options is correct with respect to the preceding statemen ts?" 1. Both statements.til the old version of such inventory items are not sold out. Activities 4. are True. are False. Entry and exit actions 2. 2 62 "Consider the following statements in the context of Component diagrams: Statement 1: Deployment components include the components that form the executab le system. the new enhanced version cannot be int roduced in the store. 3. 2. are True. 2. Statement A is True and Statement B is False. 3. Which feature of state machine will you use in this case to represent such a scenario? 1. Statement B is True and Statement A is False. A and B. Statement B is True and Statement A is False. Statement 2: Execution components include the components that are created when a system is running. Both statements. Both statements. A and B. Internal transitions 3. You need to graphically represent this scenario by using a state machine diagram . Deferred events 4 61 ing: "Consider the following statements in the context of Architectural model Statement 1: Component diagram depicts the constituents of a software system gro uped together based on a specific criteria. Statement 2: Deployment diagram depicts the various processing devices on which the components of the software system executes. . 4. Which of the following options is correct with respect to the preceding statemen ts?" 1. A and B.

Represents a collection of classes or a library that enables you to perform a particular function without developing the code from the scratch 2. Provides the guidelines for handling system events 3. You want the application to be Menu driven. Proxy 2. with a simpler object? 1. Decorator pattern 3 65 Which of the following patterns can be used when you need to represent a n object that is time consuming to create. are False.4. Façade 4. Contains abstract and concrete classes that realize interfaces to conform to predefined specifications 2 64 You are creating a file editing application that will be run in the DOS mode. solving . Proxy pattern 2. Which of the following Patterns will you make use of to simplify the implementation of the mouse functi onality in your application? 1. Decorator 1 66 Which of the following options is useful in making the design of a syste m reusable. Composite 3. Composite pattern 3. Defines abstract methods that receive messages in the derived class from the predefined classes 4. 3 63 Which of the following statements is NOT a feature of a framework? 1. A and B. and the menus should respond to mouse clicks. Both statements. Facade pattern 4.

Analyze the preceding problem and the partial solution. <Name> and if the sex is Female. Package 1 67 The access dependency relationship is depicted by using a ___________ co nnecting the client package to the supplier package. the application displays a welcome message saying Hello Mr. 1. the application displays a welcome message saying Hello Ms <Name> . Interface 4. T hen. he creates two sub-classes. solid arrow 3. bi-directional line 1 68 Which of the following diagrams can be used to organize various constitu ents of a software system in logical group 1. Composite Structure diagram 2 69 "Consider the following scenario: Sam has to write code in Java for an application that asks for entering the name and sex of a person. dashed arrow 2. Package diagram 3. Pattern 2. If the sex is Male. he creates a class named Person having methods for name and gender. Male and Female that will print the welcome message on the screen. Framework 3. Object diagram 4. half-headed arrow 4. and identify what Sam ha . and assigning responsibilities to classes? 1.a problem in the most efficient way. For this. Deployment diagram 2.

and how? " 1. he want s Jim to design three buttons in the form. Sam has to create a factory class that will return the welcome message depend ing on the data provided at runtime and print the names. Jim can create a proxy object to implem ent the required effects on the buttons. Previous. No. Then. 4. Jim should use the Proxy pattern. Previous. then identify the structural pattern that will help Jim accomplish the required task. He should create a Facade class tha t creates a façade for the Buttons.s to do next to accomplish the required task. he has to derive two specific effects. and Close." 1. namely. Add. the Previous button displays text along with the button. "3. hoverDecorator and textDecorator from the main Decorator class. Previous. 1 70 "Consider the following scenario: Jim s team is given the responsibility of creating the design for an Inventory Man agement System. Jim's supervisor has asked him to design the AddStockDetails form. and Close. Yes. Add. Then. Sam has to create a singleton class that will return the welcome message depe nding on data provided at runtime and print the names. Then. Jim should use the Decorator pattern. he creat es a container class in the AddStockDetails form that will give the required effects to the button. Will Jim be able to accomplish the required task by creating a container class? If no. Jim is using the correct structural pattern. each of which performs the requ ired type of decoration. Add. 2. No. Also. To accomplish the preceding task. Jim uses the composite pattern. The design of the buttons should be such that the Add button has a hovering effect. No. and Close. Sam has to create a builder class that will return the welcome message depend ing on the data provided at runtime and print the names. hover and text from . He should create a Decorator clas s that decorates the Buttons. He will be able to accompli sh the required task by usingthe container class. Sam has to create a proxy class that will return the welcome message dependin g on the data provided at runtime and print the names. he has to derive two specific decorator s. 2. Jim should use the Facade pattern. 3. and the close button has a hovering effect as well as displays text along with the button." "4.

4. issueBook() handles the task of issuing library book(s) to its me mbers. during the dynamic modeling phase." 1. Sam realized that he would require a nother attribute. Book that has the following attributes and operations: bookCode: String booktitle: String Quantity: Int issueBook() returnBook() The operation. returnBook() handles the task of accepting the book(s) returned by its users. Session Façade is applied. 1 72 What is the purpose of the Expert pattern? 1. However. Unit testing is applied.the main Facade class. The operation. The expert pattern provides guidelines to assign responsibility to a class t hat contains the relevant information.Factoring design is applied. Analyze the preceding scenario and identify the technique that is applied to alt er the design. The expert pattern establishes common terminology for problems and their sol utions to improve understanding. The expert pattern provides the guidelines for assigning responsibility to a new object of a particular class. 1 73 What is Module viewtype? . 2. named checkAvailability() in the Book class to check the availability of the req uested books in the library before the book can be issued. The expert pattern provides the guidelines for handling system events. 4. each of which performs the required task." 3 71 "Sam is working on the design of the library management system. Refactoring design is applied. He has c reated a class. 3. 3. 2.

A framework defines abstract methods that receive messages in the derived cla ss from the predefined classes. a . 3 76 John is working on the development of a software project on inventory ma nagement. Module viewtype specifies the modules that implement a specific function. From the figure g iven in the exhibit. It represents the structure of the design pattern as a parameterized collabor ation.1. A framework contains classes that can be extended by subclassing. 2. He is required to create a package diagram to depict the relationship between va rious inventory parts such as automobile parts. 2. 3. A framework represents a single class that enables you to perform a particula r function without developing the code from scratch. computer parts. 3. It represents the structure of the design pattern as seen by the creator of t he pattern. 1 75 Which of the following is NOT true about the inside view of the modeling design patterns? 1. identify the correct diagram to accomplish this task. It is depicted as a collaboration without parameters. Module viewtype depicts the resources allocated for the development of module s or components of the software system. and furniture parts. the collaboration has a structural and behavioral aspect. 4. A framework contains abstract and concrete classes that realize interfaces to conform to predefined specifications. 4. Module viewtype indicates a set of relationships among the components or modu les of a software system with the development environment. Module viewtype specifies a collection of components where each of the compon ents is an execution unit. 3. In this view. 3 74 Which of the following is NOT a characteristic of a framework? 1. 2. 1. Click the Exhibit button to view the exhibit. 4.

public class BookList { public void addBook (Book b) { } }" "3. b 3." "1. public class BookList { private int Quantity. Book and Operator." 1. From the figure given in the exhibit. Sam now wants to graph ically represent the processing devices as well as the database server and clien t PC on which the books database and client program will execute. by using a comp onent diagram. public class BookList { private int Quantity. Based on this class diagram. b 3. public void addBook() { } }" 3 79 Sam is assigned the task of developing software for an online book store . he needs to generate code for the class diagram shown i n the exhibit. updateBookDetails. a 2. public class BookList { private int Quantity. public void addBook (Book b) { } }" "4. c 4. c 4. d 2 78 "Sam has developed a design model for a library management system by usi ng various classes and methods. identify the code generated for the BookList class. However. he needs to graphically represent the relation ship between the updateBookDetails component and the classes. he identified two major software components of t he system. respectively.2. Click the Exhibit button to view the exhibit. books database application and client program. . He is required to create a component. Before beginning with coding. } }" "2. Click the Exhibit button to view the exhibit. which updates the book details in the database. To begin with. before he begins coding for this component. He now needs to generate code by using this desi gn model. identify the correct diagram to accomplish this task. d 4 77 "Sam is a part of the software development team for a book store.

Session Façade 4 81 "Jane has to design an online shopping website for Smart accessories. However. Yes. Large numb er of customers have registered on this website to shop online for different typ es of products. Jane has not chosen the correct life cycle model and dimensions of the d esign process component. Checks the login details of the customer. identify the correct diagram. As a result. she identified the following dimensions of the Design process componen t: Roles: System Designer Activity: Analysis of SRS Create UML diagrams Create design document Deliverables: Design document Has Jane chosen the correct life cycle model? Also. Transfers the required amount from customer's account to the account of EasyH omeShopping Inc. identify the appropri ate model and the dimensions of the design process component for developing the website?" 1. the dimensions of the design process component should be: Roles: Project Manager System Analyst System Designer Software Engineer Activity: Analyze requirements and create prototype Implement feedback on the evaluated prototype Deliverables: Prototype of the various Web pages of the shopping site" "3. the web site should provide the following features: * Should allow the users to browse through the catalog containing the items for sales * Should allow the users to buy products online Jane decided to use the spiral approach for developing the Online Shopping websi te. Which pattern should be used in this scenario so that the client does not access these server-side objects directly?" 1. If n ot. is a well known online shopping site. He has used the correct diagram. 2.. Also. "2. Yes. 2. are the dimensions of the de sign process component identified by Jane correct? If not. Also. Decorator 3. According to the initial requirements provided by Smart accessories. Compo site 4. 3. Proxy 2. Jane has chosen the correct life cycle model. He should have used the component diagram. 4. 1. 2 80 "EasyHomeShopping Inc. he used deployment diagrams to represent these componen ts graphically. In c.To accomplish this task. Validates the account balance of the customer. The preceding scenario results in accessing multiple server-side objects for a p articular client. He should have used the state diagram. Also. No. network traffic has significantly increased resulting in perfo rmance degradation. He should have used the package diagr am. The client application on Web performs the following functions: 1. She should use the prototype approach as it can effecti vely trap the requirements of a wide range of users. Jane has chosen the correct life cycle model. the dimensions of the design process component identified by Jane are correct. due to separate invocation of each server-side ob ject by a client. Identify whether Sam used the correct diagram in this case. 3. the dimensions of the d .

Quality of documentation 3 . Quality of a software process includes quality of the quality process itself. Activity 3 84 What does distributed data processing describe in the context of the gui delines for determining the degree of influence of GSCs? 1. Activity diagram 3. 4. Process-component 2. Which quality process element doe s the notation in the exhibit signify? Click the Exhibit button to view the exhibit. Quali ty of a software process includes quality of the software development process th at is used to develop the software system. 3. the dimensions of the design pr ocess component should be: Roles: System Designer Software Engineer Activity: Analysis of SRS Create UML diagrams Validate UML diagrams Create design document Deliverables: Design document" 2 82 Which of the following is NOT true about quality process? 1. 1 83 "Refer to the figure given in exhibit. Quality of visualization 2. Class diagram 4. 2. 1. Identify which component does not fa ll under this category. Jane should use the waterfall approach f or developing the Online Shopping website. Identify the quality aspect that John needs to focus on. 2. Quality of sp ecification 3. 4 85 While measuring the complexity of UML artifacts. Also. Start of process-component 3. 1. It describes the degree to which computer resource restrictions influence the development of the application. 4. 3. It describes the degree to which the response time an d throughput performance of a software application is influenced at the time of development." 1. Use case diagram 2. Quality of construction 4. Component diagram 2 86 John is a part of a software development team that focuses on the qualit y of the code being generated using UML models. Quali ty of a software process includes the quality of the hardware used for software development. End of process-component 4. No. you only need to measur e the complexity of some static components.esign process component should be: Roles: System Analyst System Designer Activity: Analysis of SRS Create design document Deliverables: Design document" "4. Quality of a software process includes quality of the softwar e models that are used for the software development process. It describes the degree to which the application communicates directly with the processor. It describes the degree to which the applicat ion transfers data among components of the application.

3. However.. calculate the Adjustment Point Function. He is currently working on a module that frequently accesses the database s erver for various transactions. Online Data Entry 2 92 "Sam is a part of the software development team creating software for a bank. 114. Tailor UML by using constraints and tagged values 1 88 Sam needs to identify the total number of FPs for the software of a libr ary management system. Whil e creating use cases. Total number of use cases =3 3. Extend the vocabulary of UML by using tagged values 4. Total number of inputs and enquiries 4. Which of the following options can he use to achieve this? 1. Sam is a part of the development team that i s responsible for calculating the size of this project. Therefore. he is asked to create various use c ases of the system and calculate the complexity of those use case diagrams. Sam assigned a value. Total number of inputs and ou tputs 3. Performance 4. However. 77 4. Total number of enquiries 1 89 The planned productivity for a project was 2800 process components per m onth. the actual productivity is 1400 process components per month. before beginning with coding. Identify the GSC for this scenario. 94.87 John wants to represent model elements for which UML does not have a spe cific notation. Transaction R ate 2. Total number of inputs. he has identified the total number of files and interfaces. Heavily Used Configuration 3. he identified actors as Customer and Staff. Total number of actors = 2 . 1.5 4." 1. 0.3 9 2. 1400 3 90 "The management of the MyBookShop Inc. To do so. 4200 3. Total number of actors = 2 2. and identified use cases as Create Account. 1. new software containing the upgraded functionality ne eds to be created that will replace the existing software. and enquiries 2. bookstore has decided to upgrade its website. and all the old data will be replaced with the new data. In addition. he identified the association relationship between the following: * Create account use case and Staff actor * Delete Account use case and Staff actor * Deposit Money use case and Customer actor How do you describe the complexity of the use case diagram in this case." 1. outputs. Total number of relationships = 3 "4. He is assigned the task of calculating the Adjusted Point Function based on the following data: Sum of Data FPs = 41 Sum of Transaction FPs = 36 FP Count for Conversion Functionality = 16 Value Adjustment Factor = 1. An efficient functioning of this module depends upon specific processor requirements so as to ensure uninterrupted database tran sactions. 2 2. Extend the vocabulary of UML by using stereotypes 2. Extend the vocabulary of UML by using constraints 3.42 3. What else does he need to identify to accomplish his task? 1. 1. and Deposit Money.23 Based on the preceding data. as the degree of influence for suc h resource restriction.71 1 91 Sam is a part of the software development team for an online banking sys tem. Ca lculate the adjustment factor for this project. Delete Account. As a result.

Operating state and Paused state. Rinsing. 2. and 14. The class diagram is incorrect. To model this functionality. he calculated the compl exity of this class as 4. He is asked to measure the complexity of these diagrams in terms of the complex ity of their operations by using the WMC metric. the machine can be in any of the three sub-states: Washing. The l abel <<Type>> needs to be replaced with <<T>> and the label <<Implementation>> n eeds to be replaced with <<I>> 4. Transaction. The complexity value determined by John is in correct. The correct value is 20. the machine goes into the paused state. The label <<T ype>> needs to be replaced with {Type} and the label <<Implementation>> needs to be replaced with {Implementation} 3. he created a state diagram as shown in the exhibit. before implementi ng the functionality for these classes. 8. 2. 3. The circle containing H* should be removed altogether. identi fy the correct value for the complexity. The class diagram is incorrect. He is currently assigned the task of developing the functionality for two classes. Click the Exhibit button to view the exhibit. In this diagram. View the exhibit and ide ntify if the class diagram that Sam has drawn is correct. 2. he also wants to represent the difference between the type class and the implementation classes. The correct value is 24. To begin this activity. and Spinning. Click the Exhibit button to view the exhibit. The Paused state should be shown within the Operating state. The complexity value determined by Jo hn is incorrect. The label <<T ype>> needs to be replaced with {T} and the label <<Implementation>> needs to be replaced with {I} 1 94 John is a part of the software development team for an inventory managem ent system. th e machine resumes back the substate in which it was operating as soon as the doo r is closed. 4. H* should be replaced with letter H. If it is incorrect. From the exhibit. The diagram is correct. for the machine. 1. he identified that in the Operating state. The class diagram is incorrect. The correct value is 224. 2 . Sam decided to first create class diagra ms for these classes. he first identified two main states. po int out the errors. He found that three operations of this cl ass have complexities. If not. 1.Total number of use cases =3 Total number of relationships = 3" 4 93 Sam is a part of the software development team for library management sy stem. identify the error in the diagram. 3. To begin with. Based on this data. 3 95 "John needs to develop a design for a washing machine that consumes less power as compared to the other available machines in the market. he firs t selects the Inventory Manager class. If not. he wants to ca pture a functionality in his design that if the machine's door is opened while i t is in the Operating state. Both these classes are the i mplementation classes of the type class. Now. 4. UpdateBookDetails and UpdateMemberDetails." 1. The complexity value determin ed by John is correct. He is given various class diagrams for the software being developed. identify whether John has created the correct diagram to model the required functionality. Identify whether this value is correct. The c lass diagram is correct. However. The complexity value determined by John is incorrect. Next. However. 2.

Unboxing 4.5. Quality environment 4.96 "The management of MyBookShop Inc. IList 2. 4.. IComaprable 3. It me asures the duration of a project. John wants to store some information in his UML di agrams for his reference. It measures the number of resources required to complete a project. Stereotypes and constraints 4. Check whether this value is correct. Measure the o utput of a process component 3. What is the responsibility of Sam in this case? 1. 1. Wh ich quality check is Sam working on? 1." 1. 2. Stereotypes 2. John calculated the Adjustment Point Function as 91 . 3. Measure the role of a process component 4. Tagge d values 4 99 To measure a software development process.8 2. and all the old data will be replaced with new data. identify the correct value. Boxin g 4 102 Which of the following interfaces allows you to add item to and remove i tems from a specific location within the collection? 1. Sam is a part of the development team that is re sponsible for calculating the size of this project. IDictionary 1 103 Which of the following attributes for the custom XML format specifies th . The value is correct. Architecture quality 2. If not.4 3. a new software containing the upgraded functionality ne eds to be created that will replace the existing software. bookstore has decided to upgrade the ir website. 1 9700% Sam is assigned the responsibility to ensure that software products are developed as per the defined and documented sequence of activities and tasks. Which of the following options can he use for the same ? 1. Measure the input of a process component 2 100 Which of the following options is true about Function Point (FP) estimat ion technique? 1. Sam is asked to measure the t echnology dimension. Measu re the activities and tasks related to a process component 2. Management quality 2 98 As a project manager. Constraints 3. As a result. 3 101 Which of the following options is the process of converting of a value t ype to a reference type? 2. It can be used to determine the effort required to develop a project. 75 4. ICollection 4. He is assigned the task of c alculating the Adjusted Function Points based on the following data: Sum of Data FPs = 40 Sum of Transaction FPs = 35 FP Count for Conversion Functionality = 15 Total Degree of Influence = 57 Based on the preceding data. Process quali ty 3. 109. It estimates the productivity of a project. Casting 3.

Deserialize 3. XmlAttributeAttribute 4 104 Which of the following options allow you to create an instance of a dele gate by specifying a block of inline code to be invoked by the delegate? 1.dll. Which of the following options will allow you to enable all applications to share and access the assembly? 1. FromTypes 2. XmlAnyElementAttribute 4. Read 4. Structure 3. Class 4. XmlEl ementAttribute 2. Write 3. CreateWriter 4. Which of the following properties of the Even tLog class will you to get the information? 1. Which of the following user-defined value types will you use to declare and use such variables? 1. you wa nt that the pointer should be placed at the beginning of the file. Now. Multifile assemblies 2. Strong name 4. XmlArrayItemAttribute 3. Covariance 2.at XmlSerializer serializes the class member as an XML attribute? 1. You want that the a ssembly should be sharable and accessible to all the applications. Single file assemblies 3. Publisher 3. Flush 1 107 Paul has implemented the code in the application to log the events that occur in the application while it is accessed by a user. Employee. Seek 2. Now. Which of the following features of COM components will allow you to ac complish the preceding task? 1.txt. He has declared three variables that contain s fixed bonus values for each department. Events 1 108 You are creating a method that returns a database object. Constant 2. Enumeration 1 110 You have created a COM component that calculates and displays the annual salary of an employee. This bonus value will be added to the employee's salary depending upon the salary and the department entered by the e mployee. Anonymous 4. Log 3. MachineName 4. Subscriber 3 105 You have created an assembly. IL Disassembler . Entries 2. Portability 2. Global Assembly Cache 4 106 You want to modify the content of a file. Which of the following method s of the XmlSerializer class allows you to accomplish the preceding task? 1. For this. You want that the COM component should run on multiple p latforms. you want to convert the database object into an XML format. you want to read t he information from the event log. CalculateInterest. Serialize 4 109 Brown is creating an application that adds a bonus to the salary of the employees of different departments. Which of the following methods will allow you to accomplish the preceding task? 1.

Events 3 113 You want to create an application that adds dynamically the employee det ails. ""Scott""). emp. ""Smith""). emp. emp[""E001""]). Console.Add(""E001"". Console. ""Jone"").Add(""E003"". Console. Which of the following code snippets will you use to accomplish the preceding task? "1. static void Main(string[] args) { Hashtable emp = new Hashtable(). In addition. static void Main(string[] args) { Hash table emp = new Hash table(). Versioning 1 111 You are creating an application using Visual Studio.Add(E001. emp. you are creating a method that access the data from the database. ""Smith""). emp[""E001""]). emp. }" 1 . Delegates 4.Add(""E002"". static void Main(string[] args) { Hashtable emp = new Hashtable().Add(""E001"".Write(""E001 employee is : {0}"". emp. ""Jone""). it displays the employee name on the ba sis of the value by key. Event handler 3. WriteIf 4. Assert 2.Add(""E002"". Console.Write(""E001 employee is : {0}"". You want that an er ror message should be generated with all the detail information about the error if an any exception occurs while the application is executed. emp. Self-dependency 4.Add(""E001"". ""Jone""). Console. employee ID and name.Write(""E001 employee is : {0}"". Console.ReadKey(). Console. Which of the follo wing methods of the Trace class will you to get the information? 1. Write 2 112 You are creating an application using Visual Studio. emp). ""Scott""). ""Smith"").ReadKey().ReadKey(). }" "4.Add(""E003"". ""Scott""). EventArgs 2. Which of the following options will yo u use to invoke the method asynchronously? 1.3. ""Smith""). Console. emp[""E001""]). emp.Add(E002.Write(""E001 employee is : {0}"". }" "3. emp. employee ID.ReadKey(). }" "2.Add(""E002"". ""Jone""). Fail 3. ""Scott""). In the application.Add(E003. You want that method should be invoked asynchronously. emp. static void Main(string[] args) { Hash table emp = new Hash table(). emp. emp.Add(""E003"". emp.

if(text. text=(string)value. } else { return false. public class myTextValidator { public override void Validate(object value) { string text. myTextValida tor that validates the length of a string should not exceed 50 characters and ra ises an exception if the length of the string is more than 50 characters. } } public override bool CanValidate(Type type) { if(type==typeof(string)) { return true. } .Length>50) { throw new NotImplementedException().Length>50) { throw new NotImplementedException(). Which of the following code snippets will you use to accomplish the preceding task? "1. if(text. text=(string)value. } }" "2. } else { return false.114 You want to create a custom configuration validation class. } } public override bool CanValidate(Type type) { if(type==typeof(string)) { return true. public class myTextValidator:ConfigurationValidatorBase { public override void Validate(object value) { string text. if(text. } }" "3. public class myTextValidator:ConfigurationValidatorBase { public override void Validate() { string text. text=(string)value.Length>50) { throw new NotImplementedException().

Console. } }" 2 115 You want to create a console application that stores text in a file. FileStream fs = fileStore.txt""). string text = ""This is a sample file that .Write(""Content Written""). Console. fs."".. if(text.Create(). public class myTextValidator:ConfigurationValidatorBase { public override void Validate(object value) { string text.txt"")." "2.Length>50) { throw new NotImplementedException().. byte[] encodetext = new UTF8Encoding(true)." "3.. fs. byte[] encodetext = new UTF8Encoding(true). } else { return false. } else { return false.. File fileStore = new File(""Myfile. FileInfo fileStore = new FileInfo(""Myfile.} public override bool CanValidate(Type type) { if(type==typeof(string)) { return true.. encodetext.Length)..txt""). fs.GetBytes(text).Write(encodetext..Close().Create(). Myf ile. fs. .Write(encodetext.Write(encodetext..Close()..Create(). Which of the following code s nippets will you use to accomplish the preceding task? "1. } } public override bool CanValidate() { if(type==typeof(string)) { return true... byte[] encodetext = new UTF8Encoding(true). 0. FileInfo fileStore = new FileInfo(""Myfile. 0. fs.txt and displays a message. string text = ""This is a sample file that .ReadKey(). FileStream fs = fileStore. Console. encodetext. "Content Written". Console. } }" "4.GetBytes(text).""...""..Length)..Write(""Content Written"")... string text = ""This is a sample file that . 0.Length).GetBytes(text).ReadKey(). encodetext. File fs = fileStore. text=(string)value..

Close().Close().0""?> <configuration> <system. Console.diagnostics> </configuration>" "2. you wrote the following code snippet: static void Main(String[] args) { num1 = 100. Which of the followi ng code snippets will you use to accomplish the preceding task? "1. 0. string text = ""This is a sample file that . Console. <?xml version=""1..Write(encodetext. fs.0""?> <configuration> <system." "4.diagnostics/> <switches> <add name=""MySwitch"" value=""3""/> <add name=""SourceSwitch"" value=""Warning""/> </switches> </configuration>" "4.0""?> <configuration> <system.diagnostics> <switches> <add name=""MySwitch"" value=""2""/> </switches> </system."". encodetext." 3 116 You want to view the trace information of an application. .Write(""Content Written""). fs. Console. For this. <?xml version=""1...diagnostics> <switches> <add name=""MySwitch"" value=""0""/> </switches> </system..diagnostics> </configuration>" "3.Create(). object obj = num1. Console. The trace info rmation should contain only the error and warning messages.diagnostics> </configuration>" 1 117 "You wanted to create an application that converts an integer-type value into an object-type value and displays the integer-type value and the object-ty pe value to demonstrate boxing.0""?> <configuration> <system.ReadKey()..txt"").Write(""Content Written"").ReadKey(). FileStream fs = fileStore.Length).. FileInfo fileStore = new FileInfo(""Myfile. byte[] encodetext = new UTF8Encoding(true). <?xml version=""1. num1 = 200.fs. <?xml version=""1.diagnostics> <switches> <add name=""MySwitch"" value=""4""> <add name=""SourceSwitch"" value=""Warning""> </switches> </system.

Console. } However. num1). num1). static void Main(string args) { int num1 = 100. static void Main(string[] arguments) { int num1 = 100. you did not get the d esired output. an error was generated. Type the following command at the command prompt: csc CurrencyConverter. object obj = num1. num1 = 200. 4.WriteLine(""The object-type value of obj = {0} "". However.WriteLine(""The value-type value of num1 = {0} "". static void Main(string[] ) { int num1 = 100. obj). num1 = 200.cs 3. CurrencyConverter that converts the c urrency entered by a user into US dollars. obj). object obj = num1. For this. object obj = num1.WriteLine(""The value-type value of num1 = {0} "". Console. Create source code file. Console.WriteLine(""The object-type value of obj = {0} "". }" "3. Console. num1 = 200.WriteLine(""The object-type value of obj = {0} "". Create source code file. Type CurrencyConverter. }" "2. Console. Console. after performing the preceding sequence of steps. Type CurrencyConverter. 1. Analyze the preceding sequence of steps and provide the solution.ReadKey().WriteLine(""The value-type value of num1 = {0} "". Console.WriteLine(""The value-type value of num1 = {0} "". num1 = 200. static void Main(string[] args) { int num1 = 100. Console. num1). object obj = num1. Analyze the co de and provide the solution.Console. Type the following command at the command prompt: csc CurrencyConverter." .WriteLine(""The object-type value of obj = {0} "". Save the source code file.exe at the command prompt to execute the file. }" 2 118 "You wanted to create an assembly.ReadKey(). Console. Console. 2.WriteLine(""The object-type value of obj = {0} ""." "1. Console. }" "4. obj).ReadKey(). " "1. 2. CurrencyConverter. while executing the application.cs 3. Console. Console. obj). you wrote the following seq uence of steps: 1.ReadKey().ReadKey(). num1). num1). obj).WriteLine(""The value-type value of num1 = {0} "". 4.exe at the command prompt to execute the file. Save the source code file. CurrencyConverter. Console.

txt"". Create source code file. string fileName = ""Myfile. Analyze the co de and provide the solution. 1. 1. fs.ReadKey(). Type the following command at the command prompt: cs CurrencyConverter.exe at the command prompt to execute the file.cs at the command prompt to execute the file." 4 119 "You wanted to create an application that determines whether the file. } Console. 2. Type CurrencyConverter." "1.Write(""File Created"")."" For this. CurrencyConverter. Console.cs 4. Type CurrencyConverter.Exists(@""D:\"" + fileName)) { FileInfo fi = new FileInfo(@""D:\"" + fileName).txt"". FileStream fs = fi." "3. 3. CurrencyConverter. 2. CurrencyConverter.Write(""File already exists. Save the source code file. Type CurrencyConverter. Save the source code file. 2. . } else { Console.Exists(@""D:\"" + fileName)) { File fi = new File(@""D:\"" + fileName). Type the following command at the command prompt: csc CurrencyConverter. 1. 3."").Create(). Save the source code file." "4.""). Console.Close().ReadKey(). if (!File. 3. while executing the application."2.Write(""File Created"").Create(). } else { Console. However. File fs = fi. Type the following command at the command prompt: csc CurrencyConverter.txt""." "2. } Console. Create source code file. fs. If the file does not exist . else a message should be displayed.Write(""File already exists. an error was generated. if (!File.cs 4.exe at the command prompt to execute the file. ""File Created"". ""File already exis ts.txt exists or not at the D: drive of a machine.Close().exe 4. string fileName = ""Myfile. Create source code file. you wrote the following code snippet: string fileName = ""Myfile. M yfile. it should be created at the D: drive of a machine and a message should be disp layed.

Console. c.""). } else { Console. the application should deserialize the company name and the employ ees' name and display it on the screen. emp1. fs. XmlSerializer xs = new XmlSerializer(typeof(company)). Company.name = ""Sam"". . emp2 }. you wrote the following code s nippet: Line Line Line Line Line Line Line Line Line Line Line Line 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: static void Main(string[] args) { string fileName = ""D:\\Company. if (!File.xml.Write(""File Created""). TextWriter tw = new StreamWriter(fileName).Write(""File Created""). Employee emp1 = new Employee().txt"".Write(""File already exists. fs."").Create().name = ""Kelly"".Write(""File already exists.Exists(""D:\"" + fileName)) { FileInfo fi = new FileInfo(""D:\"" + fileName).Exists(@""D:\"" + fileName)) { FileInfo fi = new FileInfo(@""D:\"" + fileName).Create().""). Employee emp2 = new Employee(). fs.CompanyName = ""LargeSouk.txt"".ReadKey(). } Console.if (!File. } else { Console.Close(). company c = new company().Create(). emp2.Write(""File Created""). Console. if (!File. string fileName = ""Myfile. } else { Console. } Console.Write(""File already exists. c." 3 120 "You wanted to create an application that serializes the company name an d the employees' name into an XML format and stores in an XML file. FileStream fs = fi." "4. } Console.emp = new Employee[2] { emp1.Close().ReadKey(). FileStream fs = fi.Close(). For this. string fileName = ""Myfile.ReadKey().Exists(@""D:\"" + fileName)) { FileInfo fi = new FileInfo()."".xml"". Console. Inc. FileStream fs = fi." "3. In addition.

...WriteLine(""{0}"".Close()..ReadLine(). } Console.WriteLine(""\n Press Enter to exit. while executing the application... FileStream fs = new FileStream(fileName..Open). an error was generated.name).e.. The Line 16 should be: company cmp = (company)xs.. Console.. The Line 5 s hould be: TextWriter tw = new StreamWriter().emp) { Console." "3." "2.Open).CompanyName).. FileMode." "1. Console.. The Line 4 should be: XmlSerialization xs = new XmlSerialization (typeof(company)).Deserialize(fs). company cmp = Deserialize(fs). The Line 15 should be: FileStream fs = new FileStream(FileMode. tw." "4. c)." 4 . } However."").WriteLine(cmp.. Analyze the co de and provide the solution.Serialize(tw.Line Line Line Line Line Line Line Line Line Line Line Line 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: xs. foreach(Employee e in cmp.