1. Trang chủ
  2. » Công Nghệ Thông Tin

BTNB quiz5 logging, debugging

32 1,6K 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 32
Dung lượng 258,47 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

uestion 1 of 20 0.0 5.0 Points What are Validation Annotations? A. These attributes provide clientside validation, and the framework also supports clientside validation when you use one of the attributes on a model property. You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range. B. These attributes provide serverside validation, and the framework also supports serverside validation when you use one of the attributes on a model property. You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range. C. These attributes provide serverside validation, and the framework also supports clientside validation when you use one of the attributes on a model property. You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range. Question 2 of 20 5.0 5.0 Points Use of NuGet to deliver software and manage dependencies throughout the platform is new feature of A. ASP.NET MVC 3 B. ASP.NET MVC 2 C. ASP.NET MVC 4

Trang 1

Part 1 of 2 - 45.0/ 50.0 Points

What are the new features of MVC 3?

A Introduction of UI helpers with automatic scaffolding with customizable templates

B Mobile project template using jQuery Mobile

C Improved model validation

Trang 3

A 0

B 1

What is correct for description of ViewData?

A is a dynamic property that takes advantage of the new dynamic features in C# 4.0

B doesn’t require typecasting for complex data type

C ViewData is a dictionary of objects that is derived from ViewDataDictionary class and accessibleusing strings as keys

Which is the correct code to get the Name?

A @foreach (var item in items)

{

<span>Item @item.Name.</span>

}

Trang 4

B foreach (var item in items)

Trang 8

A … control locks resources as they are required, for the duration of a transaction Unless

deadlocks occur, a transaction is assured of successful completion

B control works on the assumption that resource conflicts between multiple users are

unlikely (but not impossible), and allows transactions to execute without locking any resources Only when attempting to change data are resources checked to determine if any conflicts have occurred If aconflict occurs, the application must read the data and attempt the change again

C ….whatever data modification was made last gets written to the database

Trang 9

Question 17 of 20 5.0/ 5.0 PointsWhat is the sequential procedure in working with databases?

A Connection object, connection string, close connection object, close connection string

B Connection object, connection string, close connection string, close connection object

C Connection string, connection object, close connection string, close connection object

Trang 10

Question 19 of 20 5.0/ 5.0 PointsWhich object in ADO.Net is similar to the Recordset object of ADO ?

Trang 12

B more than one

C two

D one

Which is the correct code to get the Name?

A @foreach (var item in items)

Trang 13

What are Code Blocks in Views? (Razor)

A @* code commands here *@

B @{code commands here }

C <% code commands here %>

What are the new features of MVC 3?

A Introduction of UI helpers with automatic scaffolding with customizable templates

B Mobile project template using jQuery Mobile

C Improved model validation

What is correct for description of ViewData?

Trang 14

A is a dynamic property that takes advantage of the new dynamic features in C# 4.0

B doesn’t require typecasting for complex data type

C ViewData is a dictionary of objects that is derived from ViewDataDictionary class and accessibleusing strings as keys

Trang 15

HTML 5 Project Templates are now part of ASP.NET MVC 3 installation in VS2010?

A No That's incorrect

B Yes, That's correct The New Project dialog includes a checkbox enable HTML 5 versions of

prject templates These templates leverage Modernizr 1.2 to provide compatibility support for HTML 5 and CSS 3 in down-level browsers

C Yes, That's correct The New Project dialog includes a checkbox enable HTML 5 versions of prject templates These templates leverage Modernizr 1.7 to provide compatibility support for HTML 5 and CSS 3 in down-level browsers

Trang 16

D No That's incorrect The New Project dialog includes a checkbox enable HTML 4 versions only

MVC 3 supported

A No View Enginee

B Multi Views Engi

C Only one View Engine

What is a connection object?

A First opens the initial connection to a database before giving any database information

B Specifies the type of driver to use, database format and filename

Trang 17

C Specifies whether to use a DSN or DSN-less connection

D Specifies whether to use a DSN or DSN-less connection

You decide to use named parameters in a SqlCommand object in order to execute SQL queries on a database You have a parameter named “CustomerName” How do you refer to it within the SQL query text in the SqlCommand object?

Trang 18

ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect to

databases Which two ADO objects are used to open a connection and interact with the database?

A Connection object, RecordingSet object

B Connection object, Recordset object

C Connect object, RecordingSet object

D Connect object, Recordset object

Trang 19

Question 15 of 20 0.0/ 5.0 PointsOLEDB Connection Pooling is handled by OLEDB.Net Provider and SQLClient Connection pooling is handled by

