70-540  Exam

Exam # of questions Description  Update
70-540 134 Microsoft Windows Mobile Application Development... 02/15/2011
[Practice Test]    [Download Study Guide(PDF)]   [Update Exam]

70-540 - Exam Information
  • Description: Microsoft Windows Mobile Application Development
  • Passing Score: 0%
  • Practice Test - Number of questions: 134 questions
  • Simulation Test - Number of questions: 134 questions
  • Simulation Test Duration: 120 minutes
  • Has explanations: No

Question of the day

You are creating a Microsoft Windows Mobilebased application. The application contains a Windows Form that has a text box control named TxtSalary. The application also contains a class named Employee that has a property named Salary. You create an instance of the Employee class named emp in the Windows Form. You need to write the code segment that binds TxtSalary to emp. You also need to ensure that the code segment displays the salary of an employee as a currency value prefixed by the currency symbol. Which code segment should you use?

Answer(s)

  1. Dim bind As Binding = New Binding("Text", emp, "Salary")bind.FormattingEnabled = Truebind.FormatString = "C"TxtSalary.DataBindings.Add(bind)
  2. Dim bind As Binding = New Binding("Text", emp, "Salary")bind.FormattingEnabled = Truebind.FormatInfo = New NumberFormatInfo()TxtSalary.DataBindings.Add(bind)
  3. Dim bind As Binding = New Binding("Salary", emp, "Currency")bind.FormattingEnabled = Truebind.FormatInfo = New NumberFormatInfo()TxtSalary.DataBindings.Add(bind)
  4. Dim bind As Binding = New Binding("Salary", emp, "C")bind.FormattingEnabled = TrueTxtSalary.DataBindings.Add(bind)
Correct Answer

Dim bind As Binding = New Binding("Text", emp, "Salary")bind.FormattingEnabled = Truebind.FormatString = "C"TxtSalary.DataBindings.Add(bind)