Validation Control And Web Page Navigation MCQs

Validation Control And Web Page Navigation MCQs

Our experts have gathered these Validation Control And Web Page Navigation MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Validation Control And Web Page Navigation by answering these # multiple-choice questions.
Get started now by scrolling down!

1: If you want to validate the email addresses, Social Security numbers, phone numbers, and dates types of data which validation control will be used?

A.   CompareValidator

B.   RequiredFieldValidator

C.   RegularExpressionValidator

D.   None

2: Which validation control in ASP.NET can be used to determine if data that is entered into a TextBox control is of type Currency?

A.   CompareValidator

B.   None

C.   ValidationSummary

D.   RequiredFieldValidator

3:

You are developing a Web page that contains many validated controls. You want to provide a detailed message for each validation error, but the page doesn’t have sufficient space to provide the detailed message next to each control. What can you do to indicate an error at the control and list the detailed error messages at the top of the Web page?

A.  

Set the ErrorMessage property of the validator control to the detailed message.

- Set the Text property to an asterisk (*).

- Place a ValidationSummary control at the top of the Web page.


B.  

Set the ToolTip property of the validator control to the detailed message.

- Set the ErrorMessage property to an asterisk (*).

- Place a ValidationSummary control at the top of the Web page.


C.  

Set the Text property of the validator control to the detailed message.

- Set the ErrorMessage property to an asterisk (*).

- Place a ValidationSummary control at the top of the Web page.


D.  

None

4: Which is the mandatory property for all validation controls?

A.   ControlToValidate

B.   Message

C.   EnableServerScript

D.   EnableClientScript

5: CompareValidator control can be used for performing which task?

A.   To compare the value of one form field against another

B.   To perform a data type check

C.   All

D.   To compare the value entered into a form field against a fixed value

6: Suppose that you are developing a website for company name Google. You have used validation control on web page. If the input data is wrong and error occurs, you want that focus should be on that particular control until it has valid data. What will you do?

A.   ErrorMessage=true

B.   Set SetFocusOnError property to true

C.   None

D.   Focus=true

A.  

a-ii, b-i, c-iii, d-iv

B.  

a-ii, b-iv, c-i, d-iii

C.  

a-ii, b-iv, c-iii, d-i

D.  

a-iv, b-iii, c-ii, d-i

8: There is a button on page name cancel and it should bypass validation when cancel button is clicked. What will you do?

A.   Set RemoveValidation=true

B.   Set cancel=true

C.   Set CausesValidation = false

D.   None

9: Client-side validation is turned on by default. If you want that particular validation control should not validate at client side, what will you do?

A.   Set the validate property to false

B.   Set the EnableClientScript property to true

C.   Set the EnableClientScript property to false

D.   Set the Page.Isvalid property to false

10: ASP.NET validation controls works (handle validation) at:

A.   Server side only

B.   Both client side and server side

C.   None

D.   Client side only.