Tải bản đầy đủ (.doc) (33 trang)

Đề thi trắc nghiệm ASP.NET có kèm đáp án (trên 400 câu hỏi) Thiết kế website kinh doanh 2

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (225.91 KB, 33 trang )

1 | P a g e
1. Đối tượng transaction được tạo bởi phương thức nào :
a. NewTransaction
b. StartTransaction
c. BeginTransaction
d. CreateTransaction
2. Điều nào sau đây không phải là ưu điểm của Server control so với HTML control :
a. Duy trì dữ liệu trên control
b. Hiển thị không phụ thuộc vào trình duyệt
c. Có các sự kiện riêng biệt
d. Tốc độ hiển thị nhanh
3. Phương thức di chuyển nào sau đây cho phép giữ lại thông tin từ web form xuất phát :
a. Respose.Redirect
b. Server.Transfer
c. Server.Execute
d. Cả 3 phương thức trên
4. Ứng dụng web không sử dụng các control nào :
a. Windows controls
b. Server controls
c. HTML controls
d. User controls
e. Custom controls
5. Phương thức nào sau đây chắc chắn không làm thay đổi dữ liệu :
a. ExecuteNonQuery
b. ExecuteReader
c. ExecuteScalar
d. ExecuteReadOnly
6. Lệnh SQL nào dùng để thêm một dòng mới vào một bảng trong cơ cở dữ liệu :
a. INSERT NEW
b. ADD ROW
c. INSERT ROW


d. INSERT INTO
7. Chúng ta sử dụng giao dịch khi :
a. Lập trình các ứng dụng thương mại điện tử
b. Lập trình các ứng dụng cơ sở dữ liệu phức tạp
c. Thực hiện nhiều lệnh cơ sở dữ liệu như một lệnh
d. Cả 3 câu trên đều đúng
8. Mức cô lập (isolation level) cao nhât của một giao dịch là :
a. RepeatableRead
b. Serializable
c. Chaos
2 | P a g e
d. ReadUncommitted
e. ReadCommitted
9. Thành phần nào không phải là thuộc tính của đối tượng Dat Adapter :
a. SQLCommand
b. DeleteCommand
c. UpdateCommand
d. InsertCommand
10. Yếu tố nào sau đây không phải là sự khác biệt giữa Web form và Windows form :
a. Các loại control trên form
b. Chu trình sống
c. Giao diện người dùng
d. Khả năng lưu trữ dữ liệu
11. Các bước để tạo nơi lưu trữ một ứng dụng ASP.Net là:
a. Tạo thư mục vật lý, tạo thư mục ảo, tạo subweb
b. Tạo thư mục ảo, tạo subweb, tạo thư mục vật lý
c. Tạo thư mục ảo, tạo thư mục vật lý, tạo subweb
d. Tạo thư mục vật lý, tạo subweb, tạo thư mục ảo
12. Các sự kiện Application và Section diễn ra theo trình tự nào :
a. Application_Start, Application_End, Section_Start, Section_End

b. Application_Start, Section_Start, Section_End, Application_End
c. Section_Start, Application_Start, Application_End, Section_End
d. Section_Start, Section_End, Application_Start, Application_End
13. Các trình tự trên web form diễn ra theo trình tự nào :
a. Page_Init, Page_Load, Page_Unload, Page_Dispose
b. Page_Load, Page_Init, Page_Unload, Page_Dispose
c. Page_Load, Page_Unload, Page_Init, Page_Dispose
d. Page_Load, Page_Init, Page_Dispose, Page_Unload
14. Cookie là :
a. Một chuỗi kí tự trong dòng địa chỉ web
b. Một file nằm trên server
c. Một file nằm trên Client
d. Một file XML
15. Ứng dụng email như Outlook Express là loại ứng dụng :
a. Internet
b. Web
c. Ngang hàng (peer-to-peer)
d. Cả 3 câu trên đều sai
16. Ứng dụng web :
a. Chỉ chạy trên một máy đơn
3 | P a g e
b. Có kiến trúc Client/Server
c. Là tất cả ứng dụng có sử dụng Internet
d. Cả 3 câu trên đều đúng
17. Địa chỉ URL của ứng dụng web được xác định bởi :
a. Thư mục ảo của ứng dụng
b. Thư mục vật lý của ứng dụng
c. Tên của Project
d. Cả 3 câu đều sai
18. Ta có thể lưu trữ dữ liệu chung cho tât cả người dùng ở :

