You are not logged in.

#1 2012-04-02 06:09:25

Ibraheem
Webmaster
From: Capital
Registered: 2012-03-16
Posts: 23,095
Website

MCSD.NET - 70-320 Exam Interview Questions And Answers

Certifications :: MCSD.NET - 70-320 Exam Job Interview Questions and Answers

MCSD.NET - 70-320 Exam guideline for job interview preparation. Explore list of MCSD.NET - 70-320 Exam frequently asked questions(FAQs) asked in number of MCSD.NET - 70-320 Exam interviews. Post your comments as your suggestions, questions and answers on any MCSD.NET - 70-320 Exam Interview Question or answer. Ask MCSD.NET - 70-320 Exam Question, your question will be answered by our fellow friends.

1 ► 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);
2 ► 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.
3 ► 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.
4 ► 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.
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.
6 ► 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.
7 ► 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).
8 ► 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
9 ► 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.
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(newProds);Dataset products = new Dataset("prodInfo");string myXmlData = Encoding.UTF8.GetString(newProds.ToArrary());SqlDataAdapter adapter = new SqlDataAdapter("LoadSchemaType=XML",myXmlData);adapter.Fill(products)
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.
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.
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).
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.
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.
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.
17 ► 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);
18 ► 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.
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
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();

2012-04-02 06:09:25

Advertisement
Ads By Google

Re: MCSD.NET - 70-320 Exam Interview Questions And Answers



Board footer