2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (151-160)

QUESTION 151
You use Microsoft .NET Framework 4 to create a Windows Forms application. You have a dataset as shown in the following exhibit.
image

You plan to add a DataGridView to display the dataset. You need to ensure that the DataGridView meets the following requirements:
– Shows Order Details for the selected order.
– Shows only Order Details for items that have UnitPrice greater than 20.
– Sorts Products by ProductName
Which code segment should you use?

A.    ordersBindingSource.DataSource = productsBindingSource ordersBindingSource.DataMember =
“FK_Order_Details_Products” productsBindingSource.Filter = “UnitPrice > 20” productsBindingSource.
Sort = “ProductName”
B.    productsDataGridView.DataSource = ordersBindingSource productsBindingSource.Filter = “UnitPrice > 20”
productsBindingSource.Sort = “ProductName”
C.    order_DetailsBindingSource.DataSource = ordersBindingSource order_DetailsBindingSource.DataMember
= “FK_Order_Details_Orders” order_DetailsBindingSource.Filter = “UnitPrice > 20” productsBindingSource.
Sort = “ProductName”
D.    order_DetailsDataGridView.DataSource = ordersBindingSource order_DetailsBindingSource.Filter “UnitPrice:>
20″ productsBindingSource.Sort = “ProductName”

Answer: C

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (141-150)

QUESTION 141
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You want to localize the application to use the German locale settings. You need to allow the ResourceManager class to retrieve a neutral German locale version of the text to be displayed in the user interface (UI).
Which file should you add to the project?

A.    Resources.de.xml
B.    Resources.de-DE.xml
C.    Resources.de.resx
D.    Resources.de-DE.resx

Answer: C

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (131-140)

QUESTION 131
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want to add an audio player that plays .wav or .mp3 files when the user clicks a button. You plan to store the name of the file to a variable named SoundFilePath. You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays. What should you do?

A.    Write the following code segment in the button onclick event.
Dim player As New System.Media.SoundPlayer(SoundFilePath) player.Play()
B.    Write the following code segment in the button onclick event.
Dim player As New MediaPlayer()
player.Open(New URI(SoundFilePath), UriKind.Relative) player.Play()
C.    Use the following code segment from the PlaySound()
Win32 API function and call the PlaySound function in the button onclick event.
<sysimport(dll : = “winmm.dll”)>
Public Shared Function PlaySound(SoundFilePath As [String], Module As Long, dwFlags As Long) As Long
End Function
D.    Reference the Microsoft.DirectX Dynamic Link Libraries. Use the following code segment in the button onclick
event.
Dim song As Audio = New Song (SoundFilePath)
song.CurrentPosition B song.Duration
song.Play()

Answer: B

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (121-130)

QUESTION 121
You are developing a Windows Presentation Foundation (WPF) application. You use the following markup segment to add a Button control to the design surface of the MainWindow.xaml file.

image
You add the following code segment to the code-behind file for MainWindow.

image
The application will be deployed in an environment that requires alternate key mappings. You need to remove the CTRL+ C input gesture and replace it with the ALT+ C input gesture.
What should you do?

A.image     
B. image    
C. image    
D. image    

Answer: B

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (111-120)

QUESTION 111
You are developing a Windows Presentation Foundation (WPF) application. You need to ensure that the application includes a container control that supports logical scrolling by default.
Which control should you select?

A.    stackPanel
B.    Canvas
C.    Grid
D.    WrapPanel

Answer: A

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (101-110)

QUESTION 101
You develop a Windows Presentation Foundation (WPF) application. This application is used to output data trends to customer service representatives. You use threading to keep the UI responsive. You have a function named UpdateUI that updates all of the UI components.
You use the following code to update the _Data variable. (Line numbers included for reference only.)

image
You need to update the user interface without knowing if you are on the UI thread.
Which code segment should you insert at line 06?

A.    this.Dispatcher.VerifyAccess();
var function = new Action(UpdateUI);
this. Dispatcher.BecginInvoke{function, null);
B.    if (this. Dispatcher. CheckAccess ();
{
var function = new Action (Updated);
this.Dispatcher.ReginInvoke(function, null);
}
else
{
UpdateUI();
}
C.    this.Dispatcher.VerifyAccess();
UpdateUI() ;
D.    if (this.Dispatcher.CheckAccess() )
UpdateUI ();
}
else
{
var function = new Action(UpdateUI);
this. Dispatcher.ReginInvoice(function, null);
}

Answer: D

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (91-100)

QUESTION 91
You are developing a Windows Presentation Foundation (WPF) application. The movement of a control within the application is animated. You need to ensure that the animated control is continually animated in one direction. What should you specify for the easing function of the animations?

A.    ElasticEase
B.    SineEase
C.    BackEase
D.    BounceEase

Answer: B

Continue reading

2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (81-90)

QUESTION 81
You are developing a Windows Presentation Foundation (WPF) application to display loan types by bank and students by loan type. You add the following markup segment to the MainWindow.xaml file. (Line numbers are included for reference only.)

image

image
You need to ensure that the data appears in hierarchical form in a TreeView control.
What should you do?

A.    At line 09, set the Resource Key to Students.
At line 15, set the Resource Key to Loan List
B.    At line 09, set the Resource Key to BankList.
At line 15, set the Resource Key to Lender.
C.    At line 09, set the Resource Key to LoanList.
At line 15, set the Resource Key to Students.
D At line 09, set the Resource Key to Lender.
At line 15, set the Resource Key to BankList.

Answer: A

Continue reading