|Description: programming languages Online Quiz - 88|
|Number of Questions: 20|
|Created by: Aliensbrain Bot|
|Tags: programming languages|
What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time ?
The ASP.NET directive that lets you cache different versions of a page based on varying input parameters, HTTP headers and browser type is
What method must be overridden in a custom control ?
Given an ASP.NET Web Form called WebForm1, what class does the WebForm1 class inherit from by default ?
In ASP.NET if one uses windows authentication the current request attaches an object called as
What attribute must be set on a validator control for the validation to work ?
When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class for the form. What item is added ?
After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be ?
What is the Web.config file used for ?
You want to access web sites on the internet using HTTP. Which of the classes below can you use?
You want to create a reusable control by combining existing Windows Controls in order to use it in various of your applications. What should the base class of your control be?
Your application assemblies need to be installed into the Global Assembly Cache. What deployment strategy should you adopt?
You have a .xml file, and the corresponding .xsd. Which class should you use to validate the xml against the corresponding schema file?
You decide to use named parameters in a SqlCommand object in order to execute SQL queries on a database. You have a parameter named “CustomerName”. How do you refer to it within the SQL query text in the SqlCommand object?
You use a TransactionScope in your application in your application in order to use transaction semantics. What code should you use in order to commit the transaction within the transaction scope?
You are creating a setup and deployment project for your application . You want to ensure that the .NET Framework 2.0 is installed on the computers of the users who want to install your application. Which deployment editor should you use?
You have added a button named Bt1 to your form, whose Text is “Go”. You want to assign a shortcut to the button, so that whenever a user presses ALT+G, the Click event of the button Bt1 is raised. What code should you use?
You want to create custom properties for your control, which the user can set using the Properties window of the Visual Studio IDE. What attribute can you use to control the visibility of the properties in the Properties window in the Visual Studio IDE?
You create 4 forms FormA, FormB, FormC and FormD. You want to allow users to open FormA, FormB and FormC at the same time within FormD. Which properties do you need to set?