MCSD.NET - 70-320 Exam

  Home  Certifications  MCSD.NET - 70-320 Exam


“MCSD.NET - 70-320 Exam Frequently Asked Questions in various MCSD.NET - 70-320 Exam Interviews asked by the interviewer. So learn MCSD.NET - 70-320 Exam with the help of this MCSD.NET - 70-320 Exam Interview questions and answers guide and feel free to comment as your suggestions, questions and answers on any MCSD.NET - 70-320 Exam Interview Question or answer by the comment feature available on the page.”



20 MCSD.NET 70 320 Exam Questions And Answers

1⟩ You are creating an XML Web service named ListBoxService. This service provides content,such as states, countries, and geographical regions, for use in drop-down list boxes.ListBoxService contains a Web method named RetrieveRegionsListBox. This method runs aDataset object that contains every geographical region in the world. RetrieveRegionsListBox callsa Microsoft SQL Server database to load the Dataset object with region data. You want tominimize the amount of time the method takes to return to the caller.What should you do?A. Use a stored procedure to return the datas.B. Store each Dataset object by using the Session object.C. Set the Buffer Response property of the Web Method attribute to false.D. Set the Cache Duration property of the Web Method attribute to an interval greater than zero.

D. Set the Cache Duration property of the Web Method attribute to an interval greater than zero.

 183 views

2⟩ Suppose You are creating an ASP.NET application named CompanyWebApp. To CompanyWebApp, youadd a Web reference to an XML Web service named User Service. User Service consists of aWeb method named RetrieveUserInfo. This Web method takes a userID as input and returns aDataSet object containing user information. If the userID is not between the values 1 and 1000, aSystem Argument Exception is thrown. In CompanyWebApp, you write a try/catch block tocapture any exceptions that are thrown by User Service. You invoke RetrieveUserInfo and pass1001 as the user ID.Which type of exception will be caught?A. System.ApplicationExceptionB. System.ArgumentExceptionC. System.Web.Service.Protocols.SoapExceptionD. System.Web.Service.Protocols.SoapHeaderException

C. System.Web.Service.Protocols.SoapException

 199 views

3⟩ You create a Windows service that processes XML messages placed in a MSMQ queue. Youdiscover that the service is not functioning properly.You need to debug the service to correct the program.What should you do?A. Start the Windows service.Then attach a debugger to the process.B. Attach a debugger to the Windows service.Then start the Windows service.C. Start the Windows service.Then run the .NET Services Installation tool (Regsvcs.exe).D. Place a breakpoint in the Main method of the Windows service. Then run the application withinthe Visual Studio .NET integrated development environment (IDE).

A. Start the Windows service.

Then attach a debugger to the process.

 174 views

4⟩ You are creating a .NET Remoting object named Payroll. The Payroll class allows remote clientapplications to access payroll data for your company. Client applications are developed by usingWindows Forms and Web Forms. You must ensure that remote client applications are securelyauthenticated prior to gaining access to Payroll object. You want to accomplish this task bywriting the minimum amount of code.What should you do?A. Use a Tcp Channel and a Binary Formatter for the Payroll class.B. Use an Http Channel and a Soap Formatter for the Payroll class.C. Host the Payroll class in Internet Information Services (IIS) and implement Basicauthentication.D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windowsauthentication.

D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows

authentication.

 173 views

5⟩ Suppose You are creating a .NET Remoting object named Payroll. The Payroll class allows remote clientapplications to access payroll data for your company. Client applications are developed by usingWindows Forms and Web Forms. You must ensure that remote client applications are securelyauthenticated prior to gaining access to Payroll object. You want to accomplish this task bywriting the minimum amount of code.What should you do?A. Use a Tcp Channel and a Binary Formatter for the Payroll class.B. Use an Http Channel and a Soap Formatter for the Payroll class.C. Host the Payroll class in Internet Information Services (IIS) and implement Basicauthentication.D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windowsauthentication.

