| Braindumps of 70-316
Developing Win-based Applications
with Visual C# .NET
Exam Questions, Answers, Braindumps (70-316)
These are Guaranteed Questions for 70-316 exam. I
only used www.exams.ws guide and i was through.
QUESTION: 1
You use Visual Studio .NET to create a Windows-based
application. The application includes a form named
FolksTechForm. FolksTechForm contains 15 controls
that enable users to set basic configuration options
for the application. You design these controls to
dynamically adjust when users resize FolksTechForm.
The controls automatically update their size and position
on the form as the form is resized. The initial size
of the form should be 659 x 700 pixels. is resized
to be smaller than 500 x 600 pixels, the controls
will not be displayed correctly. You must ensure that
users cannot resize ConfigurationForm to be smaller
than 500 x 600 pixels. Which two actions should you
take to configure FolksTechForm? (Each correct answer
presents part of the solution. Choose two)
A Set the MinimumSize property to “500,600”.
B Set the MinimumSize property to “650,700”.
C Set the MinimizeBox property to True.
D Set the MaximumSize property to “500,600”.
E Set the MaximumSize property to “650,700”.
F Set the MaximumBox property to True.
G Set the Size property to “500,600”.
H Set the Size property to “650,700”.
Answer: A, H
QUESTION: 2
You development team used Visual Studio .NET to create
an accounting application, which contains a class
named FolksTechAccounts. This class instantiates several
classes from a COM component that was created by using
Visual Basic 6.0. Each COM component class includes
a custom method named ShutDownObject that must be
called before terminating references to the class.
Software testers report that the COM component appears
to remain in memory after the application terminates.
You must ensure that the ShutDownObject method of
each COM component class is called before FolksTechAccounts
is terminated. What should you do?
A Add code to the Terminate event of FolksTechAccounts
to call the ShutDownObject method of each COM component
class.
B Find each location in your code where a reference
to FolksTechAccounts is set to null or goes out of
scope. Add code after each instance to manually invoke
the Visual Studio .NET garbage collector.
C Add a destructor to FolksTechAccounts. Add code
to the destructor to call the ShutDownObject method
of each COM component class.
D Add the procedure private void Finally() to FolksTechAccounts.
Add code to the procedure to call the ShutDownObject
method of each COM component class.
Answer: C
QUESTION: 3
You use Visual Studio .NET to develop a Windows-based
application. Your application includes a form named
FolksTechInformationForm, which enables users to edit
information stored in a database. All user changes
to this information must be saved in the database.
You need to write code that will prevent FolksTechInformationForm
from closing if any database changes are left unsaved.
What should you do?
A Include this.Activate in the Closing event handler
of FolksTechInformationForm.
B Include this.Activate in the Closed event handler
of FolksTechInformationForm.
C Include this.Activate in the Leave event handler
of FolksTechInformationForm.
D Change a property of the System.ComponentModel.CancelEventArgs
parameter in the Closing event handler of FolksTechInformationForm.
E Change a property of the System.EventArgs parameter
in the Closed event handler of FolksTechInformationForm.
F Change a property of the System.EventArgs parameter
in the Leave event handler of FolksTechInformationForm.
Answer: D
QUESTION: 4
You develop a Windows-based application that enables
users to update customer contact information. Your
application uses a DataSet object to maintain the
customer data while users are reviewing and editing
it. When a user finishes updating the data, your application
uses the DataSet.WriteXml method to create an XML
data file. The tag name of the root element of the
XML data file must be <FolksTechCustomerInfo>.
You need to add code to your application to ensure
that this tag name is set correctly. Which code segment
should you use?
A dsCustomer.Namespace = “FolksTechCustomerInfo”
B dsCustomer = New DataSet(“FolksTechCustomerInfo”)
C dcCustomer.Prefix = “FolksTechCustomerInfo”
D dsCustomer.WriteXml(“FolksTechCustomerInfo”)
Answer: A
QUESTION: 5
You use Visual Studio .NET to develop a Windows-based
application named dvocate Resource Assistant (ARA):
ARA contains a class named Client. The Client lass
is defines by the following code segment:
namespace FolksTech..Buslayer {
public class Client {
public string GetPhone(int ClientID) {
// More code goes here.
}
// Other methods goes here.
}
}
The client class is invoked from ARA by using the
following code segment:
Client client = new Client();
TxtPhone.Text = client.GetPhone(426089);
When you try to build your project, you receive the
following error message: “Type Client’
is not defined”. What are two possible ways
to correct this problem? (Each orrect answer presents
a complete solution. Choose two)
A Fully qualify the Client class with the FolksTech.BusLayer
namespace.
B Fully qualify the Client class with the ARA namespace.
C Add a using statement for the FolksTech.BusLayer
namespace in the ClientForm class.
D Inherit the FolksTech.BusLayer namespace in the
ClientForm class.
Answer: A, C
70-316
|