googlebot
Buy Differin Gel Online
ADVERTISEMENT

Learn About the Visual Basic Version of Microsoft’s Exam 70-568

  By Certification Magazine —

1 | 2 | 3 |

These practice test questions from MeasureUp are based on the Visual Basic (VB) version of Microsoft’s exam 70-568: Upgrade: Transition your MCPD Application Developer Skills to MCPD Enterprise Application Developer 3.5, Part 1 .

The audience for this exam includes individuals who have previously attained certification as MCPD Enterprise Application Developers on .NET Framework 2.0. Experience using Visual Studio 2008 and .NET Framework 3.5 and in developing ASP.NET applications and Windows Forms applications will help you prepare for this exam.

Candidates who pass exam 70-568 earn credit toward the MCPD : Enterprise Application Development 3.5 certification.

MeasureUp offers practice tests for both the C# version and the VB  version of exam 70-568.


Objective: Enhancing Usability.
SubObjective: Implement globalization and localization for a Windows Forms application.

Single answer, multiple choice

You are developing a Microsoft Windows Forms application that contains localized resources for the Arabic language.

You need to display all currencies in the format used by Egypt.

Which code segment should you use?

A.    Thread.CurrentThread.CurrentCulture = New CultureInfo("ar-EG")
B.    Thread.CurrentThread.CurrentUICulture = New CultureInfo("ar-EG")
C.    Thread.CurrentThread.CurrentUICulture = New CultureInfo("ar")
D.    Thread.CurrentThread.CurrentCulture = New CultureInfo("ar")

Answer:
A

Tutorial:
You should set the CurrentCulture property of the current Thread instance to a CultureInfo instance that represents the ar-EG culture. The CurrentCulture property specifies the culture to use for formatting numbers, currencies, dates and times. A culture consists of both a language and a region. This means the culture ar-EG consists of the Arabic language in Egypt. Although a language can span multiple regions, each region might use a different format for currencies, numbers, dates and times.

You should not set the CurrentUICulture property. This property identifies the culture to be used by a resource manager to load localized resources.

You should not specify the value ar to the constructor of CultureInfo. You must specify a specific culture because different regions use different formats for numbers, currencies, dates and times. The ar value represents a neutral culture for the Arabic language.

References:
How to: Set the Culture and UI Culture for Windows Forms Globalization
MSDN
http://msdn.microsoft.com/en-us/library/b28bx3bh.aspx


Objective: Deploying Windows Forms Controls.
SubObjective: Create a composite Windows Forms control.

Single answer, multiple choice

You are developing a custom user control that provides wizard-like functionality. The class that represents the control is named Wizard. It exists in the Framework.Controls namespace. You create a bitmap that will be used to represent the Wizard control on the Toolbox. You store the bitmap as an embedded resource in a file named Wizard.bmp in the Resources directory of the project.

You need to apply the ToolboxBitmap attribute to the class.

Which code segment should you use?

A. <ToolboxBitmap(GetType(Wizard), "Resources.Wizard.bmp")> _
B. <ToolboxBitmap(GetType(Wizard))> _
C. <ToolboxBitmap("Resources.Wizard.bmp")> _
D. <ToolboxBitmap("Wizard")> _


Answer:
A

Tutorial:
You should apply the two-parameter overload of the ToolboxBitmap attribute to the class. This overload specifies a fully-qualified name of a bitmap resource to use. The first parameter is a Type instance whose assembly contains the bitmap. Because the bitmap is part of the same project as the Wizard class, by specifying the Wizard type you indicate the bitmap should be loaded from the same assembly. The second parameter identifies the resource name, which might include part of the resource namespace. A resource namespace is equal to an assembly's default namespace plus the subfolder names that contain the resource delimited by periods plus the resource name. This means the second parameter must identify subfolder names delimited by periods plus the resource name. In this scenario, you should specify Resources.Wizard.bmp.

You should not apply the single-parameter overload of the ToolboxBitmap attribute that specifies a Type instance. This overload requires the resource namespace of the bitmap be the same as the namespace of the class to which the attribute is applied. However, in this scenario, the resource namespace of the bitmap is not the same as that of the Wizard class.

You should not apply the single-parameter overload of the ToolboxBitmap attribute that specifies a String instance. The String parameter overload specifies the physical file location of the bitmap.

References:
How to: Provide a Toolbox Bitmap for a Control
MSDN
http://msdn.microsoft.com/en-us/library/4wk1wc0a.aspx


Objective: Programming Web Applications.
SubObjective: Work with ASP.NET Intrinsic Objects.

Multiple answers, multiple choice

You create a Web application by using Microsoft ASP.NET 3.5. The following HTML element exists on an ASP.NET page:

 <input type="hidden" name="HiddenField"/>

You need to retrieve the value of the element in the code-behind class.

Which code segment should you use? (Each correct answer presents a complete solution. Choose two.)

A.    Dim value = Application("HiddenField")
B.    Dim value = Request.Form("HiddenField")
C.    Dim value = Context("HiddenField")
D.    Dim value = (CType(Page.FindControl("HiddenField"), HtmlInputHidden)).Value
E.    Dim value = Request.Params("HiddenField")

Answers:
B, E

Tutorial:
You should access the HiddenField item from the Request.Form collection. This collection contains all HTML form fields that are rendered by the page. This includes HTML Input elements.

Alternatively, you can access the HiddenField item of the Request.Params collection. This collection contains HTML form fields, query string paramers, HTTP server variables and cookies.

You should not access items of the current HttpApplicationState instance. An HttpApplicationState instance is created for each instance of an ASP.NET application. However, HTML form fields are not automatically stored in HttpContext instances.

You should not access items of the current HttpContext instance. An HttpContext instance is created during each HTTP request to an application. However, HTML form fields are not automatically stored in HttpContext instances.

1 | 2 | 3 |
Viewed 9782 times.
SPONSORED LINKS
gps systems used