70-505CSharp Exam

TS: Microsoft .NET Framework 3.5, Windows Forms Application Development

  • Exam Number/Code : 70-505CSharp
  • Exam Name : TS: Microsoft .NET Framework 3.5, Windows Forms Application Development
  • Questions and Answers : 40 Q&As
  • Update Time: 2011-09-21
  • Price: $ 119.00 $ 69.00

Free 70-505CSharp Demo Download

Test4pass offers free demo for TS 70-505CSharp exam (TS: Microsoft .NET Framework 3.5, Windows Forms Application Development). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.


 

Exam Description

It is well known that 70-505CSharp exam test is the hot exam of Microsoft certification. Test4pass offer you all the Q&A of the 70-505CSharp real test . It is the examination of the perfect combination and it will help you pass 70-505CSharp exam at the first time!

Why choose Test4pass 70-505CSharp braindumps

Quality and Value for the 70-505CSharp Exam
100% Guarantee to Pass Your 70-505CSharp Exam
Downloadable, Interactive 70-505CSharp Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.

Microsoft TS 70-505CSharp exam braindumps questions and answers


1. You are creating a Windows Forms application by using the .NET Framework 3.5.
The application requires a form to display a clock.
You need to create a circular form to display the clock.
Which code segment should you use?
A. this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;
System.Drawing.Drawing2D.GraphicsPath path = new
System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(0, 0, this.Width, this.Height);
Region reg = new Region();
this.Region = reg;
B. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
System.Drawing.Drawing2D.GraphicsPath path = new
System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(0, 0, this.Width, this.Height);
Region reg = new Region(path);
this.Region = reg;
C. this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;
System.Drawing.Drawing2D.GraphicsPath path = new
System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(0, 0, this.Width, this.Height);
Region reg = new Region(path);
this.Region = reg;
D. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
System.Drawing.Drawing2D.GraphicsPath path = new
System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(0, 0, this.Width, this.Height);
Region reg = new Region();
this.Region = reg;
Answer: C
2. You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in your application. You add a SplitContainer control named spcFrame to the form. The SplitContainer control has two SplitterPanel controls named Panel1 and Panel2.
You are configuring the SplitContainer control to define the layout of the form.
You need to ensure that the following requirements are met:
The initial distance from the left edge of the spcFrame splitter is set to 200 pixels.
The size of the Panel2 SplitterPanel remains unchanged when the form is resized.
Which code segment should you use?
A. spcFrame.Panel1MinSize = 200;
spcFrame.FixedPanel = FixedPanel.Panel1;
B. spcFrame.IsSplitterFixed = true;
spcFrame.SplitterWidth = 200;
C. spcFrame.SplitterDistance = 200;
spcFrame.FixedPanel = FixedPanel.Panel2;
D. spcFrame.Panel2MinSize = 0;
spcFrame.SplitterIncrement = 200;
Answer: C
3. You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in the application. You add a ContextMenuStrip control named ctxMenu to the form. You have a user-defined class named CustomControl.
You write the following code segment in the application. (Line numbers are included for reference only.)
01 CustomControl myControl = new CustomControl();
02
You need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the ctxMenu control.
Which code segment should you add at line 02?
A. ToolStripControlHost host = new ToolStripControlHost(myControl);
ctxMenu.Items.Add(host);
B. ToolStripPanel panel = new ToolStripPanel();
panel.Controls.Add(myControl);
ctxMenu.Controls.Add(panel);
C. ToolStripContentPanel panel = new ToolStripContentPanel();
panel.Controls.Add(myControl);
ctxMenu.Controls.Add(panel);
D. ToolStripMenuItem menuItem = new ToolStripMenuItem();
ToolStripControlHost host = new ToolStripControlHost(myControl);
menuItem.DropDownItems.Add(host);
ctxMenu.Items.Add(menuItem);
Answer: A
4. You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in your application. You add a PrintDocument control named pntDoc to the form.
To support the print functionality, you write the following code segment in the application. (Line numbers are included for reference only.)
01 pntDoc.BeginPrint +=
new PrintEventHandler(PrintDoc_BeginPrint);
02 ...
03 bool canPrint = CheckPrintAccessControl();
04 if (!canPrint) {
05
06 }
07
You need to ensure that the following requirements are met:
When the user has no print access, font and file stream initializations are not executed and the print operation is cancelled.
Print operations are logged whether or not the user has print access.
What should you do?
A. Add the following code segment at line 05.
pntDoc.BeginPrint -= new PrintEventHandler(PrintDoc_BeginPrint);
pntDoc.BeginPrint +=
new PrintEventHandler((obj, args) => args.Cancel = true);
Add the following code segment at line 07.
pntDoc.BeginPrint +=
new PrintEventHandler((obj1, args1) => LogPrintOperation());
B. Add the following code segment at line 05.
pntDoc.BeginPrint +=
new PrintEventHandler(delegate(object obj, PrintEventArgs args){});
Add the following code segment at line 07.
pntDoc.BeginPrint -= new PrintEventHandler(PrintDoc_BeginPrint);
pntDoc.BeginPrint +=
new PrintEventHandler((obj1, args1) => LogPrintOperation());
C. Add the following code segment at line 05.
pntDoc.BeginPrint -= new PrintEventHandler(PrintDoc_BeginPrint);
pntDoc.BeginPrint -=
new PrintEventHandler(delegate(object obj, PrintEventArgs args){});
Add the following code segment at line 07.
pntDoc.BeginPrint -=
new PrintEventHandler((obj1, args1) => LogPrintOperation());
D. Add the following code segment at line 05.
pntDoc.BeginPrint -=
new PrintEventHandler((obj, args) => args.Cancel = true);
Add the following code segment at line 07.
pntDoc.BeginPrint += new PrintEventHandler(PrintDoc_BeginPrint);
pntDoc.BeginPrint -=
new PrintEventHandler((obj1, args1) => LogPrintOperation());
Answer: A
5. You are creating a Windows Forms application by using the .NET Framework 3.5.
You plan to modify a list of orders within a DataGridView control in the application.
You need to ensure that a value is required in the first column of the grid control.
Which code segment should you use?
A. private void dataGridOrders_CellValidated(
object sender, DataGridViewCellEventArgs e) {
if (e.ColumnIndex == 0) {
var cellValue = dataGridOrders[
e.ColumnIndex, e.RowIndex].Value;
if (cellValue == null ||
string.IsNullOrEmpty(cellValue.ToString()))
{
dataGridOrders.EndEdit();
}
}
}
B. private void dataGridOrders_Validated(
object sender, EventArgs e) {
if (dataGridOrders.CurrentCell.ColumnIndex == 0) {
var cellValue = dataGridOrders.Text;
if (cellValue == null ||
string.IsNullOrEmpty(cellValue.ToString()))
{
dataGridOrders.EndEdit();
}
}
}
C. private void dataGridOrders_Validating(
object sender, CancelEventArgs e) {
if (dataGridOrders.CurrentCell.ColumnIndex == 0) {
var cellValue = dataGridOrders.Text;
if (cellValue == null ||
string.IsNullOrEmpty(cellValue.ToString()))
{
e.Cancel = true;
}
}
}
D. private void dataGridOrders_CellValidating(
object sender, DataGridViewCellValidatingEventArgs e) {
if (e.ColumnIndex == 0) {
if (e.FormattedValue == null ||
string.IsNullOrEmpty(e.FormattedValue.ToString()))
{
e.Cancel = true;
}
}
}
Answer: D
6. You are creating a Windows Forms application by using the .NET Framework 3.5.
You write the following code segment to bind a list of categories to a drop-down list. (Line numbers are included for reference only.)
01 OleDbConnection cnnNorthwind =
new OleDbConnection(connectionString);
02 OleDbCommand cmdCategory = new OleDbCommand(
"SELECT CategoryID, CategoryName FROM Categories ORDER BY
CategoryName", cnnNorthwind);
03 OleDbDataAdapter daCategory = new
OleDbDataAdapter(cmdCategory);
04 DataSet dsCategory = new DataSet();
05 daCategory.Fill(dsCategory);
06
You need to ensure that the drop-down list meets the following requirements:
Displays all category names.
Uses the category ID as the selected item value.
Which code segment should you add at line 06?
A. ddlCategory.DataSource = dsCategory;
ddlCategory.DisplayMember = "CategoryName";
ddlCategory.ValueMember = "CategoryID";
B. ddlCategory.DataSource = dsCategory.Tables[0];
ddlCategory.DisplayMember = "CategoryName";
ddlCategory.ValueMember = "CategoryID";
C. ddlCategory.DataBindings.Add("DisplayMember",
dsCategory, "CategoryName");
ddlCategory.DataBindings.Add("ValueMember",
dsCategory, "CategoryID");
D. ddlCategory.DataBindings.Add("DisplayMember",
dsCategory.Tables[0], "CategoryName");
ddlCategory.DataBindings.Add("ValueMember",
dsCategory.Tables[0], "CategoryID");
Answer: B
7. You are creating a Windows Forms application by using the .NET Framework 3.5.
You write a code segment to connect to a Microsoft Access database and populate a DataSet.
You need to ensure that the application meets the following requirements:
It displays all database exceptions.
It logs all other exceptions by using the LogExceptionToFile.
Which code segment should you use?
A. try
{
categoryDataAdapter.Fill(dsCategory);
}
catch (SqlException ex)
{
MessageBox.Show(ex.Message, "Exception");
LogExceptionToFile(ex.Message);
}
B. try
{
categoryDataAdapter.Fill(dsCategory);
}
catch (SqlException ex)
{
MessageBox.Show(ex.Message, "Exception");
}
catch (Exception ex)
{
LogExceptionToFile(ex.Message);
}
C. try
{
categoryDataAdapter.Fill(dsCategory);
}
catch (OleDbException ex)
{
MessageBox.Show(ex.Message, "Exception");
}
catch (Exception ex)
{
LogExceptionToFile(ex.Message);
}
D. try
{
categoryDataAdapter.Fill(dsCategory);
}
catch (OleDbException ex)
{
MessageBox.Show(ex.Message, "Exception");
LogExceptionToFile(ex.Message);
}
Answer: C
8. You are creating a Windows Forms application by using the .NET Framework 3.5.
You need to populate a list box control along with category names by using a DataReader control.
Which code segment should you use?
A. OleDbDataReader reader;
OleDbConnection cnnNorthwind = new OleDbConnection(
connectionString);
cnnNorthwind.Open();
OleDbCommand cmdCategory = new OleDbCommand(
"SELECT * FROM Categories", cnnNorthwind);
reader = cmdCategory.ExecuteReader();
while (reader.Read()) {
lbCategories.Items.Add(reader["CategoryName"]);
}
cnnNorthwind.close();
B. OleDbDataReader reader;
OleDbConnection cnnNorthwind = new OleDbConnection(
connectionString);
cnnNorthwind.Open();
OleDbCommand cmdCategory = new OleDbCommand(
"SELECT * FROM Orders", cnnNorthwind);
reader = cmdCategory.ExecuteReader();
while (reader.NextResult()) {
lbCategories.Items.Add(reader["CategoryName"]);
}
cnnNorthwind.close();
C. OleDbDataReader reader;
OleDbConnection cnnNorthwind = new OleDbConnection(
connectionString);
cnnNorthwind.Open();
OleDbCommand cmdCategory = new OleDbCommand(
"SELECT * FROM Orders", cnnNorthwind);
reader = cmdCategory.ExecuteReader();
cnnNorthwind.Close();
while (reader.Read()) {
lbCategories.Items.Add(reader["CategoryName"]);
}
cnnNorthwind.close();
D. OleDbDataReader reader;
using (OleDbConnection cnnNorthwind = new OleDbConnection(
connectionString)) {
cnnNorthwind.Open();
OleDbCommand cmdCategory = new OleDbCommand(
"SELECT * FROM Orders", cnnNorthwind);
reader = cmdCategory.ExecuteReader();
}
while (reader.Read()) {
lbCategories.Items.Add(reader["CategoryName"]);
}
cnnNorthwind.close();
Answer: A
Click Online chat to talk with us , get more informations about Microsoft TS 70-505CSharp practice exam study guides questions and answers

Test4pass 70-505CSharp Exam Features

Quality and Value for the 70-505CSharp Exam

Test4pass Practice Exams for Microsoft 70-505CSharp are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.

100% Guarantee to Pass Your 70-505CSharp Exam

If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the TS 70-505CSharp exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.

Microsoft 70-505CSharp Downloadable, Printable Exams (in PDF format)

Our Exam 70-505CSharp Preparation Material provides you everything you will need to take your 70-505CSharp Exam. The 70-505CSharp Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.

70-505CSharp Downloadable, Interactive Testing engines

We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our Microsoft 70-505CSharp Exam will provide you with free 70-505CSharp dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 70-505CSharp Exam:100% Guarantee to Pass Your TS exam and get your TS Certification.

Test4pass 70-505CSharp exam
Test4pass 70-505CSharp pdf exam
Test4pass 70-505CSharp braindumps
Test4pass 70-505CSharp study guides
Test4pass 70-505CSharp trainning materials
Test4pass 70-505CSharp simulations
Test4pass 70-505CSharp testing engine
Test4pass 70-505CSharp vce
Test4pass 70-505CSharp torrent
Test4pass 70-505CSharp dumps
free download 70-505CSharp
Test4pass 70-505CSharp practice exam
Test4pass 70-505CSharp preparation files
Test4pass 70-505CSharp questions
Test4pass 70-505CSharp answers

http://www.test4pass.com/70-505CSharp-exam.html The safer.easier way to get TS Certification .


Guarantee | Buying Process | F.A.Q. | Payment | Refundment Term | Semples | Testing Engine | privacy | Contact | Sitemap 1 2 3 4

Copyright©2006-2009 sale test4pass Limited. All Rights Reserved

sale test4pass materials do not contain actual questions and answers from Microsoft's Cisco's Certification Exams.