a. Biến Application
b. Biến Section
c. View State
d. Cả 3 nơi nói trên
19. Dữ liệu trên các control của web form được lưu trữ ở :
a. View state
b. Biến Application
c. Biến Section
d. Các biến toàn cục
20. Từ khóa nào không phải là từ khóa thứa kế trong C# :
a. new
b. protected
c. inherit
d. override
21. Dùng lệnh nào sau đây để di chuyển đến trang web hello.html :
a. Server.Transfer ("hello.html")
b. Response.Redirect ("hello.html")
c. Server.Execute ("hello.html")
d. Tất cả đều đúng
22. Control Kiểm chứng nào không có trong ASP.NET :
a. RequiredValidator
b. CompareValidator
c. RangeValidator
d. CustomValidator
23. Phương thức nào sau đây của Data Set dùng để cập nhật dữ liệu : (Dataset Ko cap nhat duoc
du lieu)
a. Fill
b. AcceptChanges
c. RejectChange
d. Update

4 | P a g e
24. Lệnh dùng để hoàn tất một giao dịch là :
a. Finish
b. Commit
c. Rollback
d. Update
25. Phát biểu nào sai :
a. Phần thực thi của ứng dụng web chạy dưới sự điều khiển của web server
b. Thông tin được truyền từ server đến client bằng giao thức FTP
c. Ứng dụng web không cần phải được cài đặt trên phía client
d. Dịch vụ web là một loại ứng dụng Internet
26. Tên của một thư mục ảo có dạng :
a. c:\myproject
b. />c. aspnet://myproject
d. c:\myproject\aspnet
1 - Ngôn ngữ nào dưới đây có thể được dùng để viết các kịch bản đằng Server trong ASP.NET ?
[a] C#
[b] C
[c] Visual Basic
2 - Để chạy trang ASP .NET bạn cần có tối thiểu ?
[a] Java Virtual Machine
[b] Windows explorer
[c] Common Language Runtime
3 - Khi một trang .aspx được yêu cầu, kết quả xuất ra trên trình duyệt có dạng sau:
[a] HTML
[b] XML
[c] WML
4 - Khi biên dịch một ứng dụng ASP.Net, kết quả tạo ra có dạng nào ?
[a] EXE
[b] DLL

[c] COM
5 - Để viết ASP.Net code trên cùng trang với HTML bạn đặt khối lệnh trong thẻ nào ?
[a] < Script >
[b] < Body >
[c] < Head >
5 | P a g e
6 - Dùng Asp.net server control nào dưới đây để hiển thị văn bản trên trang Web ?
[a] < asp:label >
[b] < asp:button >
[c] < asp:listitem >
7 - Thẻ < asp:DropDownList > thay thế thẻ HTML nào dưới đây ?
[a] < Option >
[b] < Select >
[c] < List >
8 - Thẻ < asp:ListItem > thay thế thẻ HTML nào dưới đây ?
[a] < UL >
[b] < Option >
[c] < List >
9 - Sự kiện nào dưới đây phát sinh đầu tiên trong vòng đời một trang aspx
[a] Page_Init()
[b] Page_Load()
[c] Page_click()
10 - PostBack có cho Form nào dưới đây
[a] Winforms
[b] HTMLForms
[c] Webforms
11 - Trong .NET Framework, một Web page thuộc không gian tên nào dưới đây ?
[a] System.Web.UI.Page
[b] System.Windows.Page
[c] System.Web.Page

