Tìm kiếm:
TRANG NHÀ
Giới thiệu VNEDU.ORG
Điều khoản và bản quyền
Liên lạc VNEDU
TRẮC NGHIỆM TRỰC TUYẾN
---Công Cụ:---
Soạn Biểu thức
Bảng màu HTML
Ký hiệu đặc biệt 01
Ký hiệu đặc biệt 02
Ký hiệu đặc biệt 03
Ký hiệu đặc biệt 04
Ký hiệu đặc biệt 05
Ký hiệu đặc biệt 06
Ký hiệu đặc biệt 07
Ký hiệu đặc biệt [Toán]
Tin Học   ||  Căn Bản    Văn Phòng    Hệ Thống - Mạng    Phần Mềm Ứng Dụng    Kỹ thuật số    Lập trình    SQL  

Trắc Nghiệm ASP.NET (English) - Bài 23
Ngày làm bài: Hôm nay lúc 18:44:55 (Server time)
Số câu hỏi: 10.   Tổng điểm: 10
Yêu cầu hoàn thành: 60 phút.
Thời gian còn lại: 
Cỡ chữ câu hỏi:  Cỡ chữ đáp án:


1-
You are creating an ASP.NET application for an online payment service. The service allows users to pay their bills electronically by using a credit card.
The application includes a payment page named Payment.aspx. This page contains a form for entering payes, payment amount, and credit card information. When a user needs to submit a new billing address to a payee, the page form allows the user to provide the new address information. If the user indicates a change of address, ProcessAddressChange.aspx page processes the request for a change of address but does not provide any display information for the user. When the requested processing is complete. Payment.aspx displays status results to the user.
You need to add a line of code to Payment.aspx to perform the functionality in ProcessAddressChange.aspx
Which line of code should you use?
  A - 
Reponse.WriteFile("ProcessAddressChange.aspx");
  B - 
Server.Execute("ProcessAddressChange.aspx");
  C - 
Response.Redirect("ProcessAddressChange.aspx");
  D - 
Server.Transfer("ProcessAddressChange.aspx",True);
2-
You are a developer working on a content management application. When users submit a piece of content they are required to classify it by selecting its type from a dropdown list. In the next version of the application it has been determined that the users will be allowed to select multiple classifications from the list for each piece of content.
How would change the DropDownList to support this functionality?
  A - 
Set the AutoPostBack of the DropDownList to true. Write code so that when the user makes a selection and the control posts back to the server another copy of the drop down list is generated and placed on the page below the first.
  B - 
Replace the DropDownList with a Listbox control and set the SelectionMode to Multiple.
  C - 
Change the DropDownList to an ArrayList control and set the SelectionMode to Multiple.
  D - 
Change the selection of the DropDownList to Multiple and set the rows property to 5 to show five options at time.s
3-
You are intersested in examining the data that is posed to the Web server. What trace section can you use to see this information?
  A - 
Form Collection
  B - 
Control Tree
  C - 
Headers Collection
  D - 
Server Variables.
4-
You are a developer working on a News information site. The marketing department has asked that you collect data about which pages are visited based on the time that a user first hits the site. There is no security on the site, so a user can enter the site at any page.
What is the best way to establish the date and time of the user’s visit to the site?
  A - 
Place the following code in the Global.asax file:
private void Session_Start(Object sender, EventArgs e)
{
Session["EnterSite Time"] =Date Time.Now;
}
  B - 
Place the following code in the page load event of every page:
if(Session["EnterSite Time"] = = null)
{
Session["EnterSite Time"] =Date Time.Now;
}
  C - 
Place the following code in the Global.asax file:
private void Application_Start(Object sender, EventArgs e)
{
Session["EnterSite Time"] =Date Time.Now;
}
  D - 
Place the following code in the page load event of every page:
if(Application["EnterSite Time"] = = null)
{
Application["EnterSite Time"] =Date Time.Now;
}
5-
You are a developer working on an ASP.Net application that allows customers to shop for different types of automobiles. Based on whether the user picks a truck or a car you need to load a different calculator function to excute client-side on the browser.
How would you send the correct JavaScript function to the browser?
  A - 
Page.RegisterClientScriptBlock("Calculator" . strJSCalcCode);
  B - 
Session.RegisterClientScriptBlock("Calculator" . strJSCalcCode);
  C - 
Response.RegisterClientScriptBlock("Calculator" . strJSCalcCode);
  D - 
Request.RegisterClientScriptBlock("Calculator" . strJSCalcCode);
6-
You are a developer working on a student enrollment application. When students log into the site they use their student ID, which is an integer and an alpha numeric password. Once they are authenticated their student numbers are stored in the Session object.
You are working on a page that accesses the student ID from the Session object but every time you attempt to compile the page you get the following error:
Cannot implicitly convert type ’object’ to ’int’
Visual Studio flags the following line of code for you
int iStudentID = Session["StudentID"];
How would you fix this line of code?
  A - 
