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

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.

Answer:

C. In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to
True.

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

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