MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk:70-552VB
科目编号:70-552VB
科目名称:MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk
描述:
70-552VB 考试是 Microsoft 公司的 MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk 认证考试官方代号,kaoccna 的 70-552VB 权威考试题库软件是 Microsoft 认证厂商的授权产品,kaoccna 绝对保证顺利通过,否则承诺全额退款!
MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk 认证作为全球IT领域专家 Microsoft 热门认证之一,是许多大中 IT 企业选择人才标准的必备条件。 如果你正在准备 70-552VB 考试,为 Microsoft MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk认证做最后冲刺,又苦于没有绝对权威的考试真题模拟
mcsepass 实行"一次不过全额退款"承诺。如果您购买我们 70-552VB 的考题,只要不是首次通过,凭盖有 PROMETRIC 或 VUE 考试中心钢印的考试成绩单,我们将退还您购买 70-552VB 考题大师的全部费用,绝对保证您的利益不受到任何的损失。
- 科目: 70-552VB
- 原价:
¥ 364.00 - 现价: ¥ 358.00
kaoccna 的优势
70-552VB 试题的质量和价值
mcsepass 模拟测试题具有最高的专业技术含量,只供具有相关专业知识的专家和学者学习和研究之用。
100% 保证您通过 70-552VB 的考试
如果你使用 mcsepass 模拟测试,我们将保证你的第一次参加考试即取得成功,否则,我们将全额退款!
试用后再购买
mcsepass 提供每种产品免费测试。在您决定购买之前,请检测联接,可能存在的问题及试题质量和适用性。
kaoccna认证考试题库网专业提供 Microsoft 70-552VB 最新题库下载,完全覆盖 mcsepass 考试原题。
部分考题展示
Exam : Microsoft 70-552(VB)
Title : UPGRADE:MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Fmwk
1. You are customizing a Windows Form to update a database asynchronously in a method named WorkHandler. You need to ensure that the form displays a message box to the user that indicates the success or failure of the update. Which code segment should you use?
A. Private Sub StartBackgroundProcess() AddHandler bgwExecute.DoWork, AddressOf WorkHandler AddHandler bgwExecute.RunWorkerCompleted, AddressOf CompletedHandler bgwExecute.RunWorkerAsync()End SubPrivate Sub CompletedHandler(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs) Dim result As Boolean = CType(e.Result, Boolean) If result = True Then MessageBox.Show("Update was successful") Else MessageBox.Show("Update failed") End IfEnd SubPrivate Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) '... e.Result = TrueEnd Sub
B. Private Sub StartBackgroundProcess() AddHandler bgwExecute.ProgressChanged, AddressOf CompletedHandler Dim tsBackground As New ThreadStart(AddressOf WorkHandler) bgwExecute.RunWorkerAsync(tsBackground)End Sub Private Sub ProgressHandler(ByVal sender As Object, ByVal e As ProgressChangedEventArgs) Dim result As Boolean = CType(e.UserState, Boolean) If result = True Then MessageBox.Show("Update was successful") Else MessageBox.Show("Update failed") End IfEnd SubPrivate Sub WorkHandler() '... bgwExecute.ReportProgress(100, True)End Sub
C. Private Sub StartBackgroundProcess() AddHandler bgwExecute.RunWorkerCompleted, AddressOf CompletedHandler Dim tsBackground As New ThreadStart(AddressOf WorkHandler) bgwExecute.RunWorkerAsync(tsBackground)End SubPrivate Sub CompletedHandler(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs) Dim result As Boolean = CType(e.Result, Boolean) If result = True Then MessageBox.Show("Update was successful") Else MessageBox.Show("Update failed") End IfEnd SubPrivate Sub WorkHandler() '... bgwExecute.ReportProgress(100, True)End Sub
D. Private Sub StartBackgroundProcess() AddHandler bgwExecute.DoWork, AddressOf WorkHandler AddHandler bgwExecute.RunWorkerCompleted, AddressOf CompletedHandler bgwExecute.RunWorkerAsync()End SubPrivate Sub CompletedHandler(ByVal sender As Object, ByVal e As RunWorkerCompletedEventArgs) Dim result As Boolean = CType(e.Result, Boolean) If result = True Then MessageBox.Show("Update was successful") Else MessageBox.Show("Update failed") End IfEnd SubPrivate Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) '... bgwExecute.ReportProgress(100, True)End Sub
Answer: A
2. You are creating a Windows Form. You add a TableLayoutPanel control named pnlLayout to the form. You set the properties of pnlLayout so that it will resize with the form. You need to create a three-column layout that has fixed left and right columns. The fixed columns must each remain 50 pixels wide when the form is resized. The middle column must fill the remainder of the form width when the form is resized. You add the three columns in the designer. Which code segment should you use to format the columns at run time?
A. pnlLayout.ColumnStyles.Clear()pnlLayout.ColumnStyles.Add(New ColumnStyle(SizeType.Absolute,
50.0F))pnlLayout.ColumnStyles.Add(New ColumnStyle(SizeType.AutoSize,
100.0F))pnlLayout.ColumnStyles.Add(New ColumnStyle(SizeType.Absolute, 50.0F))
B. pnlLayout.ColumnStyles(0).Width = 50.0FpnlLayout.ColumnStyles(0).SizeType =
SizeType.AbsolutepnlLayout.ColumnStyles(2).Width = 50.0FpnlLayout.ColumnStyles(2).SizeType =
SizeType.Absolute
C. pnlLayout.ColumnStyles(0).Width = 50.0FpnlLayout.ColumnStyles(0).SizeType =
SizeType.AbsolutepnlLayout.ColumnStyles(1).Width = 100.0FpnlLayout.ColumnStyles(1).SizeType =
SizeType.AutoSizepnlLayout.ColumnStyles(2).Width = 50.0FpnlLayout.ColumnStyles(2).SizeType =
SizeType.Absolute
D. pnlLayout.ColumnStyles.Clear()pnlLayout.ColumnStyles.Add(New ColumnStyle(SizeType.Absolute,
50.0F))pnlLayout.ColumnStyles.Add(New ColumnStyle(SizeType.Percent,
100.0F))pnlLayout.ColumnStyles.Add(New ColumnStyle(SizeType.Absolute, 50.0F))
Answer: D
3. You are creating an application named App1. You use ClickOnce deployment to distribute App1.exe and multiple assemblies. Some users require only some of the functionality in App1. You need to limit the size of the initial download of the application. You also need to ensure that users can download the assemblies on demand. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
A. Mark each dependency in App1.exe.manifest as optional.
B. Mark each dependency in App1.application as optional.
C. Create an event handler for the AppDomain.ResourceResolve event named ResolveAssembly.
D. Create an event handler for the AppDomain.AssemblyLoad event named ResolveAssembly.
E. In the ResolveAssembly event handler, set the ApplicationDeployment.CurrentDeployment.ActivationUri property to the location of your required assembly.
F. In the ResolveAssembly event handler, call ApplicationDeployment.DownloadFiles and pass in the name of the assembly you want.
Answer: ACF
4. You are customizing a Windows Form to asynchronously update a database. You need to ensure that the form displays a message box to the user that indicates the success or failure of the update. Which three code segments should you use? (Each correct answer presents part of the solution. Choose three.)
A. Private Sub StartBackgroundProcess() AddHandler bgwExecute.DoWork, AddressOf WorkHandler AddHandler bgwExecute.RunWorkerCompleted, AddressOf CompletedHandler bgwExecute.RunWorkerAsync()End Sub
B. Private Sub StartBackgroundProcess() AddHandler bgwExecute.ProgressChanged, AddressOf CompletedHandler Dim tsBackground As New ThreadStart(AddressOf WorkHandler) bgwExecute.RunWorkerAsync(tsBackground)End Sub
C. Private Sub StartBackgroundProcess() AddHandler bgwExecute.RunWorkerCompleted, AddressOf CompletedHandler Dim tsBackground As New ThreadStart(AddressOf WorkHandler) bgwExecute.RunWorkerAsync(tsBackground)End Sub
D. Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) ... e.Result = TrueEnd Sub
E. Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) ... bgwExecute.ReportProgress(100, True)End Sub
F. Sub CompletedHandler(ByVal sender As Object, ByVal e As _ RunWorkerCompletedEventArgs) Dim result As Boolean = CBool(e.Result) If result Then MessageBox.Show("Update was successful") Else MessageBox.Show("Update failed") End IfEnd Sub
G. Sub ProgressHandler(ByVal sender As Object, ByVal e As _ ProgressChangedEventArgs) Dim result As Boolean = CBool(e.UserState) If result Then MessageBox.Show("Update was successful") Else MessageBox.Show("Update failed") End IfEnd Sub
Answer: ADF
5. You are creating a Windows Form that includes a TextBox control named txtDate. When a user right-clicks within the text box, you want the application to display a MonthCalendar control. You need to implement a context menu that provides this functionality. What should you do?
A. Add the following code to the form initialization.Dim cal As New MonthCalendar()Dim mnuContext As New ContextMenuStrip()Dim host As New ToolStripControlHost(mnuContext)txtDate.ContextMenuStrip = mnuContext
B. Add the following code to the form initialization.Dim mnuContext As New ContextMenuStrip()Dim cal As New MonthCalendar()Dim host As
New ToolStripControlHost(cal)mnuContext.Items.Add(host)txtDate.ContextMenuStrip = mnuContext
C. Add the following code to the form initialization.Dim ctr As New ToolStripContainer()Dim cal As New MonthCalendar()ctr.ContentPanel.Controls.Add(cal)txtDate.Controls.Add(ctr)Add a MouseClick event handler for the TextBox control that contains the following code.If e.Button = MouseButtons.Right Then txtDate.Controls(0).Show()End If
D. Add a MouseClick event handler for the TextBox control that contains the following code.If e.Button = MouseButtons.Right Then Dim mnuContext As New ContextMenuStrip() Dim cal As
New MonthCalendar() Dim host As New ToolStripControlHost(cal) mnuContext.Items.Add(host) txtDate.ContextMenuStrip = mnuContextEnd If
Answer: B
6. You are modifying a Windows Forms application. The application consists of a main window with many different controls. All of the controls provide tool tips that use the default ToolTip control settings. One group of controls provides tool tips that show regulatory guidance for the user. Users want the wait time when reading the tool tips and navigating among them to be minimal. You need to ensure that this group of controls provides short delays before the tool tips appear. What should you do?
A. Set the AutoPopDelay property of the ToolTip control to 0 and the InitialDelay property to 100.
B. Set the AutomaticDelay property of the ToolTip control to 0.
C. Set the InitialDelay and ReshowDelay properties of the ToolTip control to 100.
D. Set the AutoPopDelay property of the ToolTip control to 100.
Answer: C
7. You are customizing a Windows Form. You need to add an input control that provides AutoComplete suggestions to the user as the user types. Which two controls can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. TextBox control set to SingleLine mode
B. TextBox control set to MultiLine mode
C. ComboBox control
D. RichTextBox control
E. MaskedTextBox control
Answer: AC
8. You are customizing a Windows Form to update a database asynchronously by using an instance of a BackgroundWorker component named bgwExecute. You start the component by using the following code.
Private Sub StartBackgroundProcess()
AddHandler bgwExecute.DoWork, _
New DoWorkEventHandler(AddressOf WorkHandler)
AddHandler bgwExecute.RunWorkerCompleted, _
New RunWorkerCompletedEventHandler(AddressOf _
CompletedHandler)
AddHandler bgwExecute.ProgressChanged, _
New ProgressChangedEventHandler(AddressOf ProgressChanged)
bgwExecute.RunWorkerAsync()
End Sub
If the UpdateDB method that is called by the BackgroundWorker component returns the value False, you need to display a message box to the user that indicates that the update failed. Which code segment should you use?
A. Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) If Not UpdateDB() Then MessageBox.Show("Update failed") End IfEnd Sub
B. Sub CompletedHandler(ByVal sender As Object, ByVal e As _ RunWorkerCompletedEventArgs) If Not UpdateDB() Then MessageBox.Show("Update failed") End IfEnd Sub
C. Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) e.Result = UpdateDB()End Sub Sub CompletedHandler(ByVal sender As Object, ByVal e As _ RunWorkerCompletedEventArgs) If Not CBool(e.Result) Then MessageBox.Show("Update failed") End IfEnd Sub
D. Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) e.Result = UpdateDB()End Sub Sub CompletedHandler(ByVal sender As Object, ByVal e As _ RunWorkerCompletedEventArgs) If Not CBool(e.Result) Then bgwExecute.ReportProgress(0) End IfEnd Sub Sub ProgressChanged(ByVal sender As Object, ByVal e As _ ProgressChangedEventArgs) If e.ProgressPercentage = 0 Then MessageBox.Show("Update failed") End IfEnd Sub
Answer: C
9. You are creating a Windows Form that contains several ToolStrip controls. You need to add functionality that allows a user to drag any ToolStrip control from one edge of the form to another. What should you do?
A. Configure a ToolStripContainer control to fill the form. Add the ToolStrip controls to the ToolStripContainer control.
B. Configure a Panel control to fill the form. Set the Anchor properties of the ToolStrip controls to Top, Bottom, Left, Right.
C. Add the ToolStrip controls to another ToolStrip control that is hosted by a ToolStripControlHost control.
D. Add the ToolStrip controls to the form. Set the Anchor properties of the ToolStrip controls to Top, Bottom, Left, Right.Set the FormBorderStyle property of the form to SizableToolWindow.
Answer: A
10. You are creating a Windows Forms application. You set the FlatAppearance.MouseOverBackColor property of a button to Blue. When testing the application, you notice that the background color does not change when you move the pointer over the button. You need to set the properties of the button so that the background color for the button changes to blue when the pointer moves over the button. What should you do?
A. Set the FlatStyle property to FlatStyle.Flat.
B. Set the FlatStyle property to FlatStyle.System.
C. Move the set statement for the FlatAppearance.MouseOverBackColor property to the Paint event.
D. Set the UseVisualStyleBackColor property to False.
Answer: A
11. You want to execute an event handler asynchronously from a Windows Form. You need to write code that uses the BackgroundWorker component named bgwExecute to execute the WorkHandler method. Which code segment should you use?
A. Dim work As New EventHandler(AddressOf WorkHandler)bgwExecute.RunWorkerAsync(work)
B. Dim tsBackground As New ThreadStart(AddressOf WorkHandler)bgwExecute.ReportProgress(0, tsBackground)
C. Dim tsBackground As New ThreadStart(AddressOf WorkHandler)bgwExecute.RunWorkerAsync(tsBackground)
D. AddHandler bgwExecute.DoWork, AddressOf WorkHandlerbgwExecute.RunWorkerAsync()
Answer: D
12. You are customizing a Windows Form to use a BackgroundWorker component named bgwExecute. bgwExecute performs a database operation in an event handler named WorkHandler. You need to ensure that users can see the progress of the database operation by viewing a progress bar named pbProgress. You want the progress bar to appear when the database operation is 50 percent complete. Which code segment should you use?
A. Public Sub StartBackground() bgwExecute.WorkerReportsProgress = True AddHandler bgwExecute.ProgressChanged, AddressOf ProgressHandler bgwExecute.RunWorkerAsync()End Sub Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) bgwExecute.ReportProgress(50)End Sub Sub ProgressHandler(ByVal sender As Object, ByVal e As _ ProgressChangedEventArgs) pbProgress.Value = e.ProgressPercentageEnd Sub
B. Public Sub StartBackground() bgwExecute.WorkerReportsProgress = True AddHandler bgwExecute.ProgressChanged, AddressOf ProgressHandler Dim t As New ThreadStart(AddressOf WorkHandler) bgwExecute.RunWorkerAsync(t)End Sub Sub WorkHandler() bgwExecute.ReportProgress(50)End Sub Sub ProgressHandler(ByVal sender As Object, ByVal e As _ ProgressChangedEventArgs) pbProgress.Value = e.ProgressPercentageEnd Sub
C. Public Sub StartBackground() bgwExecute.WorkerReportsProgress = True AddHandler bgwExecute.ProgressChanged, AddressOf ProgressHandler Dim t As New Thread(New ThreadStart(AddressOf WorkHandler)) bgwExecute.RunWorkerAsync(t)End Sub Sub WorkHandler() bgwExecute.ReportProgress(50)End Sub Sub ProgressHandler(ByVal sender As Object, ByVal e As _ ProgressChangedEventArgs) pbProgress.Value = e.ProgressPercentageEnd Sub
D. Public Sub StartBackground() bgwExecute.WorkerReportsProgress = True AddHandler bgwExecute.DoWork, AddressOf WorkHandler AddHandler bgwExecute.ProgressChanged, AddressOf ProgressHandler bgwExecute.RunWorkerAsync()End Sub Sub WorkHandler(ByVal sender As Object, ByVal e As DoWorkEventArgs) bgwExecute.ReportProgress(50)End Sub Sub ProgressHandler(ByVal sender As Object, ByVal e As _ ProgressChangedEventArgs) pbProgress.Value = e.ProgressPercentageEnd Sub
Answer: D
13. You want to execute an event handler asynchronously from a Windows Form. You need to execute a method named WorkHandler by using an instance of the BackgroundWorker component named bgwExecute. Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)
A. Dim work As New EventHandler(AddressOf WorkHandler)
B. Dim work As New ThreadStart(AddressOf WorkHandler)
C. AddHandler bgwExecute.DoWork, AddressOf WorkHandler
D. bgwExecute.RunWorkerAsync()
E. bgwExecute.RunWorkerAsync(work)
Answer: CD
14. You are creating a Windows Forms application. You add an ErrorProvider component named erpErrors and a DateTimePicker control named dtpStartDate to the application. The application also contains other controls. You need to configure the application to display an error notification icon next to dtpStartDate when the user enters a date that is greater than today's date. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. For the Validating event of dtpStartDate, create an event handler named VerifyStartDate.
B. For the Validated event of dtpStartDate, create an event handler named VerifyStartDate.
C. In the Properties Window for dtpStartDate, set the value of Error on erpErrors to Date out of range.
D. In VerifyStartDate, call erpErrors.SetError(dtpStartDate, "Date out of range") if the value of dtpStartDate.Value is greater than today's date.
E. In VerifyStartDate, call erpErrors.SetError(dtpStartDate, null) if the dtpStartDate.Value is greater than today's date.
Answer: AE