MCSD.NET - 70-320 Exam Interview Preparation Guide
Refine your MCSD.NET - 70-320 Exam interview skills with our 20 critical questions. These questions will test your expertise and readiness for any MCSD.NET - 70-320 Exam interview scenario. Ideal for candidates of all levels, this collection is a must-have for your study plan. Get the free PDF download to access all 20 questions and excel in your MCSD.NET - 70-320 Exam interview. This comprehensive guide is essential for effective study and confidence building.20 MCSD.NET - 70-320 Exam Questions and Answers:
1 :: Suppose You are developing a Windows-based application that requires the use of a calculation function
named 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 part
of 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);
public static extern int Calculate Value(int x);
2 :: Suppose You have an ASP.NET application named ES WebApp. This application uses a private assembly
named Employee to store and retrieve employee data. Employee is located in the bin directory of
ES WebApp. You develop a new ASP.NET application named ESWebApp2 that also needs to
use Employee. You assign Employee a strong name, set its version to 1.0.0.0, and install it in the
global assembly cache. You then create a publisher policy assembly for version 1.0.0.0 and
install it in the global assembly cache. You compile ESWebApp2 against version 1.0.0.0. You do
not 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.
3 :: You have a .NET Remoting object named Utils. The Utils class is a client-activated .NET
Remoting object. You want to write a client application that creates and uses a Utils object. You
want the client application to hold onto a reference to a Utils object for the duration of its
execution.
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 the
Renewal method to extend the lease.
D. In the client application, create an Implementation of the ILease interface. Implement the
CurrentLeaseTime 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.
Renewal method to extend the lease.
4 :: You create a serviced component named CompanyScheduler. CompanyScheduler is registered
in a library application. The Scheduler methods parse String objects into Date Time objects. You
write a console application named Coverage.exe to test each method in Scheduler. You want
Coverage.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 CompanyScheduler
methods.
B. Create a Region Info object for each culture locale before calling the CompanyScheduler
methods.
C. Set the current threads Current Culture property to each culture locale before calling the
CompanyScheduler methods.
D. Create a Coverage.exe.config file and add a <location> element to the configuration file for
each culture locale.
C. Set the current thread's Current Culture property to each culture locale before calling the
CompanyScheduler methods.
CompanyScheduler methods.
5 :: Suppose You are creating a .NET Remoting object named Payroll. The Payroll class allows remote client
applications to access payroll data for your company. Client applications are developed by using
Windows Forms and Web Forms. You must ensure that remote client applications are securely
authenticated prior to gaining access to Payroll object. You want to accomplish this task by
writing 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 Basic
authentication.
D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows
authentication.
D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows
authentication.
authentication.
6 :: You are creating a .NET Remoting object named Payroll. The Payroll class allows remote client
applications to access payroll data for your company. Client applications are developed by using
Windows Forms and Web Forms. You must ensure that remote client applications are securely
authenticated prior to gaining access to Payroll object. You want to accomplish this task by
writing 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 Basic
authentication.
D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows
authentication.
D. Host the Payroll class in Internet Information Services (IIS) and implement Integrated Windows
authentication.
authentication.
7 :: You create a Windows service that processes XML messages placed in a MSMQ queue. You
discover 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 within
the Visual Studio .NET integrated development environment (IDE).
A. Start the Windows service.
Then attach a debugger to the process.
Then attach a debugger to the process.
8 :: Suppose You are creating an ASP.NET application named CompanyWebApp. To CompanyWebApp, you
add a Web reference to an XML Web service named User Service. User Service consists of a
Web method named RetrieveUserInfo. This Web method takes a userID as input and returns a
DataSet object containing user information. If the userID is not between the values 1 and 1000, a
System Argument Exception is thrown. In CompanyWebApp, you write a try/catch block to
capture any exceptions that are thrown by User Service. You invoke RetrieveUserInfo and pass
1001 as the user ID.
Which type of exception will be caught?
A. System.ApplicationException
B. System.ArgumentException
C. System.Web.Service.Protocols.SoapException
D. System.Web.Service.Protocols.SoapHeaderException
C. System.Web.Service.Protocols.SoapException
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 a
Dataset object that contains every geographical region in the world. RetrieveRegionsListBox calls
a Microsoft SQL Server database to load the Dataset object with region data. You want to
minimize 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.
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 XML
document varies. Each one is located in a MemoryStream object named newProds. You create a
merge procedure that reads data and schema information in a Dataset object and merges the
information into your database. You now need to write code to transfer the XML document and its
schema into a Dataset object.
Which code segment should you use?
A. Dataset products = new Dataset("prodInfo");
XmlTextReader reader = new XmlTextReader(newProds);
XmlValidatingReader validReader = new
XmlValidatingReader(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)
B. Dataset products = new Dataset("prodInfo");
products.ReadXml(newProds);
products.ReadXml(newProds);