D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows

authentication.

 187 views

6⟩ You create a serviced component named CompanyScheduler. CompanyScheduler is registeredin a library application. The Scheduler methods parse String objects into Date Time objects. Youwrite a console application named Coverage.exe to test each method in Scheduler. You wantCoverage.exe to test Scheduler for multiple cultures to verify its globalization support.What should you do?A. Create a Culture Info object for each culture locale before calling the CompanySchedulermethods.B. Create a Region Info object for each culture locale before calling the CompanySchedulermethods.C. Set the current threads Current Culture property to each culture locale before calling theCompanyScheduler methods.D. Create a Coverage.exe.config file and add a <location> element to the configuration file foreach culture locale.

C. Set the current thread's Current Culture property to each culture locale before calling the

CompanyScheduler methods.

 173 views

7⟩ You have a .NET Remoting object named Utils. The Utils class is a client-activated .NETRemoting object. You want to write a client application that creates and uses a Utils object. Youwant the client application to hold onto a reference to a Utils object for the duration of itsexecution.What should you do?A. Construct the Utils object, and hold the object in a member variable.B. Construct the Utils object, and set the LifeTimeService.LeaseTime to 0.C. In the client application, create an Implementation of the ISponsor interface. Implement theRenewal method to extend the lease.D. In the client application, create an Implementation of the ILease interface. Implement theCurrentLeaseTime property to return Int32.MaxValue.

C. In the client application, create an Implementation of the ISponsor interface. Implement the

Renewal method to extend the lease.

 175 views

8⟩ Suppose You have an ASP.NET application named ES WebApp. This application uses a private assemblynamed Employee to store and retrieve employee data. Employee is located in the bin directory ofES WebApp. You develop a new ASP.NET application named ESWebApp2 that also needs touse Employee. You assign Employee a strong name, set its version to 1.0.0.0, and install it in theglobal assembly cache. You then create a publisher policy assembly for version 1.0.0.0 andinstall it in the global assembly cache. You compile ESWebApp2 against version 1.0.0.0. You donot recompile My WebApp. You then run ES WebApp.What is the most likely result?A. A Version Not Found Exception is thrown.B. Employee is loaded from the bin directory.C. Version 1.0.0.0 of Employee is loaded from the global assembly cache.D. Version 1.0.0.0 of Employee is loaded by the publisher policy assembly.

D. Version 1.0.0.0 of Employee is loaded by the publisher policy assembly.

 159 views

9⟩ Suppose You are developing a Windows-based application that requires the use of a calculation functionnamed Calculate Value. This function includes the following signature int Calculate Value(int x) ;Calculate Value is located in an unmanaged DLL named Company Functions.dll, and is not partof a COM interface.You need to be able to use Calculate Value in your application.Which action or actions should you take? (Choose all that apply)A. Use Regsvr32.exe to register CompanyFunctions.dll.B. Use Visual Studio .NET to add a reference to CompanyFunctions.dll.C. To your application, add the following code segment using CompanyFunctions;D. To your application, add the following code segment [DllImport("CompanyFunctions.dll")]public static extern int Calculate Value(int x);

D. To your application, add the following code segment: [DllImport("CompanyFunctions.dll")]

public static extern int Calculate Value(int x);

 184 views

