MCSD.NET - 70-316 Exam Interview Preparation Guide
Elevate your MCSD.NET - 70-316 Exam interview readiness with our detailed compilation of 15 questions. These questions are specifically selected to challenge and enhance your knowledge in MCSD.NET - 70-316 Exam. Perfect for all proficiency levels, they are key to your interview success. Get the free PDF download to access all 15 questions and excel in your MCSD.NET - 70-316 Exam interview. This comprehensive guide is essential for effective study and confidence building.15 MCSD.NET - 70-316 Exam Questions and Answers:
1 :: Suppose You develop a Windows-based application by using Visual Studio .NET. The application includes
a form named XYZForm and a class named Contact. XYZForm includes a button named
cmdCreateContact. You must ensure that your application creates an instance of Contact when a
user clicks this button. You want to write the most efficient code possible.
Which code segment should you use?
A. Contact contact = new Object();
B. Contact contact = new Contact;
C. Object contact = new Contact;
D. Contact contact = new Object;
B. Contact contact = new Contact;
2 :: You use Visual Studio .NET to create an assembly, called XYZAssembly, that will be used by
other applications, including a standard COM client application.
You must deploy your assembly on the COM application to a client computer. You must ensure
that the COM application can instantiate components within the assembly as COM components.
What should you do?
A. Create a strong name of the assembly by using the Strong Name tool (Sn.exe).
B. Generate a registry file for the assembly by using the Assembly Registration tool
(Regasm.exe)
Register the file on the client computer.
C. Generate a type library for the assembly by using the Type Library Importer (Tlbimp.exe).
Register the file on the client computer.
D. Deploy the assembly to the global assembly cache on the client computer.
Add a reference to the assembly in the COM client application.
B. Generate a registry file for the assembly by using the Assembly Registration tool
(Regasm.exe)
Register the file on the client computer.
(Regasm.exe)
Register the file on the client computer.
3 :: You plan to develop a customer information application CustomEX that uses a Microsoft SQL
Server database. CustomEX will be used frequently by a large number of users. Your application
code must obtain the fastest possible performance when accessing the database and retrieving
large amounts of data. You must accomplish this goal with the minimum amount of code.
How should you design CustomEX?
A. Use classes in the System.Data.OleDb namespace.
B. Use classes in the System.Data.SqlClient namespace.
C. Use remoting to connect to the SQL Server computer.
D. Use interoperability to include legacy COM-based data access components.
B. Use classes in the System.Data.SqlClient namespace.
4 :: Suppose As a developer at XYZ you develop a new sales analysis application that reuses existing data
access components. One of these components returns a DataSet object that contains the data for
all customer orders for the previous year.
You want your application to display orders for individual product numbers. Users will specify the
appropriate product numbers at run time..
What should you do?
A. Use the DataSet.Reset method.
B. Set the RowFilter property of the DataSet object by using a filter expression.
C. Create a DataView object and set the RowFilter property by using a filter expression.
D. Create a DataView object and set the RowStateFilter property by using a filter expression.
C. Create a DataView object and set the RowFilter property by using a filter expression.
5 :: You develop a Windows-based application XYZ. XYZ uses a DataSet object that contains two
DataTable objects. XYZ will display data from two data tables. One table contains customer
information, which must be displayed in a data-bound ListBox control. The other table contains
order information, which must be displayed in a DataGrid control.
You need to modify XYZ to enable the list box functionality.
What should you do?
A. Use the DataSet.Merge method.
B. Define primary keys for the Data Table objects.
C. Create a foreign key constraint on the DataSet object.
D. Add a DataRelation object to the Relations collection of the DataSet object.
D. Add a DataRelation object to the Relations collection of the DataSet object.
6 :: Suppose As a programmer at XYZ inc, you use Visual Studio .NET to create several applications that will
be deployed commercially over the Internet. You must ensure that customers can verify the
authenticity of your software.
Which action or actions should you take? (Choose all that apply.)
A. Sign your portable executables by using Signcode.exe.
B. Generate an X.509 certificate by using Makecert.exe.
C. Purchase an X.509 certificate from a certificate authority.
D. Purchase a Software Publisher Certificate from a certificate authority.
E. Convert your certificate to a Software Publisher Certificate by using Cert2spc.exe.
A. Sign your portable executables by using Signcode.exe.
D. Purchase a Software Publisher Certificate from a certificate authority.
D. Purchase a Software Publisher Certificate from a certificate authority.
7 :: You execute a query on your external Oracle database named XYZSalesDate by using an
OleDbCommand object. The query uses the Average function to return a single value that
represents the average price of products in the inventory table. You want to optimize performance
when you execute this query.
To execute this query from your ADO.NET code, you need to use a method of the
OleDbCommand object. Which method should you use?
A. ExecuteNonQuery
B. ExecuteScalar
C. ToString
D. ExecuteReader
D. ExecuteReader
8 :: Suppose You use Visual Studio .NET to create a Windows-based application that will track camera sales.
The applications main object is named Camera. The Camera class is created by the following
definition:
public class Camera {
}
You write code that sets properties for the Camera class. This code must be executed as soon as
an instance of the Camera class is created. Now you need to create a procedure in which you
can place your code. Which code segment should you use?
A. public Camera()
B. public void Camera()
C. public bool Camera()
D. public New()
E. public Camera New()
F. public Camera Camera()
A. public Camera()
9 :: Suppose You use Visual Studio .NET to create a Windows-based application. The application includes a
form named XYZProcedures (EXP). EXP allows users to enter very lengthy text into a database.
When users click the Print button located on EXP, this text must be printed by the default printer.
You implement the printing functionality by using the native .NET System Class Libraries with all
default settings.
Users report that only the first page of the text is being printed.
How should you correct this problem?
A. In the BeginPrint event, set the HasMorePages property of the PrintEventArgs object to True.
B. In the EndPrint event, set the HasMorePages property of the PrintEventArgs object to True.
C. In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to
True.
D. In the QueryPageSettings event, set the HasMorePages property of the
QueryPageSettingEventArgs object to True.
C. In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to
True.
True.
10 :: You use Visual .NET to develop a Windows-based application whose project name is XYZMgmt.
You create an application configuration file that will be installed on the client computer along with
XYZMgmt.
You must ensure that the settings in the application configuration file are applied when
XYZMgmt is executed.
What should you do?
A. Name the configuration file XYZMgmt.exe.confing and copy it to the WindowsSystem32
folder.
B. Name the configuration file XYZMgmt.config and copy it to the WindowsSystem32 folder.
C. Name the configuration file XYZMgmt.exe.config and copy it to the application folder.
D. Name the configuration file XYZMgmt.config and copy it to the application folder.
E. Name the configuration file XYZMgmt.exe.config and copy it to the global assembly cache.
C. Name the configuration file XYZMgmt.exe.config and copy it to the application folder.