ASP.NET MVC/ASP.Net MCQs Set 2 Sample Test,Sample questions

Question:
 Which of the following are server controls in ASP.NET?

Button
Textbox
ImageButton
LinkButton

1.1 and 2

2.1, 2, and 3

3.Only 1

4.All

Posted Date:-2022-11-08 05:25:02


Question:
 Which of the following is not HTML control?

1.Text Field

2.Text Area

3.Place Holder

4.Reset Button

Posted Date:-2022-11-08 05:34:36


Question:
 Which of the following statement is correct about 'Text Area' control?

1.It is used for multiline input on an HTML Form

2.It is used for single-line input on an HTML Form

3.It is not an HTML control

4.It is an ASP.NET Server Control

Posted Date:-2022-11-08 05:38:26


Question:
 Which of the following statement is correct about ToolTip?

1.It is used to implement a click event for ASP.NET control.

2.It displays a text when the mouse is over the ASP.NET control.

3.It is used to remove webpage cookies.

4.None of the above

Posted Date:-2022-11-08 04:51:49


Question:
. Which of the following statement is the correct way to store cookies in ASP.NET?

1.Using cookies collection

2.Using HttpCookie class

3.Both of the above

4.None of the above

Posted Date:-2022-11-08 04:13:52


Question:
Can we create RadioButton control using drag and drop, in Visual Studio?

1.True

2.False

3.Error

4.Can't say

Posted Date:-2022-11-08 05:01:10


Question:
Can we create RadioButton using an HTML tag?

1.True

2.False

3.Error

4.Can not say

Posted Date:-2022-11-08 05:02:59


Question:
Can we display a picture using HTML control?

1.True

2.False

3.Error

4.Can't say

Posted Date:-2022-11-08 05:40:29


Question:
Can we implement a click event for RadioButton in ASP.NET?

1.True

2.False

3.Error

4.None of These

Posted Date:-2022-11-08 05:08:39


Question:
Can we use the Click event on ImageButton similar to Button control?

1.True

2.False

3.Error

4.Can not say

Posted Date:-2022-11-08 05:32:53


Question:
Can we validate textbox data using validation controls?

1.True

2.False

3.Error

4.Can't say

Posted Date:-2022-11-08 05:19:44


Question:
Cookies are stored in?

1.Main Memory

2.Hard Drive

3.Cache Memory

4.CPU Registers

Posted Date:-2022-11-08 04:24:54


Question:
Cookies can store data up to?

1.10 KB

2.4 KB

3.1 MB

4.1 GB

Posted Date:-2022-11-08 04:18:32


Question:
How can we set the size for a Textbox control?

1.Using Size property

2.Using Length Property

3.Using MaxLength Property

4.None of the above

Posted Date:-2022-11-08 05:14:28


Question:
HTML controls are?

1.Server-side controls

2.Client-side controls

3.Both

4.None

Posted Date:-2022-11-08 05:36:43


Question:
IIS is a?

1.Web Browser

2.Web crawler

3.Web Server

4.None of the above

Posted Date:-2022-11-08 05:24:01


Question:
IIS stands for?

1.Internet Information Server

2.Internet Information Services

3.Inter Information Server

4.Interactive Information Services

Posted Date:-2022-11-08 05:22:45


Question:
Is LinkButton control used to create a button that looks similar to the hyperlink?

1.True

2.False

3.Error

4.Can not say

Posted Date:-2022-11-08 05:42:21


Question:
Literal is a?

1.Server-side control

2. Application Event

3.Client-side control

4.None of the above

Posted Date:-2022-11-08 05:33:51


Question:
Server renders ASP.NET Hyperlink to HTML hyperlink for the browser?

1.<hyper>

2. <a>

3.<h>

4. <hr>

Posted Date:-2022-11-08 04:59:02


Question:
Server renders ASP.NET RadioButon to HTML RadioButon for the browser?

1.True

2.False

3.Error

4.Can't say

Posted Date:-2022-11-08 05:07:10


Question:
The AutoPostBack is?

1.A property

2.An Event

3.A Method

4.None of these

Posted Date:-2022-11-08 05:15:14


Question:
The ToolTip is?

1.An event

2.A property

3.An event handler

4.None of the above

Posted Date:-2022-11-08 04:53:59


Question:
Webforms are made up using?