12 - Một điều khiển DataAdapter dùng phương thức nào dưới đây để nạp một DataSet
[a] Fill ( )
[b] ExecuteQuery ( )
[c] Read ( )
13 - Một dự án ASP.NET có thể có bao nhiêu tệp cấu hình?
[a] Nhiều hơn một
[b] Chỉ một
[c] Không
14 - Một điều khiển người dùng UserControl được đăng ký như thế nào?
6 | P a g e
[a] TagPrefix, TagName
[b] Source, TagPrefix
[c] Src, TagName, TagPrefix
15 - Tệp Global.asax được dùng để
[a] Cài đặt các sự kiện mức ứng dụng và mức phiên
[b] Khai báo các biến toàn cục
[c] Không có tác dụng gì
16 - Tệp Web Usercontrol có đuôi gì ?
[a] Ascx
[b] Asmx
[c] Aspx
17 - Mặc định một biến Session có thời hạn TimeOut là bao lâu ?
[a] 20 Sec
[b] 20 Min
[c] 1 hr
18 - Phát biểu nào dưới đây là đúng ?
[a] IsPostBack là một phương thức của lớp System.UI.Web.Page
[b] IsPostBack là một phương thức của lớp System.Web.UI.Page
[c] IsPostBack là một thuộc tính chỉ đọc của lớp System.Web.UI.Page
19 - Bạn có thể quản trị trạng thái trong ứng dụng asp.net sử dụng

[a] Các đối tượng Session
[b] Các đối tượng Application
[c] Tất cả các đối tượng trên
20 - Có thể thiết lập chiều dài tối đa cho một TextBox từ chương trình.
a) Đúng
b) Sai
21 - Bạn có thể quản trị trạng thái trong ứng dụng asp.net sử dụng
a) Các đối tượng Session
b) Các đối tượng Application
c) Viewstate
d) Cookies
e) Tất cả các đối tượng trên
câu 1 : khi tạo một trang web, các HTML được sinh ra tự động. nếu mở trang web đó trong
chế độ source view thì các điều khiển của trang web sẻ nằm trong cặp thẻ
1. <head> </head>
7 | P a g e
2. <script> </script>
3. <style> </style>
4. <div> </div>
câu 2 : nếu mã lệnh và điều khiển của một trang web được đặt trên cùng một trang, thì mã
lệnh sẻ được đặt trong cặp thẻ
1. <script> </script>
2. <style> </style>
3. <form> </form>
4. phải đặt mã lệnh trong một trang riêng
câu 3 : trong các biến cố Page_load (), Page_Prerender () và Click () thì thứ tự thực thi của
chúng là
1. Page_load (), Page_Prerender () và Click ()
2. Page_Prerender (), Page_load () và Click ()
3. Page_load (), Click () và Page_Prerender ()

4. Click (), Page_load () và Page_Prerender ()
câu 4: một trang web được thiết kế gồm tất cả các biến cố của server control là Post-back
event, Cashed event, Validatinon event thì thứ tự thực hiện của chúng là
1. Post-back event, Cashed event, Validatinon event
2. Validatinon event, Post-back event, Cashed event
3. Validatinon event, Cashed event, Post-back event
4. các biến cố xử lý theo thứ tự từ trên xuống và từ trái sang phải như khi chúng xuất hiện trong
một trang web
câu 5 : Viewstate dùng để
1. lưu thông tin của một biến cố nào đó trong trang web ở dạng ẩn và được mã hóa
2. không được dùng để lưu thông tin cho biến mà được dùng cho mục đích khác
3. lưu thông tin của một trang web ở dạng ẩn và được mã hóa
4. lưu thông tin của một trang web ở dạng ẩn và không được mã hóa
câu 6 : Query string dùng để
1. truyền thông tin từ ứng dụng này đến ứng dụng khác trên internet
2. truyền thông tin từ web form này đến web form khác trong một ứng dụng
3. lưu thông tin bí mật của người dùng, như password chẳng hạn
4. lưu thông tin để các ứng dụng của tất cả mọi người truy cập tới nó sử dụng
câu 7 : Cookie dùng để
1. lưu thông tin từ phía client
2. lưu thông tin từ phía server
3. lưu thông tin từ cả hai phía server/client
4. cách sử dụng giống như query string
câu 8 : Session dùng để
1. lưu dữ liệu cho một ứng dụng
2. lưu dữ liệu cho phiên làm việc
8 | P a g e
3. dùng để lưu dữ liệu là các đối tượng
4. dùng để lưu dữ liệu là các biến cố có kiểu dữ kiệu cơ bản : int, double, string,
câu 9 : Aplication dùng để