10⟩ Suppose Company Ltd. receives product information from manufactures in the form of an XML documents.The product information is stored in a Microsoft SQL Server database. The format of each XMLdocument varies. Each one is located in a MemoryStream object named newProds. You create amerge procedure that reads data and schema information in a Dataset object and merges theinformation into your database. You now need to write code to transfer the XML document and itsschema into a Dataset object.Which code segment should you use?A. Dataset products = new Dataset("prodInfo");XmlTextReader reader = new XmlTextReader(newProds);XmlValidatingReader validReader = newXmlValidatingReader(reader);while (validReader.Read()) { products.WriteXml(validReader.Value);}B. Dataset products = new Dataset("prodInfo");products.ReadXml(newProds);C. Dataset products = new Dataset("prodInfo");XmlDataDocument document = new XmlDataDocument(products);D. document.DataSet.ReadXmlSchema(ne

B. Dataset products = new Dataset("prodInfo");

products.ReadXml(newProds);

 180 views

11⟩ Suppose You create an XML Web service named Time ESService. Each time ESService is started, itchecks for the existence of an event log named Time ESServiceLog. If TimeServiceLog does notexist, Time ESService creates it. You discover that when Time ESService creates TimeESServiceLog, it throws a System.Security.SecurityException. The exception includes thefollowing message "Requested registry access is not allowed". You need to resolve this problem.What should you do?A. Configure Inetinfo.exe to run as the local administrator user account.B. Create an installer for Time ESService, and create the new event log in the installer code.C. Modify the Web.config file by adding an identity element to impersonate the LOGON userspecified by Internet Information Services (IIS).D. Modify the permissions of theKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog registry key to givefull control to the IUSR_computername user account.

B. Create an installer for Time ESService, and create the new event log in the installer code.

 170 views

12⟩ Suppose You have a .NET Remoting object named ES ProductLoader. The ES ProductLoader class is aserver-activated Singleton object.The ES ProductLoader class loads product data into a Microsoft SQL Server database. The Loadmethod of the ES ProductLoader class is a time-consuming method to call. You are developing aclient application that uses the ES ProductLoader class. You want to ensure that the clientapplication can continue to respond to user input while the Load method of the ES ProductLoaderclass is called.What should you do?A. Use an AsyncDelegate instance to call the Load method.B. Modify the ES ProductLoader class to be derived from IAsyncResult.C. Configure the ES ProductLoader class to be a client-activated .NET Remoting object.D. Configure the client application to have its own remoting channel that matches the serverschannel and formatter.

A. Use an AsyncDelegate instance to call the Load method.

 169 views

13⟩ Suppose You are planning to create a Dataset object named ES DataSet to be used in a bond-tradingapplication. Several developers will need to write code to manipulate myDataSet, and you want toensure that ES DataSet is easy for them to use. You decide to create ES DataSet as a stronglytyped data set. Which two actions should you take? (Each correct answer presents part of thesolution. Choose two)A. Create an XSD schema that defines ES DataSet.B. Create an XDR schema that defines ES DataSet.C. Create a class for ES DataSet that is based on the schema and that inherits from the Datasetclass.D. Create a class for ES DataSet that is based on the schema and that inherits from theXmlSchema class.E. Create a key pair for ES DataSet by using the Strong Name tool (Sn.exe).

A. Create an XSD schema that defines ES DataSet.

C. Create a class for ES DataSet that is based on the schema and that inherits from the Dataset

class.

 178 views

14⟩ Suppose You create a serviced component named Session Dispenser. This computer is in theCompany.Utilities assembly and is registered in a COM+ server application. Session Dispenserhas multiple callers. You discover that there are logic problems in the Create New Sessionmethod. You want to debug any calls to this method. What should you do?A. Open the Session Dispenser solution.Set a breakpoint on the Create New Session method.Start the debugger.B. Attach the debugger to the client process.Set a breakpoint on the SessionDispenser.CreateNewSession method.C. Attach the debugger to the Company.Utilites.exe process.Set a breakpoint on the Create New Session method.D. Attach the debugger to a Dllhost.exe process.Set a breakpoint on the Create New Session method.

D. Attach the debugger to a Dllhost.exe process.

Set a breakpoint on the Create New Session method.

 179 views

15⟩ Suppose You create an XML Web service named Postal Code. Your project source includes a codebehindfile and a file named PostalCode.asmx. During implementation, you use the Debug class torecord debugging log messages, to verify values, and to report debugging failures. You want todeploy Postal Code to a production computer. You do not want any of the debugging code toexecute on the production computer. What should you do?A. Set the projects active configuration to Release and rebuild the DLL.B. Modify the trace element of the Web.config file by setting the enabled attribute to "false".C. Modify the compilation element of the Web.config file by setting the debug attribute to "false".D. Add code to the constructor of the Postal Code class to set the Auto Flash property of theDebug class to false.E. Add code to the constructor of the Postal Code class to call the Clear method of theDebug.Listeners property.

A. Set the project's active configuration to Release and rebuild the DLL.

 196 views

16⟩ Suppose You create a .NET Remoting object named Patient info that exposes medical patient information.Because of the confidential nature of the information, you must ensure that the data remainssecure. You want client applications to connect to Patient info over a secure communicationchannel. You want to accomplish this task by writing the minimum amount of code.What should you do?A. Create your own host application and use a Tcp Channel and Binary Formatter.B. Create your own host application and use an Http Channel and a Soap Formatter.C. Install Patient info in an Internet Information Services (IIS) virtual directory.Configure Patient info to use a Tcp Channel and a Binary Formatter.Configure IIS to use SSL.D. Install Patient info in an Internet Information Services (IIS) virtual directory.Configure Patient info to use an Http Channel and a Soap Formatter.Configure IIS to use SSL.

D. Install Patient info in an Internet Information Services (IIS) virtual directory.

Configure Patient info to use an Http Channel and a Soap Formatter.

Configure IIS to use SSL.

 178 views

17⟩ Suppose You are developing an application named ExamSApp by using Visual C# .NET and Visual Basic.NET. The application will use functions form a DLL written in unmanaged code. One functionrequires the calling application to allocate unmanaged memory, fill it with data, and pass theaddress of the memory to the function. On returning from the function, the calling application mustdeallocate the unmanaged memory.You need to decide how your application will handle unmanaged memory.What should you do?A. Use a byte array.B. Use the methods of the Marshal class.C. Use the methods of the MemoryStream class.D. Derive a new class from the Stream class, and override the allocation methods.

B. Use the methods of the Marshal class.

 172 views

18⟩ You have a DataSet object named loanCustomersDataSet that contains customers serviced bythe loan department of ExamSlink Inc. You receive a second DataSet object namedassetCustomersDataSet that contains customers serviced by the asset management departmentof your company. Both objects have the same structure. You want to mergeassetCustomersDataSet into loanCustomersDataSet and preserve the original values inloanCustomersDataSet.Which code segment should you use?A. loanCustomersDataSet.Merge(assetCustomersDataSet);B. loanCustomersDataSet.Merge(assetCustomersDataSet, true);C. assetCustomersDataSet.Merge(loanCustomersDataSet);D. assetCustomersDataSet.Merge(loanCustomersDataSet, true);

B. loanCustomersDataSet.Merge(assetCustomersDataSet, true);

 180 views

19⟩ Suppose You create three Windows services named ES1, ES2, and ES3. You want to install all threeservices on a computer named CompanyA by using the Installer tool (Installutil.exe).On the command line of CompanyA, you enter and run the following command Install util ES1ES2 ES3During the installation process, ES3 throws an installation error. The installation processcompletes.How many of the three services are now installed on CompanyA?A. NoneB. OneC. TwoD. Three

A. None

 198 views

20⟩ Suppose You have a Dataset object named ES DataSet that is populated with data from a Microsoft SQLServer database. This object contains insertions, deletions, and updates to the data. You want toapply the data changes in ES DataSet to the database. You decide to use the Sulligent dataprovider. You need to create a data object that you will use to update the database. Which codesegment should you use?A. SqlDataReader myDataReader;B. SqlDataAdapter mySqlDataAdapter = new sqlDataAdapter();C. DataObject myDataObject = new DataObject();D. SqlParameter myParameter = new SqlParameter();

B. SqlDataAdapter mySqlDataAdapter = new sqlDataAdapter();

 200 views