ĐỀ THI LÝ THUYẾT Advanced Features of ASP


1.       The ASP.NET _____ Tool is a browser based tool build into the Microsoft Visual Studio IDE.
a.       Configuration
b.       Documentation
c.        MMC Snap In
d.       Web Site Administration
2.       Some _____ mode setting can be defined using a text editor.
a.       Authentication
b.       Authorization      
c.        Custom error
d.       Debugging
3.       The IIS manager is displayed when you type _____ in the Run dialog box.
a.       Lexpress
b.       Lcwonn1
c.        Inetmgr
d.       Inetwiz
4.       _____ is used to verify the identity of a user before allowing or denying a request.
a.       Authentication
b.       Authorization
c.        Impersonation
d.       Security
5.       In _____ authentication, encrypted cookies are used to identify and validate users.
a.       Custom 
b.       Forms based
c.        Passport
d.       Windows
6.       Which one of the following code will help to deny access to files through browser having .xls as file name extension?
  type=”System.Web.HttpForbiddenHandler”/>




7.       Suppose you want to add a provider named Test to the TestProvider type. Which one of the following code will correctly perform this task?
8.       Suppose you want to define some scalar properties of students in the web.config file. Which one of the following code will help you to define three properties: name, weight, and birthdate respectively?
a.      
9.       Which of the following statements about Nested Master pages are correct?
A.      Nested Master pages have controls that are mapped to content palceholders in the parent Master Page.
B.      Having large number of Nested Master pages does not affect an application’s performance.
C.      Nested Master Pages can provide uniqueness to individual pages of the Web site
D.      Unlike the child Master Page, the parent Master page applies only to the body of a page
a.       A, B, C
b.       A, B, D
c.        B, C, D
d.       A, B, C, D
10.    Suppose you want to define a label with the foreground color as MidnightBlue, the width of the label as 300px, the height as 24px, and the text in the label as bold. Which one of the following code helps you to achieve this task?
a.       <asp:Label runat=“server” ForeColor=“MidnightBlue” width=“300px” height=“24px” font-bold=”True” font-overline=”True” font-size=”Medium”/>
b.      
c.       
d.      
11.    Which of the following statement about user profiles are correct?
A.      User Profiles are dynamically generated group of ASP.NET class public attributes.
B.      The Personalization API facilitates management of user profiles in ASP.NET
C.      The Personalization API is designed for persistent storage of structured data.
D.      To build a personalization layer, you need to define a profile layout and add properties to the profile storage medium.
a.       A, B, C
b.       A, C, D
c.        B, C, D
d.       A, B, C, D
12.    Which of the following statements about Assemblies are correct?
A.      An assembly is a collection of executable code used for deployment purposes.
B.      Certain assemblies, called as satellite assemblies, contain non-executable code.
C.      A satellite assembly contains resource files that are language and culture-specific.
D.      Each assembly dile contains a resource file specific to a single culture.
a.       A, B, C
b.       A, C, D
c.        B, C, D
d.       A, B, C, D
13.    Which of the following statements about configuring authentication for an ASP.NET application using IIS Manager are true?
a.       It help you specify the Windows authentication mode in the web.config file.
b.       It can configure the virtual directory for Windows integrated access.
c.        It helps you to override the default access permissions to users
d.       It asks to specify the user name and password to access the virtual directory.
14.    Following are the steps in creating custom controls using the CompositeControl class
A.      Define Properties.
B.      Override RenderControl() Method.
C.      Add Controls to Collection.
D.      Define Composite Control.
Which one of the following options lists the correct sequence of steps?
a.       A, B, C, D
b.       C, B, A, D
c.        D, A, C, B
d.       D, C, A, B
15.    In _____ authentication, HTML forms are used to collect authentication information.
a.       Custom
b.       Forms based
c.        Passport
d.       Windows
16.    In client-server operations, the SSL protocol uses a _____ …. One end, or both ends of the communication.
a.       Certificate Authority
b.       Object Signing Certificates
c.        Signature Verification Certificates
d.       User Certificates
17.    Which of the following codes correctly displays the user name and logon status of a user?

Welcome ,
Your login was successfully!
18.    Following are the steps related to creating assembly files.
A.      Create a .resx file in the application’s bin\debug folder.
B.      Fill appropriate translated information in the .ress file, if required.
C.      Create a resources file by using the resgen utility
D.      Create a folder with a particular culture name within the application’s bin\debug folder.
E.       Use the Al.exe tool to comile the resources file to satellite assemblites.
Which one of the following options lists the correct sequence of steps?
a.       A, B, C, D, E
b.       C, A, B, D, E
c.        D, A, C, B, E
d.       D, A, B, C, E
19.    Following are the steps related to generating resources files automatically
A.      Select the control or designer surface.
B.      Switch to the Design mode
C.      Click Generate Local Resource
D.      Open the Web Page.
Which one of the following options lists the correct sequence of steps ?
a.       A, B, C, D
b.       A, C, B, D
c.        B, D, C, A
d.       D, B, A, C
20.    Following are the steps related to creating custom themes from Visual Studio,NET
A.      Create the skin file
B.      Create the root App_Theme folder
C.      Create the specific themes folders
Which one of the following options lists the correct sequence of steps ?
a.       A, B, C
b.       A, C, B
c.        B, C, A
d.       C, B, A
21.    Which one of the following code correctly specifies the connection string to the database with the username and password as playware?
a.       <ConnectionString>
b.      
c.       
d.      
22.    Suppose you want to display a messenge “Welcome Guest” when a user visits the login.aspx page of the Web site for the first time. Which one of the following code will help you to achieve this task?
          
                 
                Welcome guest
                
           
23.    Suppose you want to group the properties PostalCode, Street, City and CountryOrRegion under the Address profile. Which one of the following code will help you to achieve this task?
a.      
< properties>
24.    Which one of the following code will help to configure the theme MyTheme for all the pages of a Web application?
a.      
b.      

c.       
d.      
25.    You want to display the current region in your Web application. Which one of the following codes will help you to achieve this task?
a.       RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Response.Write(“Country: “ + riCurrencyInfo.DisplayCurrentName + “
”);
b.       RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Response.Write(“Country: “ + riCurrencyInfo.DisplayName + “
”);
c.        RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Request.Write(“Country: “ + Response.riCurrencyInfo.DisplayName + “
”);
d.       RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Response.Write(“Country: “ + riCurrencyInfo.DisplaySymbol + “
”);
26.    Which tool helps in handling configuration settings for an application deployed on the server?
a.       Configuration
b.       Documentation
c.        MMC Snap In
d.       Web Site Administration
27.    _____ authorization uses NTFS permissions to check the access rights of the user account that the ASP.NET application is using.
a.       File
b.       Forms based
c.        Passport
d.       Windows
28.    Which are the additional settings, other than the configuration setting, defined by the Microsoft ASP.NET Web Site Administration Tool?
a.       Application
b.       Debugging
c.        Section
d.       Security
29.    Which of the following statement about Microsoft ASP.NET Web Site Administration Tool tabs are incorrect?
A.      The Home tab displays information about the host machine.
B.      The Security tab allows you to debug and trace related settings.
C.      The Application tab allows you to define and assign roles to users.            
D.      The Provider tab helps you to define a database provider.
a.       A, B
b.       B, C
c.        C, D
d.       D, A
30.    Suppose you want to allow access to the application resources only to the user named John amongst the authenticated users. Which one of the following code will help you to achieve this task?
31.    Which of the following statement about web.config and machine .config files are correct?
A.      The machine .config file caters to a single ASP.NET application.
B.      The machine .config file caters to a multiple ASP.NET applications.
C.      The web.config file caters to a singel ASP.NET application.
D.      The web.config file caters to a multiple ASP.NET applications. ()

32.    Which of the following statement about ASP.NET configuration setting are correct?
A.      Application settings help you to configure the SMTP server, define default error page and change the status of an application.
B.      Provider settings help you to configure the behavior of the ASP.NET application.
C.      Security settings help you to create and mange users, define and assign roles and rules to users
a.       A, B
b.       A, C
c.        B, C
d.       A, B, C
33.    Which of the following statement about Resources files are correct?
A.      Resource files can have either a .resx or .resources extension
B.      Files with the .resx extension store data in a binary format and files with the resources extension store data in an XML format.
C.      The resx files are generated when the .resources file is complied
D.      These .resources files are included in a assembly known as satellite assembly
a.       A, B
b.       B, C
c.        C, D
d.       D, A
34.    In _____ the application acts on behalf of a user whose identity is authenticated using ISS
a.       Authentication
b.       Authorization
c.        Impersonation
d.       Security
35.    Following are the steps involved in setting up a form based authentication in ASP.NET
A.      Configure the section in the web.config file.
B.      Configure the section in the web.config file.
C.      Create the login page.
D.      Enable anonymous access in IIS
Which one of the following options lists the correct sequence of steps?
a.       A, B, C, D
b.       B, C, D, A
c.        D, A , B, C
d.       C, B, A, D
36.    Following are the steps involed in a typical communication process between a client and Web Server.
A.      The Client browser contacts the Web Server.
B.      The browser encrypts a session ticket and sends back to the server.
C.      The Web server receives the request and decrypts the session ticket with its private key
D.      The browser decrypts the certificate with a trusted third-party public key
E.      The server sends backs its certificate, encrypted with a trusted third-party private
a.       A, B, C, E, D
b.       A, B, C, D, E
c.        A, E, C, B, D
d.       A, E, D, B, C
37.    Which one of the following attributes specifies that the profiles data should be stored for the anonymous users?
a.       Type
b.       serializeAs
c.        allowAnonymous
d.       defaultValue
38.    In _____ authentication, encrypted cookies are used to identify and validate users
a.       Custom
b.       Forms based
c.        Passport
d.       Windows
39.    In _____ authentication, the IIS is configured to allow only users on a Windows domain to log on to the application
a.       Custom
b.       Forms based
c.        Passport
d.       Windows
40.    If you intend to use custom authentication, the authentication mode has to be… specified as _____ in the web.config file.
a.       Forms
b.       Passport
c.        None
d.       Windows
41.    Which of the following tools help to define ASP.NET configuration setting?
a.       Configuration Tool
b.       Documentation Tool
c.        Web Site Administraion Tool
d.       Text Editor


42.    The _____ option provides a set of pre-defined templates that enable … to set the display of the Login control
a.       Auto Format
b.       Complete
c.        SignUp
d.       View as Template
1. The @_____ directive associates a user control to a Web page
·         Assembly
·         Register
2. The @ _____ directive specifies a Web page as the Master page.
·         Assembly
·         Master
3. The ASP.NET _____ Tool is a browser-based tool built into the Microsoft Visual studio IDE.
·   Web Site Administration
4. _____ is a collection of property settings that allows you to define and apply a consistent look across a Web application.
  • Theme
5. _____ is a set of properties and templates that can be used to standardize the look and feel of a Web page.
  • Skin
6. To use the user interface functionality of a Web page, save the Web page as a user control with the _____ extension.
  • .ascx
7. _____ authorization uses NTFS permissions to check the access right of account that the ASP.NET application is using.
·   File
·   Forms-based

mẫu web bán hàngLiên hệ
Site map
in hóa đơn gtgt - in hóa đơn gtgt - in hóa đơn gtgt