Anda di halaman 1dari 32

1.

Which of the following phases of Software Development Life Cycle (SDLC) includes translation of the requirementsspecified in the SRS document into a logical structure?1, Coding2, Design3, Feasibility Analysis4, Maintenance. (A2) 2. """At the time of identifying the requirements, the development team and the customer hold discussions and negotiateon the requirements that need to be included in the current iteration of the software.""Which of the following software development approaches is depicted by thepreceding statement?"1, Prototyping approach2, Win-win approach3, Waterfall approach4, Incremental approach. (A2) 3. A value lifeline is used to represent changes in the value of objects over aperiod of time. Which of the followingdiagrams depicts this value lifeline?1,Class diagram2, Robust notation timing diagram3, Concise notation timing diagram4, Object diagram. (3A) 4 _ _ _ _ _ _ _ _ a r e the sequence of actions that form a single u n i t o f w o r k f o r an actor.1, Use cases2, Classes3, State Machines4 , C o m m u n i c a t i o n s 1 . 5Which of the following diagrams shows how a class r e a c t s w h e n a n e v e n t o ccurs?1, Class diagram2, Object diagram3, State Machine diagram4, Activity diagram. (A3) 6.Which of the following software d e v e l o p m e n t a p p r o a c h e s a p p l i e s a c o m b i n a tion of the iterative approach as well asthe linear approach for development of a software system?1, Prototyping approach2, Spiral approach3, Incremental approach4, Waterfall approach. (A2) 7.The incremental approach of software d e v e l o p m e n t i n c l u d e s t h r e e p h a s e s i n each increment. Identify the phases fromthe following options.1, Risk Analysis, Design, Implementation2, Planning, Design, Implementation3, Customer communication, Design, Implementation4, Design, Implementation, Analysis

8.Which of the following views of a system r e p r e s e n t s t h e p h y s i c a l s y s t e m including the files and

components required toassemble the system?1, Process view2, Design view3, Implementation view4, Deployment view. (A3) 9 . " P e t e r is hired as a consultant to develop a payroll a p p l i c a t i o n f o r M a c cus, Inc, a manufacturing organization.Peter analyses the existing system and as communicated by Maccus, Inc, identifies 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 insurance.* The software should be able to handle various pension schemes.Next, Peter has to depict these functional requirements diagrammatically. Whichof the following UML diagrams shouldPeter use to depict the software requirements of the payroll system?"1, Use case diagrams2, Sequence diagrams3, Component Diagrams4, Composite structure diagrams. (A1) 10.Smart Accessories Inc. has recently got an I n v e n t o r y M a n a g e m e n t S y s t e m d eveloped for maintaining the stock at the central warehouseof the company. This software is developed by ITExperts Consultants. Among various other functions performed by the software,it identifies the stock at hand of a specific item and its reorder level. However, when the application is deployed and madefunctional at the site, the system gives incorrect output for the reorder levelof the specified item. The management of SmartAccessories informed ITExperts Consultants about the error in the software and asked them to look into the matter. Which of thefollowing phases of the RUP life cycle does the preceding problem fall?1, Inception2, Transition3, Elaboration4, Construction. (A2) 11.Sam is assigned the task of detecting e r r o r s i n t h e c o d e o f a b a n k i n g s o ftware. In which SDLC phase is Sam currently working?1, Coding2, Design 3, Testing4, Maintenance31 2 J o h n i s w o r k i n g o n a project that is being developed by using the W a t e r f all approach.Currently, he is translating the identified requirements into a logical structure that laterneeds to be implemented in a programming language. Which phase of waterfall approach is Johncurrently working on?1, Construction2, Analysis3, Design4, Initiation. (A3)

13.John needs to create various artifacts of a s y s t e m g r a p h i c a l l y , a n d r e p r esent a graphical relationbetween different components. Which building block(s) of UML will John use in this case?1, Basic UML constituents and Relationships2, Diagrams and Relationships3, Basic UML constituents and Diagrams4, Relationships only. (A2) 1 4 . H o w does OOAD use the OO approach to solve real w o r l d p r o b l e m s ? 1, OOAD uses OO approach to analyzethe system requirements and break a large andcomplexsystem into smaller and simpler components.2, OOAD uses OO approach to analyze the requirements and design of the softwaresystemonly in terms of the objects, but not encapsulation and abstraction.3, OOAD uses OO approach to analyze the system requirements, and combine smallercomponentsinto a large and complex system.4, OOAD uses OO approach to analyze the requirements and design of the softwaresystemin terms of object attributes. (A1) 1 5 . J o h n i s working on the development of a software project o n i n v e n t o r y m a nagement.He is assigned the task of developing a module on the receipt of inventory partsfrom different suppliers.However, he first needs to draw an object diagram representing the relationshipbetween suppliers and parts.From the figures given in the exhibit, identify the correct object diagram for John to accomplish this task.Click the Exhibit button to view the exhibit.1, a2, b3, c4, d. (A1)

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 students for different courses.To

begin this activity, he first needs to create an interaction diagram to represent online registration ofa course. From the figures given in the exhibit, identify the correct diagram toaccomplish this task.Click the Exhibit button to view the exhibit.1, a2, b3, c4, d. (A3) 1 7 . W h i l e implementing the iterative approach to create y o u r s o f t w a r e s y s t e m , you need to establishthe project scope for each iteration. What sequence of steps will you perform toachieve 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 requirements.2. Set priorities for the requirements to identify successive iterations.3. Assess the efforts required to implement the requirements.4. Analyze the impact 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." (A2) 1 8 . " I n a n e n v i s i o n e d a u t o m o b i l e s e r v i c e c e n t r e , t h e a u t o m o b i l e e n g i n e e r , a f 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 approach,Generate Report is identified as one of the use cases in the iteration. Based on this report,a Bill of Charges will be printed for the customer to pay. As a result, Print Bill is identifiedas another use case. This use case will be implemented in the next iteration. How will you relate the Print Bill to the Generate Report in the second iteration?"1, By using the Generalization relationship2, By using the Association relationship3, By using the Extends relationship4, By using the Include relationship. (A3) 1 9 . T h e __________ enables you to focus on the functions

p e r f o r m e d b y t h e s o ftware system ineach iteration.1, use case2, system boundary3, activity diagram4, sequence diagram. (A2) 20.Which of the following business modeling c o n s t r u c t s s h o w s h o w a p a r t i c u l ar function describedin a use case is implemented?1, Business actor2, Collaboration3, Business Worker4, Business entity. (A2) 2 1 . W h e n a n a d d i t i o n a l behavior is added to an existing use case to o b t a i n a new use case,then the use cases are said to share the ________ relationship amongst them.1, generalization2, include3, extend4, composite. (A3) 2 2 . W h i c h o f t h e f o l l o w i n g u s e c a s e s d e s c r i b e s t h e s o f t w a r e s y s t e m i n t h r e e terms: information,input, and output? 1, Filled2, Facade3, Focused4, Business. (A2) 2 3 . W h i c h o f t h e f o l l o w i n g i s a technique that involves the task of designin g a series of userinterfaces on paper before developing a software system?1, Storyboarding2, Preparing questionnaires3, Interviewing Stakeholders4, Brainstorming. (A1) 2 4 . W h i c h o f t h e following business modeling constructs r e p r e s e n t s a n e x t e r n al entitythat interacts with the business process?1, Business worker2, Business actor3, Business entity4, Business use case. (A2) 25.Which of the following contains the cost b e n e f i t j u s t i f i c a t i o n f o r a p r o ject?1, Business case2, SRS document3, Questionnaire4, Interactive storyboard. (A1) 26.____________ enables you to focus on the f u n c t i o n s p e r f o r m e d b y t h e s o f t ware system in each iteration.1, Test case2, Active storyboard3, Passive storyboard 4, System boundary. (A4) 2 7 . " J o n a t h a n i s w o r k i n g a s a S e r v i c e E n g i n e e r i n a n a u t o m o b i l e s e r v i c e c e n t re. He is required torepair and fix the motor cars that are brought to the service center. He may berequired to replace theold parts of the motor cars with new spare parts. His responsibilities, therefore, include updatingthe inventory records with the current status regarding the availability of parts. Also, when the stockof spare parts reaches its reorder level, he is required to forward a requisition for the particular

sparepart to the parts supplier.Identify the role of Jonathan in the preceding scenario to create the Business Process model."1, Business actor only2, Business actor and collaboration3, Business actor and business worker4, Business entity only. (A3)

Photographer Selects photo to be uploadedPhotographer Selects gallery that photo should be uploaded to or createsa new galleryPhotographer Provides photo details such as camera and artist's commentsPhotographer Changes or deletes the photos, if necessaryThe test case identified for the Upload Photos use case checks whether or not the software system performs the following actions:Select the photoSelect the gallery or create a new galleryProvide the photo detailsChange or delete the photoHowever, when Thomas performed backward traceability, he verified that the testcases are not adequate to test the use case, Upload Photos. Analyze the scenario, and identify the test cases that are required to test the given use case.""1, Select the photosSelect a galleryCreate a galleryEnter photo detailsChange the details of a photoRemove a photo and its details""2, Select the photosSelect a galleryEnter photo detailsChange the details of a photoRemove a photo and its details""3, Select the photosCreate a galleryEnter photo detailsChange the details of a photoRemove a photo and its details""4, Create a photoSelect the photosCreate a gallerySelect a galleryEnter photo detailsChange the details of a photoRemove a photo and its details" .(A1) 30."Consider the following s c e n a r i o : A patient contacts the hospital reception for an appointment with a doctor. Thereceptionist checksthe availability of the doctor and gives an appointment to the patient. This appointment is entered inthe doctor s schedule by the receptionist.John is asked by his supervisor to realize the use case, Take appointment in thedesign phase. He identifiesthe following participating classes for this use case:AppointmentScheduleReceptionContact

AvailabilityHas John identified the participating classes correctly? If not, identify the correct participating classes for the given use case."1, Yes, the participating classes identified by John are correct."2, No, the participating classes identified by John are incorrect. The participating classes should be:AppointmentScheduleDoctorReceptionistContact""3, No, the participating classes identified by John are incorrect. The participating classes should be:AppointmentScheduleDoctorPatient""4, No, the participating classes identified by John are incorrect. The participating classes should be:AppointmentScheduleDoctorAvailabilityP a t i e n t " . 3 . 31."Consider the s c e n a r i o f o r a h o t e l r e s e r v a t i o n s y s t e m : The use cases required to implement the requirements of the first iteration are:* Make reservation* Check in guest* Check out guestThe make reservation use case allows either a guest or the receptionist to reserve a room in the hotel.The check in guest use case allows the receptionist at the hotel to validate theguest details and checkthe guest in. The check out guest use case allows the receptionist to complete the payment formalities beforethe guest leaves the hotel.Sam draws a figure to depict the use case diagram with the system boundary for the first iteration of thehotel system.Click the Exhibit button to view the figure.Which of the following options is correct with respect to the given figure?"1, The figure drawn by Sam is correct.2, The figure drawn by Sam is incorrect. The system boundary should include theactors, Guest andReceptionist along with the use cases.3, The figure drawn by Sam is incorrect. The System boundary should contain theuse case along with the actor,Receptionist. This is because Receptionist is member of the Hotel.4, The figure drawn by Sam is incorrect. The make reservation use case is eitherinitiated by the Guestor the Receptionist. Therefore, the line from both the actors to the make reservation use case is incorrect. (A1) 32.John is assigned the task of documenting the i n p u t s p r o v i d e d b y t h e s t a k eholders. While documentingthe inputs, he missed to mention the probability of change in the various requirements in future. Which ofthe following

attributes did John miss to mention in the document?1, Status2, Uncertainty3, Rank4, Stability. (A4)

33.Joseph is assigned the task of managing the r e q u i r e m e n t s o f a s o f t w a r e s ystem to be developed.He is currently analyzing economic, technical, and operational feasibility of the software to be developed.In which phase of requirement management is Joseph currently working?1, Requirements analysis and negotiation2, Requirements gathering3, Requirements specification4, Requirements validation. (A2) 3 4 . S a m i s assigned the task of developing a storyboard that c o n s i s t s o f s i m ulations and various animations.Which type of storyboard(s) can Sam use to accomplish this task?1, Active and Passive2, Active and Interactive3, Interactive and Passive4, Only Interactive. (A2) 3 5 . " J o h n h a s d e v e l o p e d a s o f t w a r e o n i n v e n t o r y m a n a g e m e n t s y s t e m t h a t i n v o l ves various entities such assuppliers, buyers, and data entry operator. The data entry operator updates allthe transactions made by thebuyer/supplier in the system. Identify the secondary actor(s) in this scenario."1, Suppliers and data entry operator2, Suppliers and Buyers 3, Buyers and data entry operator4, Data entry operator only. (A2) 36.John has developed various use case diagrams f o r a l i b r a r y m a n a g e m e n t s y stem. However, later hefound that a use case, checkBookDetails, is missing. The functions of this use case are required in thefunctions of the existing use cases, issueBook and deleteBook. Therefore, John decided to modify the existinguse case diagram by redefining the functions of the actors to represent the desired functionality.Identify whether John has taken the correct decision? If not, identify what should John have done to enhancethe existing use case of the library management system.1, He should have redefined the flow of events to represent the desired functionality.2, He should have added the checkBookDetails use case in the existinguse case diagram and connected it withthe issueBook and deleteBook use cases by using an include relationship.3, He

should have extended the issueBook and deleteBook use cases to incorporatethe desired functionality.4, He took the correct decision. (A2) 3 7 . " Y o u n e e d t o d e v e l o p a L i b r a r y M a n a g e m e n t S y s t e m f o r a l i b r a r y . F o r t h i s, you have created aBookTransaction class that includes an operation named CalculatePenalty. The operation needs to be invokedevery time a book, borrowed earlier, is returned by a member. This operation isused to calculate the penalty,if applicable, to be paid by the member if the book is returned after the due date. No other class is ableto access this operation except for the container class. The operation accepts two Date type parameters,namely, DateOfIssue and DateOfReturn and returns a float value to the invokingfunction.Provide the correct syntax for the declaration of the above mentioned operationin a class diagram."1, CalculatePenalty(DateOfIssue:date,DateOfReturn:date):float2, #CalculatePenalty:(date:DateOfIssue,date:DateOfReturn):float3, CalculatePenalty:float(DateOfIssue:date,DateOfReturn:date)4, ~CalculatePenalty(DateOfIssue:date,DateOfReturn:date):float. (A1) 38."You need to develop a Library M a n a g e m e n t S y s t e m f o r a l i b r a r y . F o r t h i s, you have created aBookTransaction class that includes an attribute named Penalty. If a member returns borrowed books afterthe due date, the amount of penalty payable by that member for the delay in returning the books is stored inthe attribute, Penalty. Penalty can not be accessed outside the BookTransactionclass and its data type is float.The default value of Penalty is 0.0 and only one value can be stored in it at any given time.Provide the correct syntax for the declaration of the attribute Penalty in a class diagram."1, Penalty:Float=[0.0] :12, -Penalty:Float [1] = 0.03, ~Penalty:Float [1]:0.04, #Float:Penalty[1] = 0.0. (A2) 3 9 . " I n f o V i s i o n I n c . i s designing different modules for automation of the N e wAge Bank. The module forthe ATM system of the bank will involve accepting a card from the bank customer.The customer can be holdinga credit or a debit card. Before the customer is allowed to request for a transaction, the card must bevalidated. The CardScanner accepts the card. The ValidateCard class checks the card and validates

it.The structure of the sequence diagram has been developed. However, the message flow among the objects hasnot been defined.Visualize the sequence diagram and provide the correct messages that need to bepassed within the sequencediagram.""1, The following operations should be depicted to complete the sequence diagram:-- The object of the ValidateCard class invokes the CheckCreditCard() method ofthe ValidateCard class ifthe condition [CardType=CC] evaluates to True.-- The object of the ValidateClass invokes the CheckDebitCard() method of the ValidateCard class if thecondition [CardType=DC] evaluates to True.""2, The following operations should be depicted to completethe sequence diagram:-The object of the CardScanner class invokes the CheckCreditCard() method of the ValidateCard class and onits failure to validate the card, invokes the CheckDebitCard() method of the same class.""3, The following operations should be depicted to complete the sequence diagram:-- The object of the ValidateClass invokes the CheckCard() method of the Validat eCard class.""4, The following operations should be depicted to complete the sequence diagram:-- The object of the CardScanner invokes the CheckCreditCard() method of the ValidateCard class if the condition[CardType=CC] evaluates to True. -- The object of the CardScanner invokes the CheckDebitCard() method of the ValidateCard class if the condition[CardType=DC] evaluates to True." (A4)

40."Jonathan is working as an automobile m e c h a n i c i n a n a u t o m o b i l e s e r v i c e centre. Once he finishesrepairing a motor car assigned to him, he records the tasks performed by him onthe car. On the basis of thetasks performed, a bill of charges is generated that is payable by the customer.The record of tasks performedis stored in the object of the TaskPerformed class. The bill of charges is generated by the object of the Billclass.Visualize the sequence diagram for the preceding scenario, and identify the messages and the componentsinvolved within the sequence diagram

that will generate the bill of charges.""1, The sequence diagram should depict invoking of the following message:-- TasksPerformed class invokes the GenerateBill() method of the Bill class.""2, The sequence diagram should depict invoking of the following messages:- Jonathan first invokes the EnterTasks() method of the TasksPerformed class.-- Jonathan then invokes the GenerateBill(TasksPerformed) method of the Bill class.""3, The sequence diagram should depict invoking of the following message:-Jonathan first invokes the GenerateBill(TasksPerformed) method of the Bill class.-- The Bill class then invokes the EnterTasks() method of the TasksPerformed class.""4, The sequence diagram should depict invoking of the following message:-- Bill class self-invokes the GenerateBill(TasksPerformed) method contained byit." (A2) 41."Bryan needs to model the functioning of a c o a c h i n g i n s t i t u t e , N e w E r a S tudies. The coaching instituteprovides educational services and identifies the students in three groups depending on their level of studies,namely, Elementary, Middle, and High School students. Bryan, while designing the model creates a class Students.He also creates separate classes, namely, Elementary, Middle, and High for eachlevel of study group. In theclass diagram for the institute, he has related these three classes with the Students class using a Generalization relationship symbol.Analyze if the relationship amongst these classes is correctly depicted. Also provide the correct relationshipin case the existing relationship is incorrect."1, The relationship depicted amongst these classes is correct.2, The relationship depicted amongst these classes is incorrect. The classes should be related usingDependency relationship.3, The relationship depicted amongst these classes is incorrect. The classes should be related usingRealization relationship.4, The relationship depicted amongst these classes is incorrect. The classes should be related usingAggregation relationship. (A1) 42.The customers of a telecommunication c o m p a n y l o d g e t h e i r c o m p l a i n t s r e l a ted to the various subscribedservices on the company's website. The complaints are

stored in an object of the CustComplaint class in theCustomer Care system. These complaints are addressed by the customer care executives appointed by the company.While addressing the complaints, the executives need the complaint number and the complaint text. The systemuses the object of the CustComplaint class to provide these details to the executives. The process of providingthe complaint number and the complaint text to the executives by using the object of the CustComplaint classneeds to be depicted in an activity diagram. Which of the following elements will you use in the activitydiagram to depict the conversion of an object of the CustComplaint class into complaint number and complaint text?1, Fork2,Join3, Transformation4, Flow Final. (A3) 4 3 . " T h e C i t y Departmental Store has announced heavy d i s c o u n t s o n s o m e o f i t s products during the ongoingfestive season. The store has also announced that the customers who are not satisfied with the product theypurchased can return the same within 10 days of purchase. The store needs to kee p a track of all the productsso that they can be re-ordered whenever the need be. They also need to keep a track of the products thatare defective so that they can be replaced. Robin, a designer, is required to develop the model for thefunctioning of the departmental store. While developing the State Machine diagram for the products in the store,Robin identified the following states of the products:-- In Stock- Out of Stock-- ReturnedHowever, the design was rejected by the systems design specialist. Analyze the scenario and provide the most suitable states that Robin should incorporate in his d e s i g n . " " 1 , The correct states for the products should be i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold- Returned""2, The correct states for the products s h o u l d b e i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold-- Sold-- Returned- - D e f e c t e d " " 3 , T h e c o r r e c t s t a t e s f o r t h e p r o d u c t s s h o u l d b e i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold-- Returned- - D e f e c t e d " " 4 , T h e c o r r e c t s t a t e s f o r t h e p r o d u c t s s h o u l d b e i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold-- Not Discounted- D e f e c t e d " . A 2 . 44.Jonathan is

developing an activity diagram for the Library M a n a g e m e n t S y stem. Presently,he needs to depict the Book Return process in the diagram. When a member returns books, the delay inreturning each book and the penalty applicable should be calculated. Once penalty is calculated for eachbook returned by a member, the total penalty should be calculated and the system should print a consolidatedpenalty slip to be issued to the concerned member. The activity diagram should depict the correct flow ofthese sub processes. Suggest which of the following elements of an activity diagram should Jonathan use todepict the sub processes for calculating delay and penalty for each book?1, Pins and Transformation2,Forks and Joins 3, Expansion Region4, Flow Final. (A3) 43."The City Departmental Store has announced h e a v y d i s c o u n t s o n s o m e o f i t s products during the ongoingfestive season. The store has also announced that the customers who are not satisfied with the product theypurchased can return the same within 10 days of purchase. The store needs to kee p a track of all the productsso that they can be re-ordered whenever the need be. They also need to keep a track of the products thatare defective so that they can be replaced. Robin, a designer, is required to develop the model for thefunctioning of the departmental store. While developing the State Machine diagram for the products in the store,Robin identified the following states of the products:-- In Stock- Out of Stock-- ReturnedHowever, the design was rejected by the systems design specialist. Analyze the scenario and provide the most suitable states that Robin should incorporate in his d e s i g n . " " 1 , The correct states for the products should be i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold- Returned""2, The correct states for the products s h o u l d b e i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold-- Sold-- Returned- - D e f e c t e d " " 3 , T h e c o r r e c t s t a t e s f o r t h e p r o d u c t s s h o u l d b e i d e n t i f i e d a s : -- In Stock-- Out of Stock-- Being Sold-- Returned- - D e f e c t e d " " 4 , T h e c o r r e c t s t a t e s f o r t h e p r o d u c t s s h o u l d b e i d e n t i f i e d a s : -- In

Stock-- Out of Stock-- Being Sold-- Not Discounted- D e f e c t e d " . A 2 . 44.Jonathan is developing an activity diagram for the Library M a n a g e m e n t S y stem. Presently,he needs to depict the Book Return process in the diagram. When a member returns books, the delay inreturning each book and the penalty applicable should be calculated. Once penalty is calculated for eachbook returned by a member, the total penalty should be calculated and the system should print a consolidatedpenalty slip to be issued to the concerned member. The activity diagram should depict the correct flow ofthese sub processes. Suggest which of the following elements of an activity diagram should Jonathan use todepict the sub processes for calculating delay and penalty for each book?1, Pins and Transformation2,Forks and Joins 3, Expansion Region4, Flow Final3 1, [ j :1 .. 5 ]2, *[ j = 1 .. 5 ]3, [ j := 1 .. 5 ]4, *[ j := 1 .. 5 ]. (A4) 49."Sam is working on the development of s o f t w a r e f o r a n o n l i n e b o o k s t o r e . In this system,when the customer places an order for a book, the system checks for the availability of the bookand displays the quantity available to the customer. The customer makes the payment, and the salesdepartment dispatches the book. If the book is not available, the order processing is held until thestock arrives.Sam has represented the preceding transactions by using an activity diagram. However, Sam's supervisorwants him to modify the activity diagram so that it clearly specifies which activity is performed bywhich class. Also, his supervisor wants him to depict that the order processingis put on hold till thestock arrives. Identify what Sam needs to do to fulfill the preceding requirements."1, Sam should use swim lanes to depict the classes responsible for each activity. He should use pinsto depict that the order processing is put on hold till the stock arrives.2, Sam should use transformations to depict the classes responsible for each activity. He should usesignals to depict that the order processing is put on hold till the stock arrives.3, Sam should use transformations to depict the classes responsible for each activity. He should useexpansion regions to depict that the order processing is put on hold till the stock

arrives.4, Sam should use swim lanes to depict the classes responsible for each activity. He should usesignals to depict that the order processing is put on hold till the stock arrives. (A4) 50."Angelina is a student of the OOAD UML c o u r s e . S h e w a n t s t o w r i t e t h e s teps for drawing anactivity diagram for attending a lecture of OOAD UML at 8:00 AM in the University.To attend the lecture, she has to get dressed to leave for the lecture. A decisi on then has to be made,depending on the time available for the lecture to start, and the timings of thepublic trains. If thereis sufficient time to catch the train, then she should take the train. Otherwise, she should take a busto the University. Then, she has to attend the lecture, after which the Activitydiagram terminates.The steps she writes to create the activity diagram are:1. Identify the scope of the activity: Attending a lecture at 8:00am.2. Add the start and end states.3. Draw action states: Get dressed, take a train, attend lecture, and take a bus.4. Identify the first action state: Get dressed.5. Add a transition from the start state to the get dressed state.6. Add all the transitions of the action states: take a train, attend lecture, and take a bus.7. Add a transition from the take a bus state to end state.8. Add the decision point, on time to catch the train or not on time to catch the train9. Identify concurrent actions, catch a train to University and catch a bus to university, and model thoseusing forks and joins.Identify whether Angelina used the correct approach to create the activity diagram. If not, identify thecorrect steps that she should follow to create the required activity diagram."1, Yes, Angelina has used the correct approach to create activity diagram"2, No, Angelina should use the following steps to create the activity diagram:1. Identify the scope of the activity: Attending a lecture at 8:00am.2. Add the start and end states.3. Draw action states: Get dressed, take a train, take a bus, and attend lecture.4. Identify the first action state: Get dressed.5. Add a transition from the start state to the get dressed state.6. Add all the transitions of the action states: take a train, attend lecture, and take a bus.7. Add a transition from the attend lecture state to the end state.8. Add the decision point: on time to catch the train or not on time to catch the train9. Identify concurrent actions, catch a train to

University and catch a bus to un i v e r s i t y , a n d m o d e l t h o s e u s i n g f o r k s a n d j o i n s . " " 3 , N o , A n g e l i n a s h o u l d use the following steps to create the activity diagram:1. Identify the scope of the activity: Attending a lecture at 8:00am.2. Add the start and end states.3. Draw action states: Get dressed, take a train, take a bus, and attend lecture.4. Identify the first action state: Get dressed.5. Add a transition from the start state to the get dressed state.6. Add all the transitions of the action states: take a train, attend lecture, and take a bus.7. Add a transition from the last action state to the attend lecture state.8. Add the decision point: on time to catch the train or attend lecture.9. Identify concurrent actions, catch a train to University and catch a bus to un i v e r s i t y , a n d m o d e l t h o s e u s i n g f o r k s a n d j o i n s . " " 4 , N o , A n g e l i n a s h o u l d use the following steps to create the activity diagram:1. Identify the scope of the activity: Attending a lecture at 8:00am.2. Add the start and end states.3. Draw action states: Get dressed, take a train, take a bus, and attend lecture .4. Identify the first action state: Take a decision to catch the train or the bus.5. Add a transition from the start state to the first action state.6. Add all the transitions of the action states: get dressed, attend lecture.7. Add a transition from the attend lecture state to the end state.8. Add the decision point, on time to attend the lecture or not.9. Identify concurrent actions, catch a train to University and catch a bus to un i v e r s i t y , a n d m o d e l t h o s e u s i n g f o r k s and joins."25 1 W h a t i s a n a b s t r a c t c l a s s ? 1, An abstract class is a class that has multiple objects having the same attribute values.2, An abstract is a class that provides a mechanism to use operations and classes to work with differentdata types.3, An abstract class is a class that does not have any direct instances.4, An abstract class is a class that has objects, which fulfill more than one role. (A3) 5 2 . W h a t i s t h e d i f f e r e n c e b e t w e e n a n a b s t r a c t c l a s s a n d a n i n t e r f a c e ? 1, An abstract class provides the specification of methods, but an interface does not providethe specification of methods.2, An abstract

class allows you to create instances directly, but an interface does not allow you tocreate instances directly.3, Implementation of methods of an abstract class is provided by derived classes, but implementationof methods of an interface cannot be provided by derived classes.4, An abstract class contains attributes and methods that can be public, private, or protected,but an interface consists of only methods. (A4) 53.Which of the following options is correct a b o u t s t a t i c m o d e l i n g a n d d y n a mic modeling?1, Static modeling includes class and object diagrams, whereas dynamic modelingincludes interaction,activity, and state diagrams.2, Static modeling helps in expressing and model ing the behavior of a system over a period of time, whereas dynamic modeling hel ps in depicting the relationships and dependencies between the constituents of as y s t e m . 3 , S t a t i c m o d e l i n g represents the behavior of static c o n s t i t u e n t s of a software system, whereas dynamic modeling represents the static or structural constituents of a software system.4, Static modeling is also known as behavior modeling, and dynamic modeling is also known as structural modeling. (A1) 54.Which of the following is NOT a guideline f o r c r e a t i n g s t a t e d i a g r a m s ? 1, Identify the collaboration for a system, class, or use case.2, Use the sequen t i a l a n d c o n c u r r e n t s t a t e s t o s i m p l i f y t h e s t a t e d i a g r a m s . 3 , E n s u r e t h a t a n object attains a state from which there is no possible transition to other stat e s . 4 , Identify the events that cause a transition in the state o f a n o b j e c t . (A3) 5 5 . " J o h n i d e n t i f i e d t h e f o l l o w i n g r e s p o n s i b i l i t i e s o f a l i b r a r y m a n a g e m e n t software system:1. Maintain book information such as book ID, author, and price.2. Maintain staff information such as staff ID, name, and address.Identify various classes to be used for this software."1, Book, Author, Price2, Staff, Name, Address3, Book, Staff4, Author, Price, Staff, Name. (A3)

56.Joseph needs to create an object diagram f o r t h e B o o k c l a s s t o b e u s e d i n the developmentof the software for library management system. From the figure given in the exhibit, identify thecorrect diagram that Joseph should use to accomplish his task. Click the Exhibitbutton to view the exhibit.1, a2, b3, c4, d. (A2) 5 7 . S a m n e e d s t o r e p r e s e n t t h e r e l a t i o n s h i p b e t w e e n t w o o b j e c t s o f t h e E m p l o yee class diagrammatically.Which relationship diagram should Sam use in this case?1, Generalization2, Recursive Aggregation3, Dependency4, Qualified association. (A2)

58.Mary needs to graphically represent an i n t e r f a c e o f a c a l c u l a t o r b y u s i n g UML. From the figuregiven in the exhibit, identify the correct diagram to accomplish this task. Click the Exhibit button toview the exhibit.1, a2, b3, c4, d15 9 " S a m i s a s s i g n e d t h e t a s k o f d e v e l o p i n g s o f t w a r e f o r a b o o k s h o p . H e c u r rently needs tocreate a module to facilitate the issue of orders received and update the details of books sold ina database. However, before implementing this functionality in the code, Sam needs to graphicallyrepresent the interaction among various objects, such as Order and book database, in the form ofmessages ordered in a sequence of time. He created a diagram as shown in the exhibit.Click the Exhibit button to view the exhibit.Identify the error in the diagram, if any."1, The arrow labeled as "Transaction complete" should be actually labeled as destroyed.2, The arrow labeled as "IssueOrder (o_num,o_code)" should actually be labeled as create.3, The duration of time for the object, Order, should be greater than the Customer object.4, The diagram is correct. 4

2, b3, c4, d47 7 " S a m i s a p a r t o f t h e s o f t w a r e d e v e l o p m e n t t e a m f o r a b o o k s t o r e . H e i s required to createa component, updateBookDetails, which updates the book details in the database.However, before hebegins coding for this

component, he needs to graphically represent the relationship between theupdateBookDetails component and the classes, Book and Operator, by using a component diagram.From the figure given in the exhibit, identify the correct diagram to accomplishthis task.Click the Exhibit button to view the exhibit."1, a2, b3, c4, d27 8 " S a m h a s developed a design model for a library m a n a g e m e n t s y s t e m b y u s i ng various classes and methods. He now needs to generate code by using this design model. To begin with, he needs to generate code for the class diagram shown in the exhibit.Based on this class diagram, identify the code generated for the BookList class.Click the Exhibit button to view the exhibit.""1, public class BookList {private int Quantity;}} " " 2 , p u b l i c c l a s s B o o k L i s t { public void addBook (Book b) {}} " " 3 , p u b l i c c l a s s B o o k L i s t { private int Quantity;public void addBook (Book b) {}} " " 4 , p u b l i c c l a s s B o o k L i s t { private int Quantity;public void addBook() {}}"37 9 S a m i s a s s i g n e d t h e t a s k o f d e v e l o p i n g s o f t w a r e f o r a n o n l i n e b o o k s t o r e . Before beginning with coding, he identified two major software components of the system, books database application and client program. Sam now wants to graphically represent the processing devices as well as the database server and client PC on which the books database and client program will execute, respectively. To accomplish this task, he used deployment diagrams to represent these components graphically. Identify whether Sam used the correct diagram in this case. If no t , i d e n t i f y t h e c o r r e c t diagram.1, He should have used the package diagra m . 2 , H e h a s u s e d t h e c o r r e c t diagram.3, He should have used the stated i a g r a m . 4 , H e s h o u l d h a v e u s e d t h e c o m p o n e n t d i a g r a m . 2 80"EasyHomeShopping Inc., is a w e l l k n o w n o n l i n e s h o p p i n g s i t e . L a r g e n u m b er of customers have registered on this website to shop online for different types of products. The client application on Web performs the

following functions:1. Checks the login details of the customer.2. Validates the account balance of the customer.3. Transfers the required amount from customer's account to the account of EasyHomeShopping Inc.The preceding scenario results in accessing multiple server-side objects for a particular client. As a result, due to separate invocation of each server-side object by a client, network traffic has significantly increased resulting in performance degradation.Which pattern should be used in this scenario so that the client does not accesst h e s e s e r v e r - s i d e o b j e c t s d i r e c t l y ? " 1 , P r o x y 2 , D e c o r a t o r 3 , C o m p o s i t e 4 , S e s s i o n F a a d e 4 81"Jane has to design an online shopping website for S m a r t a c c e s s o r i e s , I n c. According to the initial requirements provided by Smart accessories, the website should provide the following features:* Should allow the users to browse through the catalog containing the items forsales* Should allow the users to buy products onlineJane decided to use the spiral approach for developing the Online Shopping website. Also, she identified the following dimensions of the Design process component:Roles: System Designer Activity: Analysis of SRSCreate UML diagramsCreate design documentDeliverables: Design documentHas Jane chosen the correct life cycle model? Also, are the dimensions of the design process component identified by Jane correct? If not, identify the appropriate model and the dimensions of the design process component for developing thew e b s i t e ? " 1 , Y e s , J a n e h a s chosen the correct life cycle model. Also, t h e dimensions of the design process component identified by Jane are correct."2, No, Jane has not chosen the correct life cycle model and dimensions of the design process component. She should use the prototype approach as it can effectively trap the requirements of a wide range of users. Also, the dimensions of thedesign process component should be:Roles: Project ManagerSystem AnalystSystem DesignerSoftware EngineerActivity: Analyze requirements and create prototypeImplement feedback on the evaluated prototype Deliverables: Prototype of the various Web pages of

the shopping site""3, Yes,Jane has chosen the correct life cycle model. However, the dimensions of the d esign process component should be:Roles: System AnalystSystem DesignerActivity: Analysis of SRSCreate design document Deliverables: Design document""4, No, Jane should use the waterfall approach for developing the Online Shopping website. Also, the dimensions of the design process component should be:Roles: System DesignerSoftware EngineerActivity: Analysis of SRSCreate UML diagramsValidate UML diagramsCreate design documentD e l i v e r a b l e s : D e s i g n document"28 2 W h i c h o f t h e f o l l o w i n g i s N O T t r u e a b o u t q u a l i t y p r o c e s s ? 1 , Q u a l i ty of a software process includes the quality of the hardware used for softwared e v e l o p m e n t . 2 , Quality of a software process includes quality of the software models that are used for the software development process.3, Quality of a s o f t w a r e process includes quality of the quality p r o c e s s i t s e l f . 4 , Q u a l i ty of a software process includes quality of the software development process tha t i s u s e d t o d e v e l o p t h e s o f t w a r e s y s t e m . 1 83"Refer to the figure given in exhibit. Which quality p r o c e s s e l e m e n t d o e s the notation in the exhibit signify?C l i c k t h e E x h i b i t b u t t o n t o v i e w t h e exhibit."1, Process-component2, Starto f p r o c e s s - c o m p o n e n t 3 , E n d o f p r o c e s s - c o m p o n e n t 4 , A c t i v i t y 3 84What does distributed data processing describe in the context of the guid e l i n e s f o r d e t e r m i n i n g t h e d e g r e e o f i n f l u e n c e o f G S C s ? 1 , I t d e s c r i b e s the degree to which computer resource restrictions influence the development oft h e a p p l i c a t i o n . 2 , I t d e s c r i b e s t h e d e g r e e t o w h i c h t h e r e s p o n s e t i m e a n d throughput performance of a software application is influenced at the time ofd e v e l o p m e n t . 3 , I t d e s c r i b e s t h e d e g r e e t o w h i c h t h e

a p p l i c a t i o n c o m m u n i c a t e s directly with the processor.4, It describes the degree to which the applicat ion transfers data among components of the application.4 85While measuring the complexity of UML a r t i f a c t s , y o u o n l y n e e d t o m e a s u r e the complexity of some static components. Identify which component does not fal l under this category.1, Use case diagram2, Activity diagram3, Classd i a g r a m 4 , C o m p o n e n t d i a g r a m 2 86John is a part of a software development team that focuses on the q u a l i t y of the code being generated using UML models. Identify the quality aspect thatJ o h n n e e d s t o f o c u s o n . 1 , Q u a l i t y o f v i s u a l i z a t i o n 2 , Q u a l i t y o f s p ecification3, Quality of construction4, Quality of documentation3 87John wants to represent model elements for w h i c h U M L d o e s n o t h a v e a s p e cific notation. Which of the following options can he use to achieve this?1 , E x t e n d t h e vocabulary of UML by using stereotypes2, Extend the vocabularyof UML by using constraints3, Extend the vocabulary of UML by using tagged v a l u e s 4 , T a i l o r UML by using constraints and tagged values188Sam needs to identify the total n u m b e r o f F P s f o r t h e s o f t w a r e o f a l i b r ary management system. To do so, he has identified the total number of files andinterfaces. What else does he need to identify to accomplish his task?1, Totaln u m b e r o f i n p u t s , outputs, and enquiries2, Total number of i n p u t s a n d o u tputs3, Total number of inputs and e n q u i r i e s 4 , T o t a l n u m b e r o f e n q u i r i e s 18 9 T h e planned productivity for a project was 2800 p r o c e s s c o m p o n e n t s p e r m onth. However, the actual

productivity is 1400 process components per month. Cal c u l a t e the adjustment factor for this project.1, 2 2 , 4 2 0 0 3 , 0 . 5 4 , 1 4 0 0 39 0 " T h e m a n a g e m e n t o f the MyBookShop Inc., bookstore has decided to u p g r a d e its website. As a result, new software containing the upgraded functionality needs to be created that will replace the existing software, and all the old datawill be replaced with the new data. Sam is a part of the development team that is responsible for calculating the size of this project. He is assigned the taskof calculating the Adjusted Point Function based on the following data:Sum of Data FPs = 41Sum of Transaction FPs = 36FP Count for Conversion Functionality = 16Value Adjustment Factor = 1.23Based on the preceding data, calculate the Adjustment Point Function."1, 114.39 2 , 1 . 4 2 3 , 7 7 4 , 9 4 . 7 1 1 91Sam is a part of the software development team for an online b a n k i n g s y s tem. He is currently working on a module that frequently accesses the database server for various transactions. An efficient functioning of this module dependsupon specific processor requirements so as to ensure uninterrupted database transactions. Therefore, Sam assigned a value, 3, as the degree of influence for such r e s o u r c e r e s t r i c t i o n . I d e n t i f y t h e G S C f o r this scenario.1, Transaction Ra t e 2 , H e a v i l y Used Configuration3, Performance4, O n l i n e D a t a E n t r y 29 2 " S a m i s a p a r t o f t h e software development team creating software f o r a bank. However, before beginning with coding, he is asked to create various use cases of the system and calculate the complexity of those use case diagrams. While creating use cases, he identified actors as Customer and Staff, and identifieduse cases as Create Account, Delete Account, and Deposit Money. In addition, heidentified 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 , T o t a l n u m b e r of actors = 22, Total number of use cases =33, Total

numbero f r e l a t i o n s h i p s = 3 " 4 , T o t a l n u m b e r o f actors = 2 Total number of use cases =3T o t a l n u m b e r o f r e l a t i o n s h i p s = 3 " 4 93Sam is a part of the software development team for library m a n a g e m e n t s y stem. He is currently assigned the task of developing the functionality for twoclasses, UpdateBookDetails and UpdateMemberDetails. Both these classes are the implementation classes of the type class, Transaction. However, before implementing the functionality for these classes, Sam decided to first create class diagrams for these classes. In this diagram, he also wants to represent the differencebetween the type class and the implementation classes. View the exhibit and identify if the class diagram that Sam has drawn is correct. If it is incorrect, poi n t o u t t h e e r r o r s . C l i c k the Exhibit button to view the exhibit.1, The class diagram is correct.2, The class d i a g r a m i s i n c o r r e c t . T h e l a b e l < < T ype>> needs to be replaced with {Type} and the label <<Implementation>> needs tob e r e p l a c e d w i t h { I m p l e m e n t a t i o n } 3 , T h e c l a s s d i a g r a m i s i n c o r r e c t . T h e l abel <<Type>> needs to be replaced with <<T>> and the label <<Implementation>> needs to be replaced with <<I>>4, The class diagram is incorrect. The label <<Type>> needs to be replaced with {T} and the label <<Implementation>> needs to ber e p l a c e d w i t h { I } 1 94John is a part of the software development team for an inventory m a n a g e m ent system. He is given various class diagrams for the software being developed.He is asked to measure the complexity of these diagrams in terms of the complexity of their operations by using the WMC metric. To begin this activity, he first selects the Inventory Manager class. He found that three operations of this class have complexities, 2, 8, and 14. Based on this data, he calculated the complexity of this class as 4. Identify whether this value is correct. If not, identif y t h e c o r r e c t v a l u e f o r t h e complexity.1, The complexity value d e t e r m i n ed by John is correct.2, The complexity value

determined by John is incorrect.T h e c o r r e c t v a l u e i s 20.3, The complexity value determined by John is incorrect. The correct value is 24.4, The complexity value determined by Jo h n i s incorrect. The correct value is 224.3

96"The management of MyBookShop Inc., b o o k s t o r e h a s d e c i d e d t o u p g r a d e t h e ir website. As a result, a new software containing the upgraded functionality needs to be created that will replace the existing software, and all the old datawill be replaced with new data. Sam is a part of the development team that is responsible for calculating the size of this project. He is assigned the task of calculating the Adjusted Function Points based on the following data:Sum of Data FPs = 40Sum of Transaction FPs = 35FP Count for Conversion Functionality = 15Total Degree of Influence = 57Based on the preceding data, John calculated the Adjustment Point Function as 91.5. Check whether this value is correct. If not, identify the correct value."1 , 1 0 9 . 8 2 , 1 . 4 3 , 7 5 4 , T h e v a l u e i s c o r r e c t . 1 9700%Sam is assigned the responsibility to ensure that software products aredeveloped as per the defined and documented sequence of activities and tasks. Whi c h q u a l i t y c h e c k i s S a m w o r k i n g on?1, Architecture quality2, Process qualit y 3 , Q u a l i t y e n v i r o n m e n t 4 , M a n a g e m e n t q u a l i t y 2 98As a project manager, John wants to store some i n f o r m a t i o n i n h i s U M L d i agrams for his reference. Which of the following options can he use for the same? 1 , S t e r e o t y p e s 2 , C o n s t r a i n t s 3 , S t e r e o t y p e s a n d c o n s t r a i n t s 4 , T a g g e d v a l u e s 4 99To measure a software development process, Sam is asked to

m e a s u r e t h e t echnology dimension. What is the responsibility of Sam in this case?1, Measu r e t h e activities and tasks related to a process c o m p o n e n t 2 , M e a s u r e t h e o utput of a process component3, Measure the role of a process component4 , M e a s u r e t h e i n p u t o f a p r o c e s s c o m p o n e n t 2 100Which of the following options i s t r u e a b o u t F u n c t i o n P o i n t ( F P ) e s t i m a t ion technique?1, It measures the number of resources required to complete a project.2, It measures the duration of a project.3, It can be used to determine the effort required to develop a project.4, It estimates the productivity of a project.3 1 0 1 W h i c h o f the following options is the process of converting of a value ty p e t o a r e f e r e n c e t y p e ? 2 , C a s t i n g 3 , U n b o x i n g 4 , B o x i n g41 0 2 W h i c h o f the following interfaces allows you to add item to a n d r e m o v e i tems from a specific location within the collection?1, IList2 , I C o m a p r a b l e 3 , I C o l l e c t i o n 4 , I D i c t i o n a r y 1 103Which of the following attributes for the custom XML format specifies th at XmlSerializer serializes the class member as an XML attribute?1, XmlEle m e n t A t t r i b u t e 2 , XmlArrayItemAttribute3, XmlAnyElementAttribute4 , X m l A t t r i b u t e A t t r i b u t e 4 104Wh ich of the following options allow you to create a n i n s t a n c e o f a d e l e gate by specifying a block of inline code to be invoked by the delegate?1, Covariance2, Publisher3, Anonymous4 , S u b s c r i b e r 3 1 0 5 Y o u h a v e created an assembly, CalculateInterest.dll. You w a n t t h a t t h e a ssembly should be sharable and accessible to all the applications. Which of thefollowing options will allow you to enable all applications to share and accessthe assembly?1, Multifile assemblies2, Single file assemblies3 , S t r o n g

n a m e 4 , G l o b a l A s s e m b l y C a c h e 4 106You want to modify the content of a f i l e , E m p l o y e e . t x t . F o r t h i s , y o u w a nt that the pointer should be placed at the beginning of the file. Which of thefollowing methods will allow you to accomplish the preceding task?1, Seek2, Write3, Read4 , F l u s h 1 107Paul has implemented the code in the application to log t h e e v e n t s t h a t occur in the application while it is accessed by a user. Now, you want to read the information from the event log. Which of the following properties of the EventLog class will you to get the information?1, Entries2, Log3 , M a c h i n e N a m e 4 , E v e n t s 1 108You are creating a method that r e t u r n s a d a t a b a s e o b j e c t . N o w , y o u w a n t to convert the database object into an XML format. Which of the following methods of the XmlSerializer class allows you to accomplish the preceding task?1, FromTypes2, Deserialize3, CreateWriter4 , S e r i a l i z e 4 109Brown is creating an application that adds a bonus to the salary of t h e employees of different departments. He has declared three variables that contains fixed bonus values for each department. This bonus value will be added to theemployee's salary depending upon the salary and the department entered by the employee. Which of the following user-defined value types will you use to declareand use such variables?1, Constant2, Structure3, Class4 , E n u m e r a t i o n 1 110You have created a COM component that calculates and displays the a n n u a l salary of an employee. You want that the COM component should run on multiple platforms. Which of the following features of COM components will allow you to accomplish the preceding task?1, Portability2, IL Disassembler 3, Self-dependency4 , V e r s i o n i n g 1 1 1 1 Y o u a r e creating an application using Visual Studio. You w a n t t h a t a n e r ror message should be generated with all the detail information about the errorif an any exception occurs while the

application is executed. Which of the following methods of the Trace class will you to get the information?1, Assert2 , F a i l 3 , WriteIf4 , W r i t e 2 112You are creating an application using Visual Studio. In the a p p l i c a t i o n , you are creating a method that access the data from the database. You want thatmethod should be invoked asynchronously. Which of the following options will you use to invoke the method asynchronously?1, EventArgs2, Event handler3, Delegates4 , E v e n t s 3

fs.Close();Console.Write(""Content Written"");Console.ReadKey();""4, string text = ""This is a sample file that ......."";FileInfo fileStore = new FileInfo(""Myfile.txt"");FileStream fs = fileStore.Create();byte[] encodetext = new UTF8Encoding(true);fs.Write(encodetext, 0, encodetext.Length);fs.Close();Console.Write(""Content Written"");Console.ReadKey();"3 1 1 6 Y o u w a n t t o v i e w the trace information of an application. The trace i n f o rmation should contain only the error and warning messages. Which of the following code snippets will you use to accomplish the preceding task?"1, <?xml version=""1.0""?><configuration><system.diagnostics><switches><a dd name=""MySwitch"" value=""2""/></switches></system.diagnostics></configuration>""2, <?xml version=""1.0""?><configuration><system.diagnostics><switches><a dd name=""MySwitch"" value=""0""/></switches></system.diagnostics></configuration>""3, <?xml version=""1.0""?><configuration><system.diagnostics/><switches>< add name=""MySwitch"" value=""3""/><add name=""SourceSwitch"" value=""Warning""/></switches></configuration>""4, <?xml version=""1.0""?><configuration><system.diagnostics><switches><a

dd name=""MySwitch"" value=""4""><add name=""SourceSwitch"" value=""Warning""></switches></system.diagnostics>< / c o n f i g u r a t i o n > " 1 117"You wanted to create an application that converts an integer t y p e v a l u e into an object-type value and displays the integer-type value and the object-type value to demonstrate boxing. For this, you wrote the following code snippet:static void Main(String[] args){num1 = 100;object obj = num1;num1 = 200; Console.WriteLine(""The value-type value of num1 = {0} "", num1);Console.WriteLine(""The object-type value of obj = {0} "", obj);Console.ReadKey();}However, while executing the application, an error was generated. Analyze the code and provide the solution.""1, static void Main(string[] ){int num1 = 100;object obj = num1;num1 = 200;Console.WriteLine(""The value-type value of num1 = {0} "", num1);Console.WriteLine(""The object-type value of obj = {0} "", obj);Console.ReadKey();}""2, static void Main(string[] args){int num1 = 100;object obj = num1;num1 = 200;Console.WriteLine(""The value-type value of num1 = {0} "", num1);Console.WriteLine(""The object-type value of obj = {0} "", obj);Console.ReadKey();}""3, static void Main(string args){int num1 = 100;object obj = num1;num1 = 200;Console.WriteLine(""The value-type value of num1 = {0} "", num1);Console.WriteLine(""The object-type value of obj = {0} "", obj);Console.ReadKey();}""4, static void Main(string[] arguments){int num1 = 100;object obj = num1;num1 = 200;Console.WriteLine(""The value-type value of num1 = {0} "", num1);Console.WriteLine(""The object-type value of obj = {0} "", obj);Console.ReadKey();}"21 1 8 " Y o u w a n t e d t o create an assembly, CurrencyConverter that c o n v e r t s t h e c urrency entered by a user into US dollars. For this, you wrote the following sequence of steps:1. Create source code file, CurrencyConverter.2. Type the following command at the command prompt:csc CurrencyConverter.cs3. Save the source code file.4. Type CurrencyConverter.exe at the command prompt to execute the file.However, after performing the preceding sequence of steps, you did not get the desired output. Analyze the preceding sequence of steps and provide the solution." " 1 , 1 . C r e a t e s o u r c e

c o d e f i l e , C u r r e n c y C o n v e r t e r . 2. Type the following command at the command prompt:csc CurrencyConverter.cs3. Type CurrencyConverter.exe at the command prompt to execute the file.4. Save the source code file." "2, 1. Create source code file, CurrencyConverter.2. Save the source code file.3. Type the following command at the command prompt:cs CurrencyConverter.cs4. Type CurrencyConverter.exe at the command prompt to execute the file.""3, 1. Create source code file, CurrencyConverter.2. Save the source code file.3. Type the following command at the command prompt:csc CurrencyConverter.exe4. Type CurrencyConverter.cs at the command prompt to execute the file.""4, 1. Create source code file, CurrencyConverter.2. Save the source code file.3. Type the following command at the command prompt:csc CurrencyConverter.cs4. Type CurrencyConverter.exe at the command prompt to execute the file."4

119"You wanted to create an application that d e t e r m i n e s w h e t h e r t h e f i l e , M yfile.txt exists or not at the D: drive of a machine. If the file does not exist, it should be created at the D: drive of a machine and a message should be displayed, ""File Created"", else a message should be displayed, ""File already exists."" For this, you wrote the following code snippet:string fileName = ""Myfile.txt"";if (!File.Exists(@""D:\"" + fileName)){File fi = new File(@""D:\"" + fileName);FileStream fs = fi.Create();fs.Close();Console.Write(""File Created""); }else{Console.Write(""File already exists."");}Console.ReadKey();However, while executing the application, an error was generated. Analyze the code and provide the solution.""1, string fileName = ""Myfile.txt"";if (!File.Exists(@""D:\"" + fileName)){FileInfo fi = new FileInfo(@""D:\"" + fileName);File fs = fi.Create();fs.Close();Console.Write(""File Created""); }else{Console.Write(""File already exists."");}Console.ReadKey();""2, string fileName = ""Myfile.txt"";

if (!File.Exists(@""D:\"" + fileName)){FileInfo fi = new FileInfo();FileStream fs = fi.Create();fs.Close();Console.Write(""File Created""); }else{Console.Write(""File already exists."");}Console.ReadKey();""3, string fileName = ""Myfile.txt"";if (!File.Exists(@""D:\"" + fileName)){FileInfo fi = new FileInfo(@""D:\"" + fileName);FileStream fs = fi.Create();fs.Close();Console.Write(""File Created"");}else{Console.Write(""File already exists."");}Console.ReadKey();""4, string fileName = ""Myfile.txt"";if (!File.Exists(""D:\"" + fileName)){FileInfo fi = new FileInfo(""D:\"" + fileName);FileStream fs = fi.Create();fs.Close();Console.Write(""File Created""); }else{Console.Write(""File already exists."");}Console.ReadKey();"3 1 2 0 " Y o u w a n t e d t o create an application that serializes the company n a m e a n d the employees' name into an XML format and stores in an XML file, Company.xml.In addition, the application should deserialize the company name and the employees' name and display it on the screen. For this, you wrote the following code snippet:Line 1: static void Main(string[] args)Line 2: {Line 3: string fileName = ""D:\\Company.xml"";Line 4: XmlSerializer xs = new XmlSerializer(typeof(company));Line 5: TextWriter tw = new StreamWriter(fileName);Line 6: company c = new company();Line 7: c.CompanyName = ""LargeSouk, Inc."";Line 8: Employee emp1 = new Employee();Line 9: Employee emp2 = new Employee();Line 10: emp1.name = ""Kelly"";Line 11: emp2.name = ""Sam"";Line 12: c.emp = new Employee[2] { emp1, emp2 }; Line 13: xs.Serialize(tw, c);Line 14: tw.Close();Line 15: FileStream fs = new FileStream(fileName, FileMode.Open);Line 16: company cmp = Deserialize(fs);Line 17: Console.WriteLine(cmp.CompanyName);Line 18: foreach(Employee e in cmp.emp)Line 19: {Line 20: Console.WriteLine(""{0}"",e.name);Line 21: }Line 22: Console.WriteLine(""\n Press Enter to exit.............."");Line 23: Console.ReadLine();Line 24: }However, while executing the application, an error was generated. Analyze the cod e a n d

provide the solution.""1, The Line 4 should b e : XmlSerialization xs = new XmlSerialization (typeof(company));""2, The Line 5 should be:T e x t W r i t e r t w = new StreamWriter();""3, The Line 15 should b e : FileStream fs = new FileStream(FileMode.Open);""4, The Line 16 should be:c o m p a n y c m p = (company)xs.Deserialize(fs);"4

Anda mungkin juga menyukai