int iStudentID = Session["StudentID"]. ToInteger();
  B - 
int iStudentID = (int) Session["StudentID"]);
  C - 
int iStudentID = Session.GetInt32["StudentID"]);
  D - 
int iStudentID = CInt(Session["StudentID"]);
7-
You are in the process of upgrading an existing ASP application to ASP.NET by converting pages one by one to the new architecture. The application currently uses an SP.NET page to request the user’s first name, which is stored in a session variable with this line of code:
Session["FirstName"] = txtFirstName.Text;
You run the application and enter a first name on the ASP.NET page. When you browse to an existing ASP page that uses the FirstName session variable, the first name is blank.
What could be the problem?
  A - 
You do not have cookies enabled on your computer.
  B - 
The ASP and ASP.NET engines do not share session state or application state
  C - 
The ASP page needs to explicity retrieve the Value property of the Session object
  D - 
You must explicitly use the Page.Session property to store shared session state
8-
You are developing an online bookstore application in Visual C# .NET. Your application needs to store the most recent book viewed by the user and show the recently viewed book’s details in the lower part of the Web pages whenever the user accesses the Web site. You do not want to use server-side resources to store the book ISBN. Which of the following state-management techniques will help you accomplish this?
  A - 
Cookies
  B - 
View state
  C - 
Hidden fields
  D - 
Sessions
9-
You are developing an application to take orders over the Internet. When a user posts back the order form, you first check to see whether she is a registered customer of your company. If not, you must transfer control to the Register.html page. Which method should you use to transfer it?
  A - 
Server.Execute("Register.html");
  B - 
Server.Transfer("Register.html");
  C - 
Response.Redirect("Register.html");
  D - 
Server.CreateObject("Register.html");
10-
You are developing an ASP.NET application using Visual C# .NET. In your ASPX page, you want to invoke and display a Visual C# .NET method named
DisplayProductName( ) when the page is rendered to the client. Which of the following code blocks should you choose to call the DisplayProductName( ) method?
  A - 
<script language= "C#">
Response.Write(DisplayProductNames());
</script>
  B - 
<script language= "C#" runat= "client">
  C - 
<%= DisplayProductNames()%>
  D - 
<%= DisplayProductNames():%>
 
[Người đăng: Thành Lãm - ST]
Ghé thăm Kênh của Vị Sư "hai lần chết đi sống lại"
Tu Si Chau Soc Thon

https://www.youtube.com/channel/UCoyC9WTTVR-M3qpTKKEXGnQ

Chau Soc Thon Official Channel


Phong Bảo Official
Phong Bao Official
Xem Nhiều nhất
Trắc Nghiệm Pascal - Bài 20
Trắc Nghiệm ASP.NET - Bài 12
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 16
Trắc Nghiệm ASP.NET - Bài 01
Trắc Nghiệm ASP.NET - Bài 03
Trắc nghiệm C++ - Bài 18
Trắc Nghiệm C# - Bài 53
Trắc Nghiệm ASP.NET - Bài 02
Trắc Nghiệm C# - Bài 42
Trắc Nghiệm Java - Bài 01
Trắc Nghiệm ASP.NET - Bài 04
Trắc Nghiệm Pascal - Bài 22
Trắc Nghiệm ASP.NET - Bài 13
Trắc Nghiệm ASP.NET - Bài 09
Trắc Nghiệm ASP.NET - Bài 08
Trắc nghiệm PHP - Bài 01
Trắc Nghiệm ASP.NET - Bài 06
Trắc Nghiệm ASP.NET - Bài 11
Trắc Nghiệm ASP.NET - Bài 05
Trắc Nghiệm ASP.NET - Bài 23
Đề Xuất
Trắc Nghiệm Java - Bài 15
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 48
Trắc Nghiệm Thiết Kế Web - Bài 15
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 03
Trắc Nghiệm Java - Bài 27
Trắc Nghiệm Pascal - Bài 08
Trắc Nghiệm Visual Basic - Bài 20
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 50
Trắc Nghiệm Thiết Kế Web (English) - Bài 49
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 74
Trắc Nghiệm Java - Bài 25
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 68
Trắc Nghiệm ASP.NET (English) - Bài 11
Trắc Nghiệm C Sharp - Bài 20
Trắc nghiệm Linux ( English ) - Bài 32
Trắc Nghiệm Pascal - Bài 31
Trắc Nghiệm ASP.NET - Bài 04
Trắc Nghiệm Thiết Kế Web (English) - Bài 38
Trắc Nghiệm Java - Bài 41
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 67
Phát triển hệ thống: TRƯƠNG HỮU ĐỨC - Phiên bản 3.0 - © Copyright 2013 - 2024 - VNEDU.ORG

free counters