1. lưu dữ liệu cho một phiên làm việc
2. lưu dữ liệu cho một trang hiện tại
3. lưu dữ liệu cho một ứng dụng
4. dùng để lưu dữ liệu là các ứng dụng
câu 10 : Profile dùng để
1. giống như cookie hay session
2. dùng để lưu trữ dữ liệu tạm thời cho một phiên làm việc
3. dùng để lưu trữ dữ liệu toàn cục
4. các câu trên điều sai
câu 11 : kiểm chứng nào sau đây được sử dụng để kiểm tra dữ liệu nhập có theo một định
dạng nào đó
1. RequiredFieldValidator
2. RegularExpressionValidator
3. CompareValidator
4. CustomValidator
câu 12 : kiểm chứng nào sau đây được sử dụng để kiểm tra dữ liệu nhập
1. RequiredFieldValidator
2. RangeValidator
3. CustomValidator
4. các câu trên điều sai
câu 13 : phát biểu nào sau đây là đúng
1. tất cả điều khiển danh sách BulletedList, CheckBoxList, DropDownList, ListBox và
RadioButtonList cho phép chọn một hay nhiều phần tử trong đó
2. chỉ có các điều khiển CheckBoxList, DropDownList, ListBox và RadioButtonList cho phép chọn
một hay nhiều phần tử trong đó
3. chỉ có điều khiển ListBox cho phép chọn một hay nhiều phần tử trong đó
4. chỉ có các điều khiển CheckBoxList, RadioButtonList cho phép chọn một hay nhiều phần tử
trong đó
câu 14 : phát biểu nào sau đây là đúng
1. mỗi điều khiển server có các sự kiện của riêng nó không thể thay đổi được

2. bất kỳ điều kiển server nào cũng có thể thay đổi sự kiện của riêng nó thành sự kiện khác
3. chỉ có thể thay đổi sự kiện của các điều khiển TextBox, DropDownList, ListBox, RadioButton và
CheckBox thành sự kiện post-back
4. chỉ có thể thay đổi sự kiện của các điều khiển Button, Link Button, Image Button thành sự kiện
Cached
câu 15 : các điều khiển dữ liệu GridView, DataList và Repeater có đặt tính sau
1. tất cả có thể hiển thị, sửa, xóa, sắp xếp, chọn và phân trang dữ liệu
9 | P a g e
2. chỉ có GridView có thể hiển thị, sửa, xóa, sắp xếp, chọn và phân trang dữ liệu
3. chỉ có GridView có thể hiển thị, sửa, xóa, sắp xếp, chọn và phân trang dữ liệu. Các điều khiển
còn lại thì chỉ có hiển thị, sửa và chọn lọc dữ liệu
4. tất cả chỉ có thể hiển thị, sửa và chọn lọc dữ liệu
10 | P a g e
Q.1) The .NET Framework provides a runtime environment called ?

A. RMT
B. CLR (your answer)
C. RCT
D. RC
Q.2) In ASP.NET in form page the object which contains the user name is ______ ?

A. Page.User.Identity (your answer)
B. Page.User.IsInRole
C. Page.User.Name
D. None of the Above
Q.3) Find the term: The .NET framework which provides automatic memory management using a
technique called ______________ ?

A. Serialization
B. Garbage Collection (your answer)

C. Assemblies
D. Overriding
Q.4) Which of the following denote ways to manage state in an ASP.Net Application?

A. Session objects
B. Application objects
C. ViewState (your answer)
D. All the Above (correct answer)
Q.5) What is the base class from which all Web forms inherit?

