Which method will start an instance of Internet Explorer and specify the URL “http://www.microsoft.com” for it to navigate to?
Process.Start(“InternetExplorer, http://www.microsoft.com”);
Process.Run(“iexplore.exe”, “http://www.microsoft.com” );
Process.Start(“iexplore.exe”);
Process.Start(“iexplore.exe”, “http://www.microsoft.com”);
You need to display the sales data for your division for the past 5 years in a DataGrid on a Web Form. Performance is very important. What would be the best strategy to use in retrieving the data?
Use a simple select statement as the data source for the DataGrid
Use a DataReader object to retrieve the data for the DataGrid
Use a cached XML file as the data source and retrieve the data with a DataSet.
Use a DataSet object to retrieve the data for the DataGrid
An organization has developed a web service in which the values of the forms are validated using ASP.NET application. Suppose this web service is got and used by a customer then in such a scenario which of the following is TRUE
The customer can run on any platform.
Such a situation cannot happen at all
The customer must be having technology that run ASP
None of the Above.
What is the purpose of Reflection?
For knowing version of assembly
For Reading metadata at runtime
For finding path of an assembly
None of the above
Which method is appropriate to specify a password when starting a process?
Use an Array of type String coupled with an Integer reference to the password’s index in the array.
Use a SecureString object.
Use an Array of type Char
Use a String variable that contains the password.
In ASP.NET application the Global.asax file lie in which directory
ROOT
Application
System
None of the Above
You need to ensure that the trace from one logical operation is isolated from that of other operations. How do you accomplish this objective?
Use the CorrelationManager object to keep each trace isolated.
Use a TraceSwitch to change the process’s trace information.
Use a different TraceLevel for each process.
Specify a Correlation object, and use the CorrelationManager to control each instance of the correlation.
Which of the following is returned by the DirectorySecurity.GetAccessRules method?
A generic Collection object containing AccessRule objects
A generic Collection object containing FileSystemAccessRule objects
An instance of AuthorizationRuleCollection containing FileSystemAccessRule objects
An instance of AuthorizationRuleCollection containing AuthorizationRule objects
If one uses ASP.NET configuration system to restrict access which of the following is TRUE?
The access is restricted only to static files and non-ASP.NET resources
The access is restricted only to ASP.NET files
Both 1) and 2)
None of the Above
Which of the following is used for deploying an ActiveX component from a web application?
Web Setup Project
Object Project
Windows Setup Project
Cab Project
What static method of the Assembly class is guaranteed to return an instance that represents the assembly that contains the startup object (or entry point) of the application?
Assembly.GetEntryAssembly
Assembly.Load
Assembly.GetCallingAssembly
Assembly.GetExecutingAssembly
AJAX pages can be served by any
Network server
Internet server
Operating system server
None of these
Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below:
One must override the method InitializeMethod
One must override the method ReceiveMessage
Both 1) and 2)
One must override the method ProcessMessage
Can AJAX technology work on web servers other than IIS?
No
Yes
Which keyword is used to convert object into stream
Deserialize
Sealed
Asynchronous
Synchronous
Serialize
What model does ASP.NET request processing is based on
Top-down
Pipeline
Bottom-up
Waterfall
You need to log application state information for your application. The application will run in a Full Trust environment but will make calls to partial trust assemblies. Which statement best describes how this should be handled?
Use the EventLog class in assemblies that will have no contact with the partial trust assemblies.
Avoid the use of EventLog class objects because the security risk is too high.
Use EventLog objects, but ensure that they are specific to this application. If they are used by a partial trust object, create a separate log for security reasons.
Use the EventLog class as necessary.
What types of objects are not derived from the MemberInfo class?
Assembly class
FieldInfo class
Type class
MethodInfo class
Which of the following would you use within a method to throw an exception if the assembly lacked a specific privilege?
SecurityAction.Assert
SecurityAction.Demand
SecurityAction.RequestMinimum
SecurityAction.Deny