1.ASPX File

2.Code behind file (.cs, .vb etc)

3.Both of the above

4.None of the above

Posted Date:-2022-11-08 05:20:56


Question:
What is the correct syntax to create ASP.NET hyperlink?

1.< asp:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp:HyperLink>

2.< asp.net:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp.net:HyperLink>

3.< asp_net:HyperLink ID="ih1" runat="server" Text="IncludeHelp" NavigateUrl="www.includehelp.com" ></asp_net:HyperLink>

4.None of the above

Posted Date:-2022-11-08 04:35:03


Question:
What is the correct syntax to create ASP.NET RadioButton control?

1.<asp:RB ID="RB1" runat="server" Text="Male" GroupName="gender"/>

2.<asp:RD ID="RB1" runat="server" Text="Male" GroupName="gender"/>

3.<asp:RadioButton ID="RB1" runat="server" Text="Male" GroupName="gender"/>

4.None of the above

Posted Date:-2022-11-08 05:02:08


Question:
What is the full form of HR of <HR> tag?

1.Horizontal Rule

2.Horizontal Relay

3.Horizon Relay

4.Horizon Rule

Posted Date:-2022-11-08 05:37:27


Question:
What is ToolTip?

1.It is an application event

2.It is a property

3.It is a method

4.None of the above

Posted Date:-2022-11-08 05:12:36


Question:
Which of the following are textbox events in ASP.NET?

Key Press
Text Changed
Post Back
Text Modified

1.1 and 3

2.1 and 2

3.1 and 4

4.3 and 4

Posted Date:-2022-11-08 05:16:11


Question:
Which of the following are the correct application events for DataList control?

Cancel Command
Edit Command
Delete Command
Update Command

1.1 and 2

2.1, 3, 4

3.All

4.None

Posted Date:-2022-11-08 05:31:53


Question:
Which of the following control is used to create a group of checkboxes?

1.Check Box

2.Check Box List

3.Check Box Group

4.Check Box Group List

Posted Date:-2022-11-08 05:30:09


Question:
Which of the following control is used to resets all other HTML form elements on a form to a default value?

1.Clear Button

2.Default Button

3.Reset Button

4.None of These

Posted Date:-2022-11-08 05:39:40


Question:
Which of the following control works as a container?

1.Image Button

2.Data Grid

3. Panel

4.Table

Posted Date:-2022-11-08 05:25:54


Question:
Which of the following controls has an 'ItemDataBound' Event?

1.Data List

2.Data Grid

3.Repeater

4.All

Posted Date:-2022-11-08 05:30:51


Question:
Which of the following HTML tag is used for the radio button?

1.<radio>

2.<rd>

3.<input>

4.<radio button>

Posted Date:-2022-11-08 05:07:53


Question:
Which of the following is not a valid property for a hyperlink?

1.Border Color

2.Back Color

3.Fore Color

4. Background Color

Posted Date:-2022-11-08 04:46:08


Question:
Which of the following is the correct syntax for an event handler for a Button control in ASP.NET?

1.protected void MyButton_Click(object sender, EventArgs e){ }

2.protected void MyButton_Click(EventArgs e){ }

3.protected void MyButton_Click(object sender){ }

4. protected void MyButton_Click(){ }

Posted Date:-2022-11-08 05:19:07


Question:
Which of the following method is used to store a HttpCookie in ASP.NET?

1.Response.Cookies.Add()

2.Response.Cookies.SaveCookie()

3.Response.Cookies.AddCookie()

4.Response.Cookies.AddCookies()

Posted Date:-2022-11-08 04:29:01


Question:
Which of the following property is used to get cookies value in ASP.NET?

1.Response.Cookies["cookiename"].GetValue

2.Response.Cookies["cookiename"].CookieValue

3.Response.Cookies["cookiename"].GetCookieValue

4.Response.Cookies["cookiename"].Value

Posted Date:-2022-11-08 04:30:20


Question:
Which of the following property is used to set background color for a Label control?

1.Back Color

2.Background Color

3. Bg Color

4.None of these

Posted Date:-2022-11-08 05:11:41


Question:
Which of the following property is used to set password characters for a Textbox control?

1.Pass Char

2.P Char

3.Password Char

4.None of the above

Posted Date:-2022-11-08 05:13:24


Question:
Which of the following property is used to set tab index for web controls?

