vishaljagetia
Quiz por , criado more than 1 year ago

Quiz sobre ASP.NET HTML and Web Server Control, criado por vishaljagetia em 11-04-2016.

34
0
0
vishaljagetia
Criado por vishaljagetia mais de 8 anos atrás
Fechar

ASP.NET HTML and Web Server Control

Questão 1 de 19

1

Which is the first event of ASP.NET page, when user requests a web page?

Selecione uma ou mais das seguintes:

  • A) PreLoad

  • B) Load

  • C) Preinit

  • D) Init

Explicação

Questão 2 de 19

1

If a user wants to create controls at runtime which event should be used to write code?

Selecione uma das seguintes:

  • A) PreLoad

  • B) Load

  • C) Init

  • D) PreInit

Explicação

Questão 3 de 19

1

What is the fully qualified name of the base class of all server controls?

Selecione uma das seguintes:

  • A) System.Web.UI.Control

  • B) System.Web.UI

  • C) System.Control

  • D) All of the above

Explicação

Questão 4 de 19

1

When should you use HTML server control rather than web server controls?

Selecione uma das seguintes:

  • A) You are migrating existing, classic ASP pages over to ASP.NET pages

  • B) The control needs to have custom client-side JavaScript attached to the control’s events

  • C) The Web page has lots of client-side JavaScript that is referencing the control

  • D) All of the above

Explicação

Questão 5 de 19

1

Which attribute is necessary for HTML control to work as a HTML server control?

Selecione uma das seguintes:

  • A) runat=”server”

  • B) runat=”web-server”

  • C) ID=”server”

  • D) ID=”web-server”

Explicação

Questão 6 de 19

1

How will you add a TextBox control at runtime on the form? Choose the correct one.

Selecione uma das seguintes:

  • A) TextBox obj = new TextBox();
    obj.ID = "txtUserName";
    form1.Controls.Add(obj);

  • B) form1.Controls.Add(TextBox);

  • C) this.FindControl.add(TextBox);

  • D) None of the above.

Explicação

Questão 7 de 19

1

Some control, by default, does not cause an automatic PostBack, i.e TextChanged event of TextBox. Which property will you set for automatic postback of these types of controls?

Selecione uma das seguintes:

  • A) isPostBack=”false”

  • B) isPostBack=”true”

  • C) PostBack=”true”

  • D) AutoPostBack=”true”

Explicação

Questão 8 de 19

1

What property do you modify on a server control to minimize the size of the ViewState data?

Selecione uma das seguintes:

  • A) ViewState=”true”

  • B) Set EnableViewState to false.

  • C) Set EnableViewState to true.

  • D) None of the above

Explicação

Questão 9 de 19

1

Debug class is available in which namespace?

Selecione uma das seguintes:

  • A) System.Debug

  • B) System.Data

  • C) System.Diagnostics

  • D) None of the above

Explicação

Questão 10 de 19

1

You noticed that clicking a CheckBox does not cause an automatic PostBack. How do you make the CheckBox cause an automatic PostBack?

Selecione uma das seguintes:

  • A) Set the AutoPostBack property to true.

  • B) Add JavaScript code to call the ForcePostBack method.

  • C) Set the PostBackAll property of the Web page to true.

  • D) None of the above

Explicação

Questão 11 de 19

1

What happens in the Init event of a page?

Selecione uma ou mais das seguintes:

  • A) ViewState is loaded on the page.

  • B) Each child control of the page is initialized to its design time values.

  • C) HTML is rendered.

  • D) None of the above.

Explicação

Questão 12 de 19

1

To group multiple RadioButton controls together, which property will you set for each RadioButton control in the group?

Selecione uma das seguintes:

  • A) Specify the same GroupName for each RadioButton.

  • B) Specify the different GroupName for each RadioButton.

  • C) Specify the same GroupID for each RadioButton.

  • D) Specify the same ID for each RadioButton.

Explicação

Questão 13 de 19

1

What are the types of Web server Button controls that can be created?

Selecione uma das seguintes:

  • A) Only Submit buttons.

  • B) Only Command buttons.

  • C) Submit and command buttons.

  • D) None of the above.

Explicação

Questão 14 de 19

1

How do you create a TextBox for retrieving a password from a user?

Selecione uma das seguintes:

  • A) Set TextMode property of the TextBox control to Secret.

  • B) Set Mode property of the TextBox control to Password.

  • C) Set Text property of the TextBox control to Password.

  • D) Set TextMode property of the TextBox control to Password.

Explicação

Questão 15 de 19

1

In Design view, what is the easiest way to create an event handler for the default event of a server control?

Selecione uma das seguintes:

  • A) Open the code-behind page and write the code.

  • B) Right-click the control and select Create Handler.

  • C) Drag an event handler from the Toolbox to the desired control.

  • D) Double-click the control.

Explicação

Questão 16 de 19

1

Match the following List 1 to List 2

List 1----------------------List 2
a. Literal Control----------i. SingleLine, MultiLine, Password
b. Label Control------------ii. CommandName
c. TextBox Control----------iii. Convert to span tag in HTML
d. Button Control-----------iv. PassThrough, Encode, Transform mode

Selecione uma ou mais das seguintes:

  • A) a-iv, b-iii, c-ii, d-i

  • B) a-ii, b-iv, c-i, d-iii

  • C) a-ii, b-i, c-iii, d-iv

  • D) a-iv, b-iii, c-i, d-ii

Explicação

Questão 17 de 19

1

Using which type of stylesheet we can change the style of an element in the entire website?

Selecione uma das seguintes:

  • A) Internal Stylesheet

  • B) External Stylesheet

  • C) Inline stylesheet

  • D) None of these above

Explicação

Questão 18 de 19

1

Match the following List 1 to List 2

List 1(Controls)--------List 2
a. Image----------------i. Navigate, PostBack, Inactive HotSpotMode
b. ImageButton----------ii. Container control
c. ImageMap-------------iii. Has command event
d. MultiView------------iv. Does not have click event

Selecione uma ou mais das seguintes:

  • A) a-iv, b-iii, c-i, d-ii

  • B) a-ii, b-iv, c-i, d-iii

  • C) a-ii, b-i, c-iii, d-iv

  • D) a-iv, b-iii, c-i, d-ii

Explicação

Questão 19 de 19

1

A web page has lots of input data, and you want the data input to be spread across multiple screens. What is the best control to use to implement this solution on a single Web page?

Selecione uma das seguintes:

  • A) ImageMap

  • B) Panel

  • C) Wizard

  • D) None of the above.

Explicação