Can a dll run as standalone application?
Sometimes we can make it by introducing some code
No
Yes
You need to notify the user if your assembly is running without the ability to use HTTP to download assemblies. How can you determine whether you have that permission?
Examine AppDomain.CurrentDomain.SetupInformation.DisallowPublisherPolicy
Examine AppDomain.CurrentDomain.SetupInformation.DisallowCodeDownload
Examine AppDomain.CurrentDomain.DisallowPublisherPolicy
Examine AppDomain.CurrentDomain.DisallowCodeDownload
Which of the following permissions is required for all console applications running with a debugger?
UIPermission
SocketPermission
FileIOPermission
WebPermission
What base class should you derive from when creating custom applications?
The InstallerCollection class
The Installer class
The InstallContext class
The ManagedInstallerClass class
You want to send an HTML message that is also viewable in clients that do not support HTML. Which class should you use?
LinkedResource
SmtpClient
AlternateView
Attachment
After building a custom control, you test it by adding an ASP.NET web application to the solution. You add a correct <%@ Register %> directive and a proper declaration of the control in the
tag to the Web Form, but when you execute the application you get an error. What is the most likely reason for the problem?
The web application must have a reference to the control
The assembly from the custom control is not in the application’s bin directory
The custom control must be compiled first
The custom control must be registered with Windows first
None of the above
How will you close all the Popups for a particular parent window when it is closed? using javascript
window.childs.close()
window.child.document.close()
Create an object for every window while opening. Using the object name you can close the child windows.
None of the above
Which permission must an assembly have to connect to a Web server?
WebPermission
ServiceControllerPermission
SocketPermission
DnsPermission
You want to create an installation that, in the event of failure, undoes everything it has done so far. Which of the following mechanisms accomplishes that task?
The Clear and Rollback methods of the Installer class
The Rollback method of the Installer class
The Uninstall method of the Installer class
The Undo method of the Installer class
How does the runtime use evidence when creating an application domain?
To identify the author of the assembly
To determine which privileges the assembly should receive
To determine the priority at which the process should run
To track the actions of the assembly for audit purposes
Which method should you call in order to clear errors on a ASP.NET Web page?
Application.ClearAll();
Server.Clear();
Application.Clear();
Server.DisposeError();
Server.ClearError();
Which tools can you use to change the user account for a service after the service is installed?
Microsoft .NET Framework 2.0 Configuration
Net
My Computer
Computer Management
From which of the following sources can you attach a file to an e-mail message?
Stream
Web site
An incoming e-mail message
None of the above
What values of the AssemblyBuilderAccess enumeration allow you to execute the assembly?
AssemblyBuilderAccess.ReflectionOnly
AssemblyBuilderAccess.RunAndSave
AssemblyBuilderAccess.Save
None of the Above
Both the Page_Load and Page_PreRender events happen with each page Request? What is the difference between these two events?
The Page_Load event happens before the page has been rendered and the Page_PreRender event happens after the page has been rendered
The Page_PreRender event and Page_Load event can be used interchangeably
The Page_PreRender event is not executed for downlevel browsers
The Page_PreRender event happens before the Page_Load event
The Page_PreRender event happens after the Page_Load event and after any control events.