1.Index

2.Tab Index

3.Tab

4.None of the above

Posted Date:-2022-11-08 05:10:29


Question:
Which of the following property is used to set tab order for ASP.NET RadioButton control?

1.Tab Order

2.Tab Index

3.Index

4.Tab

Posted Date:-2022-11-08 05:04:03


Question:
Which of the following property is used to set the cookie's expiration date and time in ASP.NET?

1.Response.Cookies ["mycookie"].ExpiresDateTime

2.Response.Cookies ["mycookie"].Expires

3.Response.Cookies ["mycookie"].ExpiresTime

4.Response.Cookies ["mycookie"].RemoveDateTime

Posted Date:-2022-11-08 04:27:47


Question:
Which of the following property is used to set the group name for ASP.NET RadioButton control?

1.Group

2.Group Name

3.G Name

4.None

Posted Date:-2022-11-08 05:06:11


Question:
Which of the following property is used to set the keyboard shortcut key for Label control?

1.Shortcut

2.Access Key

3.Key

4.Shortcut Key

Posted Date:-2022-11-08 05:09:25


Question:
Which of the following property is used to set the shortcut key for ASP.NET hyperlink control?

1.Shortcut

2.Shortcut Key

3.Access Key

4.Access Shortcut Key

Posted Date:-2022-11-08 04:37:42


Question:
Which of the following property is used to set the URL for HyperLink control?

1.Set URL

2.URL

3.Navigate Url

4.None of the above

Posted Date:-2022-11-08 04:57:26


Question:
Which of the following property is used to set visibility for ASP.NET RadioButton control?

1.Visible

2.Set Visibility

3.Visibility

4.None

Posted Date:-2022-11-08 05:05:22


Question:
Which of the following property is used to set visibility for ASP.NET RadioButton control?

1.Visible

2.Set Visibility

3.Visibility

4.None

Posted Date:-2022-11-08 05:05:22


Question:
Which of the following statement are correct application events for Calendar control?

Selection Changed
Visible Month Changed
Day Render
CalEvent

1.1, 2

2.1, 2, 3

3.1, 3

4.1, 4

Posted Date:-2022-11-08 05:41:32


Question:
Which of the following statement is correct about AdRotator control?

1.It is not an ASP.NET web form control

2.It is a client-side control

3.It is used to specify a list of ads to display

4.It is used to display only hyperlinks

Posted Date:-2022-11-08 05:26:55


Question:
Which of the following statement is correct about cookies in ASP.NET?

1.Cookies are code snippets to read data from a web server.

2.Cookies are code snippets to download data from a web server.

3.Cookies are small pieces of data stored on the webserver

4.Cookies are small pieces of data created by a web application while a user is browsing a website.

Posted Date:-2022-11-08 03:53:54


Question:
Which of the following statement is correct about HyperLink control in ASP.NET?

1.ASP.NET does not support HyperLink control.

2.It is an ASP.NET control, that responds to a click event.

3.It cannot be used to refer to a webpage on the server

4.The hyperLink is also known as LinkButton in ASP.NET

Posted Date:-2022-11-08 04:33:03


Question:
Which of the following statement is correct about RadioButton control in ASP.NET?

1.It is an ASP.NET control that is used to select a choice from the group of choices.

2.It is an ASP.NET control that is used to select multiple choices from a group of choices.

3.ASP.NET does not support RadioButton control in ASP.NET.

4.None of the above

Posted Date:-2022-11-08 05:00:02


Question:
Which of the following syntax is correct to create a textbox in ASP.NET?

1.<asp:TextBox ID="txtname" runat="server"></asp:TextBox>

2.<TextBox ID="txtname" runat="server"></TextBox>

3.<asp.net:TextBox ID="txtname" runat="server"><asp.net/TextBox>

4.<asp-TextBox ID="txtname" runat="server"><asp-TextBox>

Posted Date:-2022-11-08 05:17:39


Question:
Which of the following tag is used to display a horizontal line?

1.<HR>

2.<HL>

3.<HB>

4.None of These

Posted Date:-2022-11-08 05:35:56


More MCQS

  1. MVC ASP.Net Multiple Choice Questions
  2. ASP.Net MVC Multiple choice
  3. ASP.Net MCQs Set 1
  4. ASP.Net MCQs Set 2
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!