Thứ Năm, 23 tháng 5, 2013

Dethi ASSP






1
________________ controls are easy to create and are compiled at runtime.

Composite custom
Custom
User
Web server
2
Which of the following options about WebPartManager are true?

It is a server control.
It does not manage the web parts contained within a Web page.
It manages the personalization settings of the web page.
It does not manage the communication between the different Web Parts controls.
3
The ASP.NET ___________________ Tool is a browser-based tool built into the Microsoft Visual Studio IDE.
// đúng
Configuration
Documentation
MMC Snap-In
Web Site Administration
4
Some ______________ mode settings can be defined using a text editor.
//dung
authentication
authorization
custom error
debugging
5
___________ authorization uses NTFS permissions to check the access rights of the user account that the ASP.NET application is using.
//dung
File
Forms-based
Passport
Windows
6
In client-server operations, the SSL protocol uses a _____________________ to identify one end, or both ends of the communication.
Certificate Authority
Object Signing Certificates
Signature Verification Certificates
User Certificates
7
The ________________ control enables a user to recover a forgotten password by providing the username and answer to the security question.
//dung
ChangePassword
CreateUserWizard
LoginName
PasswordRecovery
8
____________________ are editable regions on a Master page that can be customized for each page.
//đúng
Content placeholders
Editable regions
Non-editable regions
HTML elements
9
Can you identify the name of the area where common elements such as company logos, menus, or copyright notices can be inserted?
//đúng
Content placeholders
Editable regions
Non-editable regions
HTML elements
10
The Page_Load event handler helps to add dynamic, non page-specific content to the ________ page.
//dung
Content
Master
Nested
11
Which of the following contains the overall templates content?
//Master pages contain the overall templates content
Master
Nested
Slave
12
A ______________ is a collection of property settings that allows you to define and apply a consistent look across a Web application.
//dung
cascading style sheets
graphics
skin
theme
13
A _______________ is a set of properties and templates that can be used to standardize the look and feel of a Web page.
//dung
cascading style sheets
graphics
skin
theme
14
___________ an application involves making the application readable to a wide range of users irrespective the cultural and regional differences.
//đúng
Internationalizing
Localizing
Personalizing
Globalizing
15
To use the user interface functionality of a Web page, save the Web page as a user control with the ______ extension.
//đúng
.ascx
.resources
.resx
.skin
16
The @ ________ directive associates a user control to a Web page.
// đúng
Assembly
Master
Page
Register
17
The @ ________ directive specifies a Web page as the Master page.
//đúng
Assembly
Master
Page
Register
18
The @ ________ directive associates a user control to a Web page.
//dung
Assembly
Master
Page
Register
19
The ________________ method specifies attributes for IMG element to refer an image.
//đúng
Write()
WriteAttribute()
WriteBeginTag()
WriteEndTag()
20
________________ controls are compiled components that can be shared across multiple applications.

Composite custom
Custom
User
Web server

Previous
Next








Đề lý thuyết advance features of asp.net
1.The ASP.NET _____ Tool is a browser based tool build into the Microsoft Visual Studio IDE.
d. Web Site Administration

2. Some _____ mode setting can be defined using a text editor.
a. Authentication

3. The IIS manager is displayed when you type _____ in the Run dialog box.
c. Inetmgr

4. _____ is used to verify the identity of a user before allowing or denying a request.
a. Authentication

5. In _____ authentication, encrypted cookies are used to identify and validate users.
c. Passport

6. Which one of the following code will help to deny access to files through browser having .xls as file name extension?
<add path = “.xls” verb = “*” 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?
<profile defaultProvider = “Test”>
<providers>
<add name = “Test” connectionStringName = “DefaultConnection” applicationName = ”/” type=”TestProvider”/>
</providers>
</profile>

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. <profile>
<properties>
<add name = “Name”/>
<add name=”Weight” type=”System.Int32”/>
<add name =”Birthday” type=”System.Datetime”/>”
</properties>
</profile>

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

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”/>

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.
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 file contains a resource file specific to a single culture.
c. B, C, D

13. Which of the following statements about configuring authentication for an ASP.NET application using IIS Manager are true?

b. It can configure the virtual directory for Windows integrated access.
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?
c. D, A, C, B

15. In _____ authentication, HTML forms are used to collect authentication information.
b. Forms based

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?
<form runat="server">
Welcome <asp:LoginName id="lnUser" runat="Server"/>,
Your login was successfully!<br /><br />
<asp:LoginStatus id="lsUser" runat="Server"/>
</form>