11 | P a g e

A. Master Page
B. Page Class (your answer)
C. Session Class
D. None of the Above
Q.6) WSDL stands for _________________ ?

A. Web Server Description Language
B. Web Server Descriptor Language
C. Web Services Description Language (your answer)
D. Web Services Descriptor Language
Q.7) Which of the following must be done in order to connect data from some data resource to Repeater
control?

A. Set the DataSource property
B. Call the DataBind method
C. Both A) and B) (your answer)
D. None of the Above
Q.8) Which of the following is FALSE?


A. ASP.NET applications run without a Web Server
B. ASP+ and ASP.NET refer to the same thing
C. ASP.NET is a major upgrade over ASP
D. None of the Above (your answer)
Q.9) Which of the following transfer execution directly to another page?

A. Server.Transfer (your answer)
12 | P a g e
B. Response.Redirect
C. Both A) and B)
D. None of the Above
Q.10) If one has two different web form controls in a application and if one wanted to know whether the
values in the above two different web form control match what control must be used?

A. DataList
B. GridView
C. CompareValidator (your answer)
D. Listview
Q.11) Which of the following is used to send email message from my ASP.NET page?

A. System.Web.Mail.MailMessage
B. System.Web.Mail.SmtpMail
C. Both A) and B) (your answer)
D. None of the Above
Q.12) In my .NET Framework I have threads. Which of the following denote the possible priority level for
the threads?

A. Normal (your answer)
B. AboveNormal

C. Highest
D. All the Above (correct answer)
Q.13) In .NET the operation of reading metadata and using its contents is known as ______?

A. Reflection (your answer)
B. Enumeration
C. Binding
D. Serialization
13 | P a g e
Q.14) In ASP.NET the < authorization > section contain which of the following elements?

A. < deny >
B. < allow >
C. Both A) and B) (your answer)
D. None of the Above
Q.15) The type of code found in Code-Behind class is ________ ?

A. Server-side code (your answer)
B. Client-side code
C. Both A) and B)
D. None of the above
Q.16) Common type system is built into which of the following:

A. CLR (your answer)
B. RCT
C. RCW
D. GAC
Q.17) The actual work process of ASP.NET is taken care by _____________?

A. inetinfo.exe

B. aspnet_isapi.dll
C. aspnet_wp.exe (your answer)
D. None of the Above
Q.18) Which of the following allow writing formatted output?
14 | P a g e

A. Response.Write()
B. Response.Output.Write() (your answer)
C. Both A) and B)
D. None of the Above
Q.19) Which of the following denote the property in every validation control?

A. ControlToValidate property
B. Text property
C. Both A) and B) (your answer)
D. None of the Above
Q.20) How many classes can a single .NET DLL contain?

A. One
B. Two
C. None
D. Many (your answer)
Q.21) Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved.
Choose the correct option from below:

A. One must override the method ReceiveMessage (correct answer)
B. One must override the method InitializeMethod
C. Both A) and B)
D. One must override the method ProcessMessage (your answer)
Q.22) Which of the following can be used to add alternating color scheme in a Repeater control?


A. AlternatingItemTemplate (your answer)
B. DataSource
15 | P a g e
C. ColorValidator
D. None of the Above
Q.23) Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is
called ______________ ?

A. Serialization (your answer)
B. Threading
C. RCW
D. AppDomain
Q.24) The technique that allow code to make function calls to .NET applications on other processes and on
other machines is

A. .NET Threading (correct answer)
B. .NET Remoting (your answer)
C. .NET RMT
D. None of the above
Q.25) The namespace within the Microsoft .NET framework which provides the functionality to implement
transaction processing is

A. System.EnterpriseServices (your answer)
B. System.Security
C. System.Diagnostics
D. System.Data
Q.26) Which of the following method is used to obtain details about information types of assembly?

A. GetTypes

B. GetType
C. Both A) and B) (your answer)
D. None of the Above
16 | P a g e
Q.27) Which of the following is TRUE about Windows Authentication in ASP.NET?

