logo

CuriousTab

CuriousTab

Discussion


Home Certification Microsoft Certification Comments

  • Question
  • You are creating an ASP.NET page for a travel service. The page contains a CheckBoxList control that contains travel destinations. Customer can select favorite destinations to receive weekly e-mail updates of travel packages. The CheckBoxList control is bound to a database table of possible destinations. Each destination is ranked according to its popularity. You modify the page to sort the destination list by rank, from the most popular to the least popular. The list has three columns. You want the most popular destination to be on the top row of the check box list at run time. Which property setting should you use for the CheckBoxList control?


  • Options
  • A. Set the RepeatDirection property to Vertical.
  • B. Set the RepeatDirection property to Horizontal.
  • C. Set the RepeatLayout property to Flow.
  • D. Set the RepeatLayout property to Table.

  • Correct Answer
  • Set the RepeatDirection property to Horizontal. 

    Explanation

    The DataList.RepeatDirection property is used to get or select whether the DataList control displays vertically or horizontally. If this property is set to RepeatDirection.Horizontal, the items in the list are displayed in rows loaded from left to right, then top to bottom, until all items are rendered.

     

    Incorrect Answers:

    A: If the DataList.RepeatDirection property is set to RepeatDirection.Vertical, the items in the list are displayed in columns loaded from top to bottom, then left to right, until all items are rendered.


    C, D:DataList.RepeatLayout Property gets or sets whether the control is displayed in a table or flow layout. It does not affect the order in which the items are displayed.


  • Microsoft Certification problems


    Search Results


    • 1. You ASP.NET application manages order entry data by using a DataSet object named EXorderEntry. The EXorderEntry object includes two DataTable objects named orderNames and OrderDetails. A ForeignKeyConstraint object named orderDetailsKey is defined between the two DataTable objects. You attempt to delete a row in orderNames while there are related rows in OrderDetails, and an exception is generated.What is the most likely cause of the problem?

    • Options
    • A. The current value of OrderDetails.KeyDeleteRule is Rule.Cascade.
    • B. The current value of OrderDetails.KeyDeleteRule is Rule.SetNull.
    • C. The current value of OrderDetails.KeyDeleteRule is Rule.SetDefault.
    • D. The current value of OrderDetails.KeyDeleteRule is Rule.None.
    • Discuss
    • 2. You are a Web developer for XYZ. You create an ASP.NET application that accesses sales and marketing data. The data is stored in a Microsoft SQL Server 2000 database on a server named XYZ01. The company purchases a factory automation software application. The application is installed on XYZ01, where it creates a second instance of SQL Server 2000 named Factory and a database named FactoryDB. You connect to FactoryDB by using Windows Integrated authentication. You want to add a page to your ASP.NET application to display inventory data from FactoryDB. You use a SqlConnection object to connect to the database. You need to create a connection string to FactoryDB in the instance of SQL Server named Factory on XYZ01. Which string should you use?

    • Options
    • A. ?Server=XYZ01;Data Source=Factory; Initial Catalog=FactoryDB;Integrated Security=SSPI?
    • B. ?Server=XYZ01;Data Source=Factory; Database=FactoryDB;Integrated Security=SSP1?
    • C. ?Data Source=XYZ01\Factory; Initial Category=Factory; Integrated Security=SSP1?
    • D. ?Data Source=XYZ01\Factory; Database=FactoryDB; Integrated Security=SSP1?
    • Discuss
    • 3. A large document contains meeting notes from all meeting that took place between HR and Finance. You need to find all instances of 'derive' or 'dive' or 'dave'. What would be the most efficient way to find these terms using the Find & Replace dialog box?

    • Options
    • A. Choose Wildcard option and search for d?ve
    • B. Choose Wildcard option and search for d*ve
    • C. Choose Wildcard option and search for ?ve
    • D. Choose Wildcard option and search for *ve
    • Discuss
    • 4. You are experiences problems when starting Word 2010. The software just keeps on crashing and never fully loads. Your colleague has recommended that you start Word in a particular mode. What could this be?

    • Options
    • A. Safe Mode
    • B. Private Mode
    • C. Easy Mode
    • D. Invulnerable mode
    • Discuss
    • 5. Word 2010 has a particular template that it uses when you first open the program. This template contains default styles, no text and you also use it when you create new, blank documents. As you customize styles, marcos and other elements these settings are automatically stored in this template. What is the name of this template file?

    • Options
    • A. Standard.dotx
    • B. Normal.dotx
    • C. Empty.dotx
    • D. Template.dotx
    • Discuss
    • 6. You create an ASP.NET application to provide corporate news and information to XYZ?s employees. The application is used by employees in New Zealand. Default.aspx has a Web Form label control named currentDateLabel. The Page.Load event handler for Default.aspx included the following line of code: currentDateLabel.Text = DateTime.Now.ToString(?D?) You need to ensure that the data is displayed correctly for employees in New Zealand. What should you do?

    • Options
    • A. In the Web.config file for the application, set the culture attribute of the globalization element to en-NZ.
    • B. In the Web.config file for the application, set the uiCulture attribute of the globalization element to en-NZ.
    • C. In Visual Studio .NET, set the responseEncoding attribute in the page directive for Default.aspx to UTF-8.
    • D. In Visual Studio .NET, save the Default.aspx page for both versions of the application by selecting Advanced Save Options from the File menu and selecting UTF-8.
    • Discuss
    • 7. You are creating an ASP.NET page for selling movie tickets. Users select a region, and then they select from a list of cities in that region. The site displays the names and locations of movie theaters in the city selected by the user. Your company, XYZ Brothers, maintains a list of theaters in a database table that includes the city, name, and street address of each theater. You want to minimize the time required to retrieve and display the list of theater names after a user selects the region and city. What should you do?

    • Options
    • A. Modify the connection string to add the packet size property and set its values to 8192.
    • B. Add the following directive to the page: OutputCache VaryByParam=?
    • C. Add the following directive to the page: OutputCache VaryByControl=?region;city?
    • D. Modify the connection string to keep your database's connection pool as small as possible.
    • Discuss
    • 8. You create an ASP.NET page that uses images to identify areas where a user can click to initiate actions. The users of the application use Internet Explorer. You want to provide a pop-up window when the user moves the mouse pointer over an image. You want the pop-up window to display text that identifies the action that will be taken if the user clicks the image. What should you do?

    • Options
    • A. For each image, set the AlternateText property to specify the text you want to display, and set the ToolTip property to True.
    • B. For each image, set the ToolTip property to specify the text you want to display.
    • C. In the onmouseover event handler for each image, add code that calls the RaiseBubbleEvent() method of the System.Web.UI.WebControls.Image class.
    • D. In the onmouseover event handler for each image, add code that calls the ToString() method of the System.Web.UI.WebControls.Image class.
    • Discuss
    • 9. You create English, French, and German versions of a test engine ASP.NET application you are developing for XYZ Inc. You have separate resource files for each language version.You need to deploy the appropriate resource file based on the language settings of the server. What should you do?

    • Options
    • A. Create an installer and set the Installer.Context property for each version of your application.
    • B. Create an installer that has a launch condition to verify the locale settings.
    • C. Create an installer that has a custom action to install only location-specific files.
    • D. Create an installer that has an MsiConfigureProduct function to install the appropriate version.
    • Discuss
    • 10. You plan to deploy your ASP.NET application over XYZ?s intranet. The application uses data retrieved from a Microsoft SQL Server database. You want to use SQL Server connection pooling to optimize performance. You also need to protect confidential data stored on the server while minimizing administrative costs. You need to configure security for your application. What should you do?

    • Options
    • A. Use Microsoft Windows authentication in the application. Enable impersonation for users to access the SQL Server database from your application.
    • B. Use Microsoft Windows authentication in the application. Use a single Windows account for users to access the SQL Server database from your application.
    • C. Use form-based authentication in the application. Use the system administrator (sa) SQL Server login for users to access the SQL Server database from your application.
    • D. Use form-based authentication in the application. Assign each user a separate SQL Server login to use to access the SQL Server database from your application.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment