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

Download MCSD.NET - 70-320 Exam Interview Questions and Answers PDF

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:

MCSD.NET - 70-320 Exam Job Interview Questions Table of Contents:

MCSD.NET - 70-320 Exam Job Interview Questions and Answers
MCSD.NET - 70-320 Exam Job Interview 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);
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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.
Read More

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
Read More

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.
Read More

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);
Read More

11 :: Suppose You create an XML Web service named Time ESService. Each time ESService is started, it
checks for the existence of an event log named Time ESServiceLog. If TimeServiceLog does not
exist, Time ESService creates it. You discover that when Time ESService creates Time
ESServiceLog, it throws a System.Security.SecurityException. The exception includes the
following 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 user
specified by Internet Information Services (IIS).
D. Modify the permissions of the
KEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog registry key to give
full control to the IUSR_computername user account.

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

12 :: Suppose You have a .NET Remoting object named ES ProductLoader. The ES ProductLoader class is a
server-activated Singleton object.
The ES ProductLoader class loads product data into a Microsoft SQL Server database. The Load
method of the ES ProductLoader class is a time-consuming method to call. You are developing a
client application that uses the ES ProductLoader class. You want to ensure that the client
application can continue to respond to user input while the Load method of the ES ProductLoader
class 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 servers
channel and formatter.

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

13 :: Suppose You are planning to create a Dataset object named ES DataSet to be used in a bond-trading
application. Several developers will need to write code to manipulate myDataSet, and you want to
ensure that ES DataSet is easy for them to use. You decide to create ES DataSet as a strongly
typed data set. Which two actions should you take? (Each correct answer presents part of the
solution. 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 Dataset
class.
D. Create a class for ES DataSet that is based on the schema and that inherits from the
XmlSchema 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.
Read More

14 :: Suppose You create a serviced component named Session Dispenser. This computer is in the
Company.Utilities assembly and is registered in a COM+ server application. Session Dispenser
has multiple callers. You discover that there are logic problems in the Create New Session
method. 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.
Read More

15 :: Suppose You create an XML Web service named Postal Code. Your project source includes a codebehind
file and a file named PostalCode.asmx. During implementation, you use the Debug class to
record debugging log messages, to verify values, and to report debugging failures. You want to
deploy Postal Code to a production computer. You do not want any of the debugging code to
execute 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 the
Debug class to false.
E. Add code to the constructor of the Postal Code class to call the Clear method of the
Debug.Listeners property.

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

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 remains
secure. You want client applications to connect to Patient info over a secure communication
channel. 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.
Read More

17 :: You have a DataSet object named loanCustomersDataSet that contains customers serviced by
the loan department of ExamSlink Inc. You receive a second DataSet object named
assetCustomersDataSet that contains customers serviced by the asset management department
of your company. Both objects have the same structure. You want to merge
assetCustomersDataSet into loanCustomersDataSet and preserve the original values in
loanCustomersDataSet.
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);
Read More

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 function
requires the calling application to allocate unmanaged memory, fill it with data, and pass the
address of the memory to the function. On returning from the function, the calling application must
deallocate 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.
Read More

19 :: Suppose You create three Windows services named ES1, ES2, and ES3. You want to install all three
services 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 ES1
ES2 ES3
During the installation process, ES3 throws an installation error. The installation process
completes.
How many of the three services are now installed on CompanyA?
A. None
B. One
C. Two
D. Three

A. None
Read More

20 :: Suppose You have a Dataset object named ES DataSet that is populated with data from a Microsoft SQL
Server database. This object contains insertions, deletions, and updates to the data. You want to
apply the data changes in ES DataSet to the database. You decide to use the Sulligent data
provider. You need to create a data object that you will use to update the database. Which code
segment 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();
Read More