CSC342, Web Technologies Kutztown University, Spring 2014 Mid

advertisement
CSC342, Web Technologies
Kutztown University, Spring 2014
Mid Term Exam 2 – Chapters 7 to 10 & 12 to 14
Name: _____________________________
(80%) 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 should 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 2014
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.5, 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 2014
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(n) ____in ASP.NET4.5 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.5 has the ___ extension.
a. .aspx
b. .ascx
c. .dbo
d. .mdf
e. .mdb
B 19. The ____ controls can display both 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 2014
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.5 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. ADO.NET4.5 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 2014
C 29. The ____ clause in LINQ is used to sort the items returned in the result collection.
a. count
b. from
c. orderby
d. sum
e. where
B 30. The ____ clause in LINQ defines the result collection or data source that the query must act upon.
a. count
b. from
c. orderby
d. sum
e. where
E 31. The ____ operator in LINQ gets the requested number of elements from the result set and ignores the rest.
a. Average
b. Count
c. Skip
d. Sum
e. Take
D 32. 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 33. 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 34. In ASP.NET4.5 EF, names of ____ are pluralized.
a. entity sets
b. instances of entities
c. keys
d. objects
e. tables
E 35. ____ 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
CSC342, Web Technologies
Kutztown University, Spring 2014
D 36. In ASP.NET4.5, an ADO.NET Entity has the ____ extension.
a. .ascx
b. .aspx
c. .cs
d. .edmx
e. .mdf
B 37. Which validation control does not contain validation rules “out of the box?”
a. CompareValidator
b. CustomValidator
c. RangeValidator
d. RequiredFieldValidator
e. RegularExpressionValidator
C 38. 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
A 39. User controls have a(n) ___ extension.
a. .ascx
b. .aspx
c. .cs
d. .edmx
e. .mdf
D 40. To use a user control in a content or master page, you need to first add an ___ directive to the page or
control where you want to the user control to appear.
a. @ directive
b. @ master
c. @ page
d. @ register
e. @ user
Download