IBM Certification Exams

Real Exams Questions for IBM Certification Exams

Skip to: Content | Sidebar | Footer

Testking 70-528 Microsoft exam

17 October, 2008 (02:32) | Microsoft Certification

Chapter 5: Lesson Review Answers
Lesson 1

1. What file extension do you use to create a user control? (Choose one.) 70-528
A. .ausr extension
B. .aucx extension
C. .asuc extension
D. .ascx extension
1. Correct Answer: D
A. Incorrect: Not a valid extension.
B. Incorrect: Not a valid extension.
C. Incorrect: Not a valid extension.
D. Correct: The .ascx extension is the proper extension for a user control.

2. You want to create a user control to display data, but you are concerned that you don’t know how the Web page designers want to format the data. Also, some of the page designers mentioned that the format of the data might be different, depending on the Web page. How can you best create a user control to solve this problem? (Choose one.) 70-526
A. Create a separate user control for each Web page and get each Web page designer to tell you the format to implement in each user control.
B. Create a separate user control for each variation of the format once the Web page designers give you the desired formatting options.
C. Create a templated user control that exposes the data to the Web page designers so they can specify their desired format.
D. Create a user control that simply renders the data and let the Web page designers specify the style properties for the user control.

2. Correct Answer: C
A. Incorrect: Although you could use this method, it would be difficult to do and certainly is not the best way to accomplish this task.
B. Incorrect: Although you could use this method, it would be difficult to do and certainly is not the best way to accomplish this task.
C. Correct: The templated user control exposes the data to the Web page designer, who can then specify the format of the data in a template.
D. Incorrect: This user control does not natively expose the style property, and if you choose to expose the property, you can only set an overall format for the user control, not a format for each of the data elements that are being exposed. 70-502

3. You want to employ a user control on one of your Web pages. What directive must be added to the top of the Web page to indicate that a user control is employed on the page? (Choose one.)
A. @Remember
B. @Reference
C. @Required
D. @Register
3. Correct Answer: D
A. Incorrect: No such directive.
B. Incorrect: No such directive.
C. Incorrect: No such directive.
D. Correct: Use the @Register directive to set a reference to the User Control that you are employing.
Lesson 2

1. Which of the following attributes can be used to set the image that is displayed in the Toolbox for your custom Web control? (Choose one.)
A. ToolboxIcon
B. ToolboxData
C. ToolboxBitmap
D. ToolboxConfig
1. Correct Answer: C
A. Incorrect: Not a valid attribute.70-445

B. Incorrect: Not the correct attribute.
C. Correct: Use the ToolboxBitmap attribute to set the image.
D. Incorrect: Not a valid attribute.

2. You are going to create a custom Web server control that inherits directly from the WebControl class. Which method do you need to override to get your control to display in the browser window? (Choose one.)
A. Display
B. Paint
C. Build
D. Render

2. Correct Answer: D
A. Incorrect: No such method.
B. Incorrect: No such method.
C. Incorrect: No such method.
D. Correct: The Render method must be overridden and you must provide code to display your control.

3. You are creating a composite control, so you create a class that inherits from the CompositeControl class. What method must be overridden so you can provide code to instantiate the child controls and set their properties? (Choose one.) 70-444
A. CreateChildControls
B. InitChildren
C. BuildChildControls
D. RenderChildren

3. Correct Answer: A
A. Correct: The CreateChildControls method must be overridden with code to create the child controls and set their properties.
B. Incorrect: No such method.
C. Incorrect: No such method.
D. Incorrect: No such method.
Chapter 5: Case Scenario Answers
Case Scenario 1: Sharing Controls Between Applications

You are creating a new Web site and find that you need to have a group of controls on many pages. These controls are used jointly to collect data from the user. Upon further investigation, you realize that your company uses these controls to collect user data on several other Web sites. Also, the company wants to standardize the layout and behavior of the user data-collection controls.
What approach should you take to create a custom control that can be placed into the GAC and used by all Web sites on this production server?
You should consider developing a custom composite control, because the composite control can easily contain other controls, and the layout is always the same. 70-443
If you create a user control, you won’t be able to compile it to a .dll file to install
it into the GAC.You should not consider creating a templated control because of the goal to keepthe layout consistent.
Case Scenario 2: Providing Layout Flexibility
You are creating a single Web site for a customer and notice that there are several areas where you display customer information. Although the data that is displayed is the same, the layout for each area is different, and the Web page designers want the flexibility to change the layouts to keep the site design fresh.
What is a quick way to create a control that offers the data to the Web page designers so they can create the layout?

You should consider creating a templated user control or a templated control.70-401 Either method can be used to present the data to the Web page designers. Because this is a single site solution, the easiest, and therefore the best, solution is to implement the templated user control.

Related posts:

  1. Testking 70-400 Microsoft exam study guide Chapter 4: Lesson Review Answers Lesson 1 1. You have...
  2. Testking 642-415 Cisco certification exam Chapter 6 Graphics Lesson 1: Drawing Graphics 1. Which of...
  3. I buy 70-551(VB) from pass4exam. I buy 70-551(VB) from pass4exam. It is very good !...
  4. Testking 642-436 Cisco certification infomation chapter 8 Application Domains and Services Lesson 1: Creating Application...
  5. Testking 350-029 Cisco simulation test Chapter 9 Lesson 1: Configuration Settings 1. Which code segment...