A Windows 2000 Component Service

You want to access data from the "Customer" table in the database You generate a DataSet named

"MyDataSet" by adding "Customer" table to it Which of the following statements should you use to

Trang 20

load the data from the database into "MyDataSet" which has been loaded with multiple tables, using a SqlDataAdapter named "MyAdapter"?

Which internal format DataSet uses to load and persist its contents?

A Which internal format DataSet uses to load and persist its contents?

B Binary Format

C CSV Format

Trang 21

D No format is required

What is the sequential procedure in working with databases?

A Connection object, connection string, close connection object, close connection string

B Connection object, connection string, close connection string, close connection object

C Connection string, connection object, close connection string, close connection object

What are the weekness of typed dataset

A.Heavy object

B.No re-use/upgrade model

C.Lack of DataAccess features

Trang 22

D.Hight performance

What are Validation Annotations?

A These attributes provide client-side validation, and the framework also supports client-side

validation when you use one of the attributes on a model property You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range

B These attributes provide server-side validation, and the framework also supports server-side

validation when you use one of the attributes on a model property You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range

C These attributes provide server-side validation, and the framework also supports client-side

validation when you use one of the attributes on a model property You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range

Use of NuGet to deliver software and manage dependencies throughout the platform" is new feature of

A ASP.NET MVC 3

Trang 24

A .aspx

B .cshtml

C .asp

HTML 5 Project Templates are now part of ASP.NET MVC 3 installation in VS2010?

A No That's incorrect

B Yes, That's correct The New Project dialog includes a checkbox enable HTML 5 versions of

prject templates These templates leverage Modernizr 1.2 to provide compatibility support for HTML 5 and CSS 3 in down-level browsers

C Yes, That's correct The New Project dialog includes a checkbox enable HTML 5 versions of

prject templates These templates leverage Modernizr 1.7 to provide compatibility support for HTML 5 and CSS 3 in down-level browsers

D No That's incorrect The New Project dialog includes a checkbox enable HTML 4 versions only

Question 6 of 20

5.0/ 5.0 Points

Trang 25

MVC 3 supported

A No View Enginee

B Multi Views Engi

C Only one View Engine

What is correct for description of ViewData?

A is a dynamic property that takes advantage of the new dynamic features in C# 4.0

B doesn’t require typecasting for complex data type

C ViewData is a dictionary of objects that is derived from ViewDataDictionary class and accessibleusing strings as keys

Trang 26

Which is the correct of Razor Syntax?

A @

B %%

C $

What is correct for description of ViewBag?

A ViewBag is a dictionary of objects derived from the ViewBagDictionary class and accessible using strings as keys

B ViewBag is a dynamic property that takes advantage of the new dynamic features in C# 4.0

C ViewBag doesn't require typecasting for complex data types

D B and C

Trang 27

What are the new features of MVC 3?

A Introduction of UI helpers with automatic scaffolding with customizable templates

B Mobile project template using jQuery Mobile

C Improved model validation

The "RejectChanges" method of Dataset is used to :

A "Commits the changes

"

B remove all datarow in it

C Rollbacks all changes since last call to AcceptChanges

D Rolls back all changes since object was created

Trang 28

Question 12 of 20 5.0/ 5.0 Points

"Last in wins" concurrency means :

A ….whatever data modification was made last gets written to the database

B control works on the assumption that resource conflicts between multiple users are

unlikely (but not impossible), and allows transactions to execute without locking any resources Only when attempting to change data are resources checked to determine if any conflicts have occurred If aconflict occurs, the application must read the data and attempt the change again

C … control locks resources as they are required, for the duration of a transaction Unless

deadlocks occur, a transaction is assured of successful completion

Trang 29

What is a connection object?

A First opens the initial connection to a database before giving any database information

B Specifies the type of driver to use, database format and filename

Trang 30

C Specifies whether to use a DSN or DSN-less connection

D Specifies whether to use a DSN or DSN-less connection

Two users are trying to update the row in a database at the same time.Assuming that optimistic

concurrency is not used for concurrency control in this case, what will be the result ?

A The Second Update overwrites the first update

B Error will be raised when the Second update happens

C Second update does not happen at all

D None of the above

Which one of the following namespaces contains the definition for IdbConnection?

Trang 32

A ReadUncommitted

B ReadCommitted

C Serializable

D Chaos

Ngày đăng: 31/03/2017, 15:14

TỪ KHÓA LIÊN QUAN

w