A. Automatically determines role membership (your answer)
B. Role membership determined only by user programming
C. ASP.NET does not support Windows Authentication
D. None of the Above
Q.28) What tags one need to add within the asp:datagrid tags to bind columns manually?

A. Set AutoGenerateColumns Property to false on the datagrid tag (your answer)
B. Set AutoGenerateColumns Property to true on the datagrid tag
C. It is not possible to do the operation
D. Set AutomaunalColumns Property to true on the datagrid tag
Q.29) Which method do you invoke on the DataAdapter control to load your generated dataset with data?

A. Load ( )
B. Fill( ) (your answer)
C. DataList
D. DataBind
Q.30) In ASP.NET the sessions can be dumped by using

A. Session.Dump
B. Session.Abandon (your answer)
C. Session.Exit
D. None of the Above
Q.31) ASP.NET is a _________________________ ?


A. Server Side Scripting Technology (your answer)
17 | P a g e
B. Client Side Scripting Technology
C. Programming Language
D. Database Programming Language same as SQL.
Q.32) What is ASP+ ?

A. ASP+ is the same as ASP.NET. (your answer)
B. ASP+ is the Next version of ASP.NET (your answer)
C. ASP+ is just an early name used by Microsoft when they developed ASP.NET. (missed)
D. ASP+ is a programming Language Specially developed for ASP.NET
E. ASP+ is the new Web Server by Microsoft after IIS.
Q.33) ASP stands for ____________ ?

A. Active Side Pages
B. Active Script Pages
C. Active Server Page (your answer)
D. Active Script Program
Q.34) ASP.NET provides increased performance by ____________________?

A. supporting active variables.
B. running CLR. (your answer)
C. running compiled code. (correct answer)
D. using IIS Server
Q.35) What is the extension of ASP.NET web pages files

A. .ashx
B. .aspx (your answer)
C. .asp
D. .ascx

18 | P a g e
19 | P a g e
1) Which of the following languages can be used to write server side scripting in ASP.NET?
a) C-sharp
b) VB
c) C++
d) (your answer) a and b - correct answer
2) When an .aspx page is requested from the web server, the out put will be rendered to browser in following
format.
a) (your answer) HTML - correct answer
b) XML
c) WML
d) JSP
3) The Asp.net server control, which provides an alternative way of displaying text on web page, is
a) (your answer) < asp:label > - correct answer
b) < asp:listitem >
c) < asp:button >
4) The first event to be triggered in an aspx page is.
a) Page_Load()
b) (your answer) Page_Init() - correct answer
c) Page_click()
5) Postback occurs in which of the following forms.
a) Winforms
b) HTMLForms
c) (your answer) Webforms - correct answer
20 | P a g e
6) What namespace does the Web page belong in the .NET Framework class hierarchy?
a) (your answer) System.web.UI.Page - correct answer
b) System.Windows.Page
c) System.Web.page

7) Which method do you invoke on the Data Adapter control to load your generated dataset?
a) (your answer) Fill( ) - correct answer
b) ExecuteQuery( )
c) Read( )
8) How do you register a user control?
a) (your answer) Add Tag prefix, Tag name
b) Add Source, Tag prefix
c) Add Src, Tagprefix, Tagname - correct answer
9) Which of the following is true?
a) User controls are displayed correctly in the Visual Studio .NET Designer
b) Custom controls are displayed correctly in VS.Net Designer - correct answer
c) (your answer) User and Custom controls are displayed correctly in the Visual Studio .NET
Designer.
10) To add a custom control to a Web form we have to register with.
a) TagPrefix
b) Name space of the dll that is referenced
c) Assemblyname
d) (your answer) All of the above - correct answer
21 | P a g e
11) Custom Controls are derived from which of the classes
a) System.Web.UI.Webcontrol
b) (your answer) System.Web.UI.Customcontrol
c) System.Web.UI.Customcontrols.Webcontrol - correct answer
12) How ASP.Net Different from classic ASP?
a) Scripting is separated from the HTML, Code is interpreted seperately
b) (your answer) Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can
be executed on server - correct answer
c) Code is separated from the HTML and interpreted Code is interpreted separately
13) What's the difference between Response.Write() andResponse.Output.Write()?
a) Response.Output.Write() allows you to flush output

