CSC342, Web Technologies Kutztown University, Spring 2013 Mid

advertisement
CSC342, Web Technologies
Kutztown University, Spring 2013
Mid Term Exam 1 – Chapters 7 to 10 & 12 to 14
Name: _____________________________
NOTE: Start from question 22 if you have Id B.
(70%) Choose the BEST answer that completes each sentence.
Id: A
D 1. The ____ is a XML-based file that contains the logical structure of your site.
a. Menu control
b. SiteMapPath
c. TreeView
d. Web.sitemap
e. Web.config
B 2. The ____ control is able to display data in a horizontal or vertical manner using a drop-down or fold-out sub menus.
a. Explorer
b. Menu
c. SiteMapPath
d. TreeView
e. Web.sitemap
C 3. The ___ control presents itself as a series of links, often referred to as breadcrumbs.
a. Explorer
b. Menu
c. SiteMapPath
d. TreeView
e. Web.sitemap
D 4. ASP.NET4 supports the _____ for programmatic redirection. It sends an instruction to the browser to
fetch a new page.
a. DirectToPage
b. Goto
c. Hyperlink
d. Response.Redirect
e. Server.Transfer
E 5. The ____ is used to provide feedback to the user about any errors made in the page.
a. CompareValidator
b. RegularExpressionValidator
c. RangeValidator
d. RequiredFieldValidator
e. ValidationSummary
D 6. This is the FINAL validation that should be performed on your ASP.NET program.
a. Checking your code line by line
b. Performing Custom validation
c. Performing Client-side validation
d. Checking the IsValid property of the Page object
e. Using the ValidationSummary control
D 7. You can use this type of validation control to check for valid e-mail addresses.
a. CompareValidator
b. CustomValidator
c. RangeValidator
d. RegularExpressionValidator
e. RequireFieldValidator
CSC342, Web Technologies
Kutztown University, Spring 2013
C 8. An AJAX request by the client sends a ___ page to the server.
a. completed
b. full
c. partial
d. nice
e. necessary
C 9. If you are using AJAX functionality in many of your ASPX pages, place the ____ in the master page.
a. ContentTemplate
b. Script
c. ScriptManager
d. UpdatePanel
e. UpdateProgress
D 10. When using AJAX in ASP.NET4, you should place the ____ inside the UpdatePanel control.
a. ContentManager
b. ContentPage
c. ContentService
d. ContentTemplate
e. ContentWeb
B 11. AJAX enables your client-side web pages to exchange data with the server through ____ calls.
a. Anonymous
b. Asynchronous
c. Coordinated
d. Synchronized
e. Synchronous
A 12. This is a server-side static method that is defined in a page which can be used from client scripts.
a. Page Method
b. ScriptManager
c. Timer
d. UpdatePanel
e. UpdateProgress
E 13. A ___ database has the notion of tables.
a. inverted
b. network
c. normalized
d. object-oriented
e. relational
E 14. A table row in relational database terminology is also referred to as a(n)____.
a.
b.
c.
d.
e.
attribute
data
field
object
record
CSC342, Web Technologies
Kutztown University, Spring 2013
B 15. The four distinct types of operations when interacting with databases are grouped under the ____ acronym.
a. CRDW
b. CRUD
c. CURD
d. DISU
e. CUDW
C 16. The ____ statement enables you to retrieve data from one or more tables.
a. DELETE
b. INSERT
c. SELECT
d. UPDATE
e. WRITE
A 17. A ____in ASP.NET4 contains information necessary to connect to a database.
a. Connection String
b. Data source control
c. Data bind control
d. Data Pager
e. User control
D 18. A local database in ASP.NET4 has the ___ extension.
a. .aspx
b. .ascx
c. .dbo
d. .mdf
e. .mdb
B 19. The ____ controls can display flat and hierarchical data.
a. Data-binding
b. Data-bound
c. Data-source
d. Data-selection
e. Data-targeting
B 20. The ____ control enables paging and can be used to extend the ListView control
a. DataList
b. DataPager
c. DetailsView
d. Repeater
e. DataBinding
B 21. The ____ creates a matrix-like presentation of the data.
a. DetailsView
b. DataList
c. GridView
d. ListView
e. Repeater
CSC342, Web Technologies
Kutztown University, Spring 2013
C 22. LINQ stands for ____.
a. Language-in-the-Query
b. Language-inside-Query
c. Language-integrated-Query
d. Language-is-the-Query
e. Language-is-not-Queer
D 23. This is a technology to create a strongly typed object with an underlying database that enables you to
interact with the data in your database.
a. ADO.NET
b. AJAX
c. LINQ
d. EF
e. Using
A 24. The GridView, Repeater, and ListView are examples of ___ in ASP.NET.
a. data-bound controls
b. data-source controls
c. HTML controls
d. navigation controls
e. validations controls
B 25. The EntityDataSource is an example of ___ in ASP.NET.
a. data-bound controls
b. data-source controls
c. HTML controls
d. navigation controls
e. validations controls
B 26. With ADO.NET4 EF, you take a bunch of database tables and turn them into ____ that can be accessed in
your code.
a. data
b. objects
c. functions
d. information
e. string
C 27. The ADO.NET4 EF uses a mechanism called ____ that does not load sub-objects until you explicitly tell
them.
a. Delayed loading
b. Fast loading
c. Lazy loading
d. Late loading
e. Quick loading
E 28. The ____ clause in LINQ is used to filter the objects returned by a query.
a. count
b. from
c. orderby
d. sum
e. where
CSC342, Web Technologies
Kutztown University, Spring 2013
D 29. The ____ is a “best of all worlds” control that combines the rich feature set of other controls.
a. DetailsView
b. DataList
c. GridView
d. ListView
e. Repeater
A 30. A(n) ____ is created on the fly without defining them explicitly.
a. Anonymous type
b. DataSet
c. Entity set
d. Entity data source
e. LINQ query
A 31. In ASP.NET4 EF, names of ____ are pluralized.
a. entity sets
b. instances of entities
c. keys
d. objects
e. tables
E 32. ____ is the part of the .NET Framework programming languages that provides querying support against all
kinds of data collections, including objects, XML, and databases.
a. Anonymous type
b. DataSet
c. Entity set
d. Entity data source
e. LINQ
D 33. In ASP.NET4, an ADO.NET Entity has the ____ extension.
a. .ascx
b. .aspx
c. .cs
d. .edmx
e. .mdf
B 34. Which validation control does not contain validation rules “out of the box?”
a. CompareValidator
b. CustomValidator
c. RangeValidator
d. RequiredFieldValidator
e. RegularExpressionValidator
C 35. The ___ is generated only after the current page has been completely rendered by the .NET server.
a. AJAX
b. Entity Framework
c. DOM
d. jQuery
e. Master Page
CSC342, Web Technologies
Kutztown University, Spring 2013
(30%) Short answers.
1. (10%) Explain the DOM in terms of its model and what it represents. Why is the DOM important? Show an
example of a DOM starting from the <body> tag along with a container <div>, followed by <h2>, <div>, two <a>
tags, and <p> tag, and its corresponding code.
DOM stands for Document Object Model. In the DOM, documents are modeled as objects. The
model encompasses both the structure of a document as well as behavior of a document and
the objects which it is composed. The DOM provides a virtual map (hierarchical representation)
of the web page that is currently on the browser.
Document Object Model
<body>
<div>
<a>
<h2>
<body>
<a>
<p>
<div>
<h2>
<div>
<a>
Corresponding Code:
Corresponding Code:
<body>
<body>
<div>
<h2>
</h2>
</div>
<a></a>
<a></a>
<p>
</body>
<div>
<h2></h2>
<div>
<a></a>
<a></a>
<p></p>
</div>
</div>
</body>
<a>
<p>
CSC342, Web Technologies
Kutztown University, Spring 2013
2. (10%) When using an .aspx page in Visual Studio 2010, the user can access different types of controls from the
Toolbox. Choose one control from the Standard category of the Toolbox and explain its usage. Choose a databound control from the Data category of the Toolbox and explain its usage.
Example controls from the Standard category of the Toolbox includes the Button, Calendar,
CheckBox, DropDownList, Label, ListBox, RadioButton, TextBox, and Wizard.
Example data-bound control from the Data category of the Toolbox include the DataList,
DataPager, DetailsView, GridView, ListView, and Repeater.
CSC342, Web Technologies
Kutztown University, Spring 2013
3. (10%) Explain what is user-centered design (UCD)? What components does UCD focus on when designing a
website for users?
User-centered design (UCD) attempts to create positive user experiences by focusing on
usability goals, user characteristics, user environment, and workflow in designing a user
interface to meet user requirements. Usability includes effectiveness, efficiency, and
satisfaction.
For example, UCD considers users’ hardware (such as the keyboard and mouse), software,
computer experience, task knowledge (to facilitate the use of shortcuts and powerkeys), and
environmental characteristics (such as temperature and lighting) in designing a website.
It is also important to understand Accessibility issues when designed web pages for a website.
Download