Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework Sample Questions:
1. You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, a Web site has been created. An EditorZone control has been added to the home page on the Web site. Now the customer wants to enable users to customize the size and location of the Web Parts on their home pages. You have to achieve this for the customer. In the options below, which control should be added to the EditorZone control? (choose more than one)
A) You should add BehaviorEditorPart to the EditorZone control.
B) You should add PropertyGridEditorPart to the EditorZone control.
C) You should add LayoutEditorPart to the EditorZone control.
D) You should add AppearanceEditorPart to the EditorZone control.
2. You work as the developer in an IT company. Recently your company has a big customer.
The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. The customer needs to compress an array of bytes. So you are writing a method. The array is passed to the method in a parameter named document. You need to compress the incoming array of bytes and return the result as an array of bytes.
Which code segment should you use?
A) MemoryStream strm = new MemoryStream();DeflateStream deflate = new DeflateStream(strm, CompressionMode.Compress);deflate.Write(document, 0, document.Length);deflate.Close();return strm.ToArray();
B) MemoryStream strm = new MemoryStream(document);DeflateStream deflate = new DeflateStream(strm, CompressionMode.Compress); byte[] result = new byte[document.Length];deflate.Write(result, 0, result.Length); return result;
C) MemoryStream inStream = new MemoryStream(document);DeflateStream deflate = new DeflateStream(inStream, CompressionMode.Compress); MemoryStream outStream = new MemoryStream();int b;while ((b = deflate.ReadByte()) != -1) { outStream.WriteByte((byte)b);} return outStream.ToArray();
D) MemoryStream strm = new MemoryStream(document);DeflateStream deflate = new DeflateStream(strm, CompressionMode.Compress);deflate.Write(document, 0, document.Length);deflate.Close();return strm.ToArray();
3. You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you??re creating a Web application which displays data by using a GridView control. For the Web application, you drag and drop tables from the Data Connections tree in Server Explorer build Web Forms.
The following is the Add Connection dialog box. (Click the Exhibit button.) You have to use this to add a connection to your data. You have to create the data source objects, so you need to configure the .NET Data Provider that you use to achieve this.
What should you do?
A) You should right-click the connection, and click Properties. Modify the Provider property of the data connection.
B) You should click the Advanced button, and change the Data Source property to the target provider.
C) You should click the Advanced button, and change the Application Name property to the target provider.
D) You should click the Change button, and change the data provider for the selected data source.
4. You have just graduated from college, now you are serving the internship as the software developer in an international company. There's a Web site that uses custom Themes. Your Web site must support additional Themes based on the user's company name. When a user logs on to the Web site, the company named is set. The company's Theme name is stored in a variable named ThemeName. You have to dynamically set the Web site's Theme by using this variable. So what should you do?
A) The following code segment should be added to the Web site's configuration file. <pages theme="ThemeName" />
B) The following code segment should be added to the markup source of each page on the Web site. <%@ Page Theme="ThemeName" ... %>
C) The following code segment should be added to the PreInit event of each page on the Web site. Page.Theme = ThemeName;
D) The following code segment should be added to the Load event of each page on the Web site. Page.Theme = ThemeName;
5. You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, you're developing a Web application. The Web application contains two distinct UIs, one is targeted to mobile devices which might or might not support cookies and relative URLs, another to desktop browsers. Users request the Default.aspx page. You have to redirect users to the appropriate UI, on the basis that whether they are using a mobile device or a desktop browser. What should you do?
A) Add the following node to the <system.web> element of the Web.config file. <httpRuntime useFullyQualifiedRedirectUrl="true" />
B) Add the following code segment to the Page_Load event of Default.aspx. if (Request.Browser.Type == "MobileDevice") { Response.Redirect("MobileDefault.aspx");} else { Response.Redirect("DesktopDefault.aspx");}
C) Add the following node to the <system.web> element of the Web.config file. <httpRuntime useFullyQualifiedRedirectUrl="false" />
D) Add the following code segment to the Page_Load event of Default.aspx. if (Request.Browser["IsMobileDevice"] == "true" ) { Response.Redirect("MobileDefault.aspx");} else { Response.Redirect("DesktopDefault.aspx");}
Solutions:
| Question # 1 Answer: C,D | Question # 2 Answer: A | Question # 3 Answer: D | Question # 4 Answer: C | Question # 5 Answer: A,D |


PDF Version Demo






We are confident about the products and aim to help you pass with ease. In case of failure, we will provide a no hassle full money back guarantee for the purchasing fee.
1215 Customer Reviews
Quality and ValueITbraindumps Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.
Tested and ApprovedWe are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.
Easy to PassIf you prepare for the exams using our ITbraindumps testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.
Try Before BuyITbraindumps offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.