MCSD.NET - 70-316 Exam Question:
Download Questions PDF

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()

Answer:

A. public Camera()

Download MCSD.NET - 70-316 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
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
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.