b) Response.Output.Write() allows you to buffer output
c) (your answer) Response.Output.Write() allows you to write formatted output - correct answer
d) Response.Output.Write() allows you to stream output
14) Why is Global.asax is used?
a) Implement application and session level events - correct answer
b) (your answer) Declare Global variables
c) No use
15) There can be more than 1 machine.config file in a system
a) True - correct answer
b) (your answer) False
22 | P a g e
16) What is the extension of a web user control file?
a) .Asmx
b) (your answer) .Ascx - correct answer
c) .Aspx
17) Which of the following is true?
a) IsPostBack is a method of System.UI.Web.Page class
b) (your answer) IsPostBack is a method of System.Web.UI.Page class
c) IsPostBack is a readonly property of System.Web.UI.Page class - correct answer
18) The number of forms that can be added to a aspx page is.
a) (your answer) 1 - correct answer
b) 2
c) 3
d) More than 3
19) How do you manage states in asp.net application
a) Session Objects
b) Application Objects
c) Viewstate
d) (your answer) All of the above - correct answer
20) Which property of the session object is used to set the local identifier?

a) (your answer) SessionId
23 | P a g e
b) LCID - correct answer
c) Item
d) Key
21) Select the caching type supported by ASP.Net
a) Output Caching
b) DataCaching
c) (your answer) a and b - correct answer
d) none of the above
22) Where is the default Session data is stored in ASP.Net?
a) InProcess - correct answer
b) StateServer
c) (your answer) Session Object
d) al of the above
23) Select the type Processing model that asp.net simulate
a) (your answer) Event-driven - correct answer
b) Static
c) Linear
d) Topdown
24) Does the EnableViewState allows the page to save the users input on a form?
a) (your answer) Yes - correct answer
b) No
24 | P a g e
25) Which DLL translate XML to SQL in IIS?
a) SQLISAPI.dll - correct answer
b) (your answer) SQLXML.dll
c) LISXML.dll
d) SQLIIS.dll
26) What is the maximum number of cookies that can be allowed to a web site?

a) 1
b) 10
c) 20 - correct answer
d) (your answer) More than 30
27) Select the control which does not have any visible interface.
a) Datalist
b) DropdownList
c) (your answer) Repeater - correct answer
d) Datagrid
28) How do you explicitly kill a user session?
a) Session.Close( )
b) Session.Discard( )
c) (your answer) Session.Abandon - correct answer
d) Session.End
e) Session.Exit
29) Which of the following is not a member of ADODBCommand object?
a) ExecuteReader
25 | P a g e
b) ExecuteScalar
c) (your answer) ExecuteStream
d) Open - correct answer
e) CommandText
30) Which one of the following namespaces contains the definition for IdbConnection?
a) System.Data.Interfaces
b) System.Data.Common
c) System.Data - correct answer
d) (your answer) System.Data.Connection
Answer
1. The best way to delimit ASP.Net code from HTML code in your pages is by using tags.
Answer: < Script >

2. < asp : listitem > tag replaces which of the following HTML tags
Answer: < Option >
3. Why is Global.asax is used for ?
Answer: To implement application & Session level events
4. What is the significance of Response.AddHeaders( )
Answer: Adds HTTP Headers to output stream
5. What is the Full Form of WSDL
Answer: Web Service Description Language
6. what namespace does the Web page belong in the .NET Framework class hierarchy?
Answer: System.web.UI.Page
7. Does the “EnableViewState” allows the page to save the users input on a form
Answer: Yes
8. What’s the difference between Response.Write() andResponse.Output.Write()?
Answer: Response.Output.Write() allows you to write formatted output
9. To add a custom control to a Web form we have to register with
Answer: All of the above
10. Which method displays the custom control
Answer: Render

×