Download murachs_aspnet4_csha..

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Semantic Web wikipedia , lookup

Transcript
ASP.NET 4 Web Programming with C# 2010: Chapter 1
The essence of ASP.NET web programming
COMPLETION
1. To start a web application, you enter its URL into your ___________.
ANS:
web browser
browser
PTS: 1
2. A web application consists of one or more _____________.
ANS:
web pages
pages
PTS: 1
3. A web page or HTML document that’s the same each time it is requested is called a ____________.
ANS:
static web page
static page
PTS: 1
4. A web application runs on a server computer under the control of ____________ software.
ANS: web server
PTS: 1
5. Internet Information Services (IIS) is the ___________ for ASP.NET applications.
ANS: web server
PTS: 1
6. When a user interacts with a control on a web page that sends the page back to the server, it is known
as a _________.
ANS: postback
PTS: 1
7. A web page that changes based on user entries or user interactions is known as a ____________.
ANS:
dynamic web page
dynamic page
PTS: 1
8. When the user clicks on a button that posts the current web page back to the server and the server
returns the response, the entire process is known as a ___________.
ANS: round trip
PTS: 1
9. A URL consists of the protocol, domain name, _________, and file name.
ANS: path
PTS: 1
10. If the file name is omitted in a URL, Internet Information Services will look for one of several
_________ files.
ANS: default
PTS: 1
11. A web server processes HTTP requests and returns ______________.
ANS: HTTP responses
PTS: 1
12. The .NET Framework consists of the Common Language Runtime and the __________.
ANS: class library
PTS: 1
13. When you develop an ASP.NET application, the aspx files contain HTML and _________.
ANS: asp tags
PTS: 1
14. When you develop an ASP.NET application, the C# code for a web page is stored in a
______________.
ANS: code-behind file
PTS: 1
15. When an ASP.NET 4 page is requested for the first time, the related files are processed and compiled
into an __________.
ANS: assembly
PTS: 1
16. When a web page is sent from the server to the browser, the page consists entirely of ______.
ANS: HTML
PTS: 1
MULTIPLE CHOICE
1. The only software component that’s required to run a web application on a client is
a. a web server
b. an application server
ANS: C
c. a web browser
d. a compiler
PTS: 1
2. The protocol that’s used by a web browser and a web server to communicate in a web application is
a. HTML
b. HTTP
ANS: B
c. DBMS
d. IIS
PTS: 1
3. Unlike a static web page, a dynamic web page
a.
b.
c.
d.
is created in response to an HTTP request
is defined by a web form
consists of HTML
can’t be displayed in a web browser
ANS: B
PTS: 1
4. An HTTP response contains
a.
b.
c.
d.
the address of the browser
the HTML document
the address of the browser and the HTML document
the address of the browser, the HTML document, and ASP tags
ANS: C
PTS: 1
5. When a dynamic web page is requested, the web server passes the request to
a. the operating system
b. the browser
ANS: D
c. the web application
d. the application server
PTS: 1
6. HTTP is known as a stateless protocol because
a. after an application generates a web page, the data for the page is discarded
b. after the web page generated by an application is returned to the client in an HTTP
response, the session ends
c. the browser that sends an HTTP request for an application has no way of knowing what
server was used to process previous requests for the application
d. the server that receives an HTTP request for a web page has no way to associate the
browser that sent the request with its previous requests
ANS: D
PTS: 1
7. To maintain the state of an application, ASP.NET provides
a. view state and session state
b. profiles
ANS: D
c. application state
d. all of the above
PTS: 1
8. The file that contains the HTML code for a web form is the
a. code-behind file
b. aspx file
ANS: B
c. assembly file
d. DLL file
PTS: 1
9. The file that contains the C# code for a web form is the
a. code-behind file
b. aspx file
ANS: A
c. assembly file
d. DLL file
PTS: 1
10. The component of the .NET Framework that manages the execution of .NET programs is the
a. Visual Studio .NET compiler
b. Common Type System
ANS: C
c. Common Language Runtime (CLR)
d. Operating System
PTS: 1
11. The main purpose of the .NET Framework Class Library is to
a.
b.
c.
d.
provide the classes that are used for developing .NET applications
provide the classes that are needed for developing database applications
manage the execution of .NET applications
manage the development of the web pages
ANS: A
PTS: 1
12. When IIS receives an HTTP request for an ASP.NET page, it passes the request on to
a. the web server
b. ASP.NET
ANS: B
c. the operating system
d. the web application
PTS: 1
13. When a web page is requested for the second time,
a.
b.
c.
d.
the aspx file is divided into two C# classes.
the two C# classes are compiled into a single assembly.
one of the two DLLs that have been generated inherits the other one.
ASP.NET creates an instance of the page from the page’s final assembly.
ANS: D
PTS: 1
14. If you’re working alone on an application and you don’t have access to a server computer, you’re
using
a. a standalone environment
b. a local area network environment
c. an Internet environment
ANS: A
PTS: 1
15. To develop ASP.NET applications in a local area network development environment, you must have
all but one of the following installed on the server. Which one is it?
a. Windows 2003 Server or later
b. the .NET Framework
ANS: D
c. IIS 6.0 or later
d. Visual Studio .NET
PTS: 1
16. Which part of the following URL identifies the server that’s hosting the web site?
http://localhost/MainStore/Hours.aspx
a. http
b. localhost
ANS: B
c. MainStore
d. Hours.aspx
PTS: 1
17. If you aren’t going to use one of the professional editions of Visual Studio, which of the following
won’t you need on your PC for developing ASP.NET 4 database applications?
a.
b.
c.
d.
Visual Web Developer 2010 Express Edition
SQL Server 2008 Express Edition
Microsoft .NET Framework 4
Front Page Server Extensions
ANS: D
PTS: 1