18. Following are the steps related to creating assembly files.
A. Create a .ress 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>
<add name=”TestConnection” connectionString=”server=(localhost); database=test;uid=sa;pwd=sa”/>

b. <Connection>
<add name=”TestConnection” connectionString=”server=(localhost); database=”test”/>
c. <ConnectionString>
<add database=”TestConnection” connectionString=”server=(localhost); database=”test”/>
d. <ConnectionString>
<add name=”TestConnection” connectionString=”client=(localhost); database=”test”/>

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?
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
Welcome guest
</AnonymousTemplate>
</asp:LoginView>

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. <profile enabled=”true”>
< properties>
<group name=”Address”>
<add name=”postacode”/>
<add name =”street” />
<add name=”city”/>
</group>
</properties>
</profile>

24. Which one of the following code will help to configure the theme MyTheme for all the pages of a Web application?
a. <Configuration>
<System.Web>
<allpages theme=”MyTheme”/>
b. <Configuration>
<System.Web>
<pages theme=”MyTheme”/>

c. <System.Web>
<Configuration>
<pages theme=”MyTheme”/>
d. <Web application>
<System.Web>
<pages theme=”MyTheme”/>

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 + “<BR>”);
b. RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Response.Write(“Country: “ + riCurrencyInfo.DisplayName + “<BR>”);

c. RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Request.Write(“Country: “ + Response.riCurrencyInfo.DisplayName + “<BR>”);
d. RegionInfo riCurrencyInfo = RegionInfo.CurrentRegion;
Response.Write(“Country: “ + riCurrencyInfo.DisplaySymbol + “<BR>”);

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? C
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?

<Configuration>
<system.web>
<authorization>
<allow user=”john”/>
<deny user=”*”/>
< /authorization>
</System.web>
</Configuration>

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 <authentication> section in the web.config file.
B. Configure the <authorization> 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


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
==============================================================
43. the _______methods specify the beginning and ending of IMG element respectively
a. writeBeginTag() and writeEndTag()

44. The ____________ method specifies attributes for IMG element to refer an image.
a. writeAttribute()

45. the ______method writes the caption set by the caption property
a. write()

46. the _______methods render the beginning andnding of H2 element
a. RenderBeginTag()  and RenderEngTag()

50. WebControl , compositeControl =>System.web.UI.WebControls NameSpace

51._______ is a database store where the profile properties are stored for future use
a. Profile Provider

52. Themes are stored with the file extension ______ they are stored in the App_Themes folder in the web application
a. .skin

- Skin is a set of properties and templates that can be used to standardize the look and feel like size, font, and other characteristics of controls of a web page.

53. ________ is defined as aprocess of developing web applications that can be used across multiple cultures and regions.
a. Globalization
54. Globalization => System.Globalization namespace

55. the _____class provides culture – specific information such as currency and decimals
a. NumberFormatInfo

66. The _____ class provides information about country / region such as name and currency of the country/region
a. RegionInfo

67. ________ Are the editable regions on a master page that you can customize for each page.
a. Content placeholders

68. ________ Control enables the aspx web forms to place content on the master page in the way you want
a. Content placeholders

69. ________ Regions are the areas where you can insert the common elements such as company logos, menus or copyright notices
a. Non-editable regions

70. Can design the layout to create standard navigations for the web application Master page in the way you want
a. HTML Elements


1)      PasswordRecovery control
2)      CreateUserWizard control: to create a new user account without providing any lengthy code.
3)      ChangePassword control: in asp.net enables users to change their passwords and also requires users to confirm an existing password
- ChangePassword control consists of the following distinct views, which are displayed sequentially to th user
               

  

1       In client-server  operations, the SSL  protocol  uses a _____________________ to  identify  one end, or both  ends  of  the  communication.
A. Certificate Authority
 B. Object Signing Certificates
C . Signature Verification Certificates
D . User Certificates

2              The ________________ control  enables  a  user  to  recover   a  forgotten  password  by providing  the  username  and  answer  to the  security  question.
A . ChangePassword
B . CreateUserWizard
C . LoginName
D . PasswordRecovery

3          ____________________ are  editable  regions  on  a  Master  page  that  can  be  customized  for each  page.
A.      Content placeholders
      B . Editable regions
     C . Non-editable regions
     D . HTML elements







4       Can you identify the name of the area where common elements such as company logos, menus, or copyright notices can be inserted?
A.      ontent placeholders
 B . Editable regions
C . Non-editable regions
D . HTML elements

5          The Page_Load event handler helps to add dynamic, non page-specific content to the ________ page.
A . ASP.NET
B . Content
C . Master
D . Nested

6          Suppose you want to display a message "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?

A.      <asp:LoginView id="login" runat="server">
<AnonymousTemplate>
Welcome Guest
</AnonymousTemplate>
</asp:LoginView>






B.      <asp:LoginView id="login" runat="server">
 <LoggedInTemplate>
   Welcome Guest
                                </LoggedInTemplate>
 </asp:LoginView>

C.      <asp:LoginView id="login" runat="server">
                                 <Template>
                                                 Welcome Guest
 <Template>
</asp:LoginView>

D.      <asp:LoginView id="login" runat="server">
Welcome Guest
</asp:LoginView>
1.       A
2.       B
3.       C
4.       D


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?


A.      <profiles defaultProvider="Test">
                                <provider>
                                                  <add name="Test" connectionStringName="DefaultConnection"
                                                applicationName="/" type="TestProvider"/>
                                 </provider>
                 </profiles>

B.      <Provider="Test">
                                  <providers>
                                                <add name="Test" connectionStringName="DefaultConnection"
                                                  applicationName="/" type="TestProvider"/>
                                </providers>
                 </Provider>

C.      <profile defaultProvider="Test">
                                 <providers>
<add name="Test"  connectionStringName="DefaultConnection" applicationName="/" type="TestProvider"/>
                                 </providers>
</profile>

D.      <profile defaultProvider="Test">
                                <profiles>
<add name="Test" connectionStringName="DefaultConnection" applicationName="/" type="TestProvider"/>
                                </profiles>
</profile>
1.       A
2.       B
3.       C
4.       D


8          Which of the following statements about Nested Master pages are correct?
A.     Nested Master pages have controls that are mapped to content placeholders 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.

1.       A, B, C
2.       A, B, D
3.       B, C, D
4.       A, B, C, D

.


9          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.       <asp:Label runat="server">
< ForeColor="MidnightBlue" width="300px"height="24px"font-bold="True" font-overline="True"font-size="Medium" />
</asp:Label>

C.    <asp:Label runat="server" labelForeColor="MidnightBlue" labelwidth="300px" labelheight="24px"         font-bold="True" font-overline="True" font-size="Medium" />

D.  <asp:Label runat="server" ForeColor="MidnightBlue" width="300px" height="24px"  />

1.       A
2.       B
3.       C
4.       D


10       Which of the following statements 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.
1.       A, B, C
2.       A, C, D
3.       B, C, D
4.       A, B, C, D





11       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
D. Which one of the following options lists the correct sequence of steps?

1.       A, B, C
2.       A, C, B
3.       B, C, A
4.       C, B, A


12       Which of the following statements about Resource 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 compiled.
D.     These .resources files are included in an assembly known as satellite assembly.


1.       A, B
2.       B, C
3.       C, D
4.       D, A

13       ____________ allows you to retrieve content in master pages dynamically from locations other than the file systems.
A.      PathProvider
B.      Virtual Path
C.      VirtualFile
D.      VirtualDirectory
14       The _________ tool is used to install an assembly in the GAC.
A.      gacpub.exe
B.      gacutil.exe
C.      gacinst.exe
15       _________ can be shared across multiple applications on a web server.
A.      Public assemblies
B.      Private assemblies
C.      Global assemblies
16       The _________ project creates a virtual directory in IIS to store ASP.NET Web applications
A.      . IIS setup
B.      Virtual setup
C.      Web setup
17       The _________ property of the ConnectionsZone class allows users to establish connection between Web Parts controls.
A.      ConnectVerb
B.      CloseVerb
C.      SentVerb
18       The _________________ method of the WebPartManager class shifts Web Parts controls within the same web parts zone or within other zones.
A.      MoveWebPart()
B.      WebPartMoving()
C.      CloseVerb()
19       The _______ property of the ConnectionsZone class specifies the text to be displayed on the connection user interface which is prefixed by the name of the provider.
A.      InstructionTitle
B.      SendText
C.      ImportWebPart

20       The __________ property of the WebPartZone class specifies or retrieves a message to be displayed when the WebPartZoneBase control does not contain any Web Parts controls.
A.      EmptyZoneText
B.      ErrorStyle
C.      Layout orientation

21       The _____________ manages different tasks associated with Web Parts controls.
A.      WebPartManager class
B.      ConnectionsZone class
C.      WebPartZone class
22       The bitmap image associated with the custom control must be __________ in size.
A.      16 X 16 pixels
B.      20 X 20 pixels
C.      25 X 25 pixels
23       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
24       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

25       ___________ 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



               



          




Bottom of Form

Không có nhận xét nào:

Đăng nhận xét