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

Question:
 How many navigation controls are in ASP.NET?

1.2

2.3

3.4

4.5

Posted Date:-2022-11-08 01:17:52


Question:
 In which form does Postback occur?

1.Win Forms

2.HTML Forms

3.Web Forms

4.All of the mentioned

Posted Date:-2022-11-08 00:09:56


Question:
 In ____, a virtual method is called which is decided at runtime.

1.Late binding

2. Early binding

3. Lazy binding

4.Global binding

Posted Date:-2022-11-08 01:09:16


Question:
 The CSS stands for ____.

1.Client Style Sheet

2.Cascading Style Sheet

3.Common Style Sheet

4.Cascading Simple Sheet

Posted Date:-2022-11-08 00:15:21


Question:
 The LinkButton control makes a postback call to the server before redirecting the user to the target page.

1.True

2.False

3.Error

4.Can not say

Posted Date:-2022-11-08 03:28:01


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

1.<asp:CB ID="CB1" runat="server" Text="BCA"/>

2.<asp:Check-Box ID="CB1" runat="server" Text="BCA"/>

3.<asp_net:CheckBox ID="CB1" runat="server" Text="BCA"/>

4.<asp:CheckBox ID="CB1" runat="server" Text="BCA"/>

Posted Date:-2022-11-08 03:08:13


Question:
 What is the extension of the ASP.NET page?

1..asp

2..aspx

3..asx

4..apx

Posted Date:-2022-11-07 23:47:39


Question:
 What namespace is used for ASP.NET Web Form by default?

1.System.Web.Form

2.System.Web.UI.Page

3.System.Web.GUI.Page

4.System.Web.UI.Form

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


Question:
 Which of the following event is triggered, when we make the selection in Calendar control?

1.Selection Change

2.Selection Changed

3.OnSelection Changed

4.None of the above

Posted Date:-2022-11-08 01:35:21


Question:
 Which of the following property is used to set custom text for the next month button in Calendar control?

1.Month Text

2.Next Month Text

3.Next Text Month

4.NM Text

Posted Date:-2022-11-08 01:37:45


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

1.SetFont

2.Font

3.FontSize

4.None of these

Posted Date:-2022-11-08 03:12:20


Question:
ASP.NET is a ____.

1.Client-Side technology

2.Server-side technology

3.Both

4.None

Posted Date:-2022-11-07 23:45:58


Question:
Can an ASP.Net web application run without web.config file?

1.Yes

2.no

3.Error

4.Can't say

Posted Date:-2022-11-08 01:19:52


Question:
Can we create a hyperlink using an HTML tag?

1.True

2.False

3.Error

4.None of These

Posted Date:-2022-11-08 03:44:17


Question:
How many types of caching are there in ASP.Net?

1.2

2.3

3.4

4.6

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


Question:
In ____ page processing transfers from one page to the other page without making a round-trip back to the client's browser.

1.Response.Redirect

2.Server.Redirect

3.Client.Transfer

4.Server.Transfer

Posted Date:-2022-11-08 01:21:41


Question:
In ____, a non-virtual method is called which is decided at a compile time.

1.Late binding

2.Early binding

3.Lazy binding

4.Global binding

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


Question:
MVC stands for ____.

1.Model Vocal Controller

2.Model View Count

3.Model View Controller

4.Mode View Controller

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


Question:
The ASP.NET developed by?

1.Google

2.Oracle

3.Sun Microsystems

4.Microsoft

Posted Date:-2022-11-08 00:20:33


Question:
The Global.asax file is derived from the ____ class.

1.System.UI

2.SoapApplication

3.Application

4.HttpApplication

Posted Date:-2022-11-08 01:16:30


Question:
The SessionIDs are stored in ____ by ASP.Net?

1.Cache

2.Server

3.Database

4.Cookies

Posted Date:-2022-11-08 00:29:39


Question:
The ____ class is used to summarize the error messages from all validators on a Web page in a single location.

1.ValidationSummary

2.Validation

3.ErrorSummary

4.Debug

Posted Date:-2022-11-08 01:12:59


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

1.< asp:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04"></asp:Calendar>

2.< asp:Cal ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp:Cal>

3.< asp_net:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp_net:Calendar>

4.< asp:Calendar CAL_ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp:Calendar>

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


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

1.<asp:FileUpload ID="FU1" runat="server"/>

2.<asp:FU ID="FU1" runat="server"/>

3.<asp:Upload ID="FU1" runat="server"/>

4.<asp_net:Upload ID="FU1" runat="server"/>

Posted Date:-2022-11-08 03:30:22


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

1.<asp:LinkButton ID="ih" runat="server"/> My LinkButton </asp:LinkButton>

2.<asp:Link ID="ih" runat="server"/> My LinkButton </asp:Link>

3.<asp:LButton ID="ih" runat="server"/> My LinkButton </asp:LButton>

4.<asp:Link_Button ID="ih" runat="server"/> My LinkButton </asp:Link_Button>

Posted Date:-2022-11-08 03:15:37


Question:
What is the correct use of the web.config file?

1.To store global information and variable definitions

2.To configure the domain server

3.To configure to domain client

4.Store information about web browser

Posted Date:-2022-11-08 00:10:45


Question:
What is the default timeout for a cookie in ASP.Net?

1.10 Minutes

2.20 Minutes

3.30 Minutes

4.5 Minutes

Posted Date:-2022-11-08 01:14:46


Question:
What is the difference between Debug and Trace class in ASP.Net?

1.The Debug class is used to debug both builds and releases while the Trace class is used to debug the builds only

2.Debug class is used in ASP core while Trace is used in ASP MCC

3.The Debug class is used to debug the builds while the Trace class is used to debug both builds and releases

4.All of the above

Posted Date:-2022-11-08 01:06:50


Question:
What is the difference between session object and application object in ASP.Net?

1.The session object is used to maintain the session of each user while an application object is created while a user enters in the application

2.Session objects are created on the server while application objects are created on the client side.

3.Session objects are used to handle database communication while application objects are used to handle communication between two different domains.

4.All of the above

Posted Date:-2022-11-08 00:54:56


Question:
What is the file extension of Webservices in ASP.Net?

1..aspx

2..asp

3..asm

4..asmx

Posted Date:-2022-11-08 00:38:30


Question:
What is the full form ASP?

1.Access Server Pages

2. Active Service Pages

3.Active Server Pages

4.Access Service Pages

Posted Date:-2022-11-07 23:45:08


Question:
What is the full form of SOAP in ASP.Net?

1.Simple Object Access Protocol

2.Simple Object Advanced Protocol

3.Simple Object Access Property

4.Simple Object Advanced Property

Posted Date:-2022-11-08 01:15:45


Question:
What is the parent class of all web server control in ASP.Net?

1.System.Web.UI.Control

2.System.Web.Control

3.System.Web.UI.WebServer

4.All of the above

Posted Date:-2022-11-08 00:53:35


Question:
What is the return type of IsPostBack property?

1.Integer

2.Boolean

3.Float

4.All

Posted Date:-2022-11-08 00:18:37


Question:
Which development model(s) is/are supported by ASP.Net?

1.Asp.Net Web Forms

2.Asp.Net MVC

3.Asp.Net Web Pages

4.All of the above

Posted Date:-2022-11-08 00:28:48


Question:
Which file contains the Application_Start event?

1. Global.asax

2.Web.config

3.Local.asax

4.None

Posted Date:-2022-11-08 00:17:01


Question:
Which is not a page event in ASP.Net?

1.PreLoad

2.Load

3.LoadComplete

4.UpLoad

Posted Date:-2022-11-08 01:17:12


Question:
Which is the correct basic syntax of Application directive?

1.<%@ Application Language="C#" %>

2.<%@ Application_DIR Language="C#" %>

3.<%@ DIR @Application Language="C#" %>

4.<!-- Application Language="C#" -->

Posted Date:-2022-11-08 00:31:24


Question:
Which is the correct basic syntax of the Assembly directive?

1.<%@ Assembly @ Name ="myassembly" %>

2.<%@@ Assembly Name ="myassembly" %>

3.<%@ Assembly Name ="C# myassembly" %>

4.<%@ Assembly Name ="myassembly" %>

Posted Date:-2022-11-08 00:33:21


Question:
Which is the correct basic syntax of the Control directive?

1.<%@ Control %>

2.<%@ Control Language="C#" EnableViewState="false" %>

3.<%@ Control Language="C#" %>

4.None of These

Posted Date:-2022-11-08 00:36:22


Question:
Which is the correct syntax to add an event handler in ASP.Net?

1.Attributes("Event","Javascript_Code();")

2.Attributes.Add("Event","Javascript_Code();")

3.Attributes.Handle("Event","Javascript_Code();")

4.None of these

Posted Date:-2022-11-08 01:27:52


Question:
Which is the first event triggered when a user requests an ASP.NET page?




1.Load

2.Init

3.PreInit

4.PreLoad

Posted Date:-2022-11-08 00:22:15


Question:
Which is/are the component(s) of ADO.NET?

1.Dataset

2.Data Reader

3.Data Adaptor

4.All of the above

Posted Date:-2022-11-08 01:20:50


Question:
Which method is used in ASP.Net to preserve page and control values between round trips?

1.Restore

2.Modeling

3.View State

4.Model Preserve

Posted Date:-2022-11-08 01:13:58


Question:
Which method is used to sign out from forms authentication?

1.FormsAuthentication.LogOut()

2.Forms.UI.SignOut()

3.FormsAuthentication.LogOut()

4.FormsAuthentication.SignOut()

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


Question:
Which of the following attribute must be set on a validator control for the validation?

1.ControlToValidate

2.ValidateControl

3.ValidateToBind

4.ValidateBind

Posted Date:-2022-11-08 00:14:08


Question:
Which of the following event handlers are available for LinkButton control?

On Click
On Client Click
On Command
All the above

1.1 and 2

2.1 and 3

3.2 and 3

4.4

Posted Date:-2022-11-08 03:23:27


Question:
Which of the following event is triggered on selection change for ASP.NET CheckBox control?

1.On Selection Changed

2.Check Changed

3.On Check Change

4.None of the above

Posted Date:-2022-11-08 03:13:26


Question:
Which of the following folder is used to store DLL files in the ASP.NET application?

1.App_Code

2.App_Data

3.Bin

4.App_Local

Posted Date:-2022-11-08 00:19:43


Question:
Which of the following HTML tag is used to create file upload control in HTML?

1.File

2.Input

3.Upload

4. FP

Posted Date:-2022-11-08 03:31:06


Question:
Which of the following is not an ASP.NET component?

1.LinkCounter

2.Counter

3.AdRotator

4.File Access

Posted Date:-2022-11-08 00:23:44


Question:
Which of the following is not an ASP.NET event?

1.Init

2.Import

3.Load

4.All

Posted Date:-2022-11-08 00:17:45


Question:
Which of the following method is used to register client script using code dynamically?

1.Page.ClientScript.RegisterClientScriptBlock

2.RegisterScript

3.Page.ClientScript

4.None

Posted Date:-2022-11-08 00:21:33


Question:
Which of the following method is used to save the selected file using FIleUpload control?

1.PostedFile.Upload()

2.PostedFile.SaveAs()

3.PostedFile.SaveFile()

4.None of these

Posted Date:-2022-11-08 03:46:02


Question:
Which of the following programming language can be used with ASP.NET?

1.C#.NET

2.VB.NET

3.Both

4.None

Posted Date:-2022-11-07 23:46:47


Question:
Which of the following property is not available for Calendar control in ASP.NET?

1.Font

2.Fore Color

3.Title Format

4.None of these

Posted Date:-2022-11-08 03:06:10


Question:
Which of the following property is not available for LinkButton control?

1.Border Style

2.Causes Validation

3.Css Class

4.None of These

Posted Date:-2022-11-08 03:22:46


Question:
Which of the following property is used to allow multiple selections of files from FileUpload control?

1.Access Multiple

2.Upload Multiple

3.Select Multiple

4.Allow Multiple

Posted Date:-2022-11-08 03:45:08


Question:
Which of the following property is used to apply the style to days in Calendar control?

1.Style

2.DayStyle

3.StyleDay

4.None of the above

Posted Date:-2022-11-08 01:33:09


Question:
Which of the following property is used to apply the style to the day header row in Calendar control?

1.DayHeaderStyleRow

2.DayHeaderStyle

3.StyleHeaderDay

4.None of the above

Posted Date:-2022-11-08 01:34:13


Question:
Which of the following property is used to enable or disable LinkButton control?

1.Enable

2.Is Enable

3.Enabled

4.Disabled

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


Question:
Which of the following property is used to get the selected filename using FIleUpload control?

1.PostedFile.FileName

2.FileName

3.SelectedFile.FileName

4.PostedFile

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


Question:
Which of the following property is used to set border width for ASP.NET CheckBox control?

1.Width

2.Border Width

3.Width Border

4.None of These

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


Question:
Which of the following property is used to set CSS Class to LinkButton control?

1.Set Css

2.Css ClassC

3.Css Class

4.Class

Posted Date:-2022-11-08 03:19:52


Question:
Which of the following property is used to set the check state for ASP.NET CheckBox control?

1.Check

2.Checked

3.Check State

4.None of These

Posted Date:-2022-11-08 03:10:44


Question:
Which of the following Session Mode Serialization is not required to store the data?

1.SQLServer

2.StateServer

3.InProc

4.None

Posted Date:-2022-11-08 00:24:53


Question:
Which of the following statement are correct about Calendar control in ASP.NET?

It is an ASP.NET control, it shows the date in a calendar format.
It is an ASP.NET control, it shows date and time in UTC format only.
NET supports only one calendar control on one web form.
NET supports more than one calendar control on one web form.

1.1 and 3

2.2 and 4

3.1 and 4

4.2 and 3

Posted Date:-2022-11-08 01:30:31


Question:
Which of the following statement are correct about LinkButton control in ASP.NET?Which of the following statement are correct about LinkButton control in ASP.NET?

1.Only 1

2.Only 2

3.1 and 4

4.2 and 3

Posted Date:-2022-11-08 03:14:37


Question:
Which of the following statement is correct about CheckBox 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.NET does not support Checkbox control in ASP.NET.

4.None of the above

Posted Date:-2022-11-08 03:07:02


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

1.FileUpload control is used to upload webpages for a website.

2.FileUpload control is used to upload files from the local machine to the server.

3.FileUpload control is used to upload on C# file to the server.

4.None of the above

Posted Date:-2022-11-08 03:28:49


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

1.<check>

2.<checkbox>

3.<input>

4.None of the above

Posted Date:-2022-11-08 03:10:02


Question:
Which of the following technologies are also used with ASP.NET?

1.CSS

2.JavaScript

3.AJAX

4.All

Posted Date:-2022-11-07 23:48:33


Question:
Which protocol is used to call a web service?

1.SOAP Protocol

2.HTTP Protocol

3. TCP Protocol

4.FTP Protocol

Posted Date:-2022-11-08 00:40:10


Question:
Which protocol is used to call a web service?

1.SOAP Protocol

2.HTTP Protocol

3.TCP Protocol

4.FTP Protocol

Posted Date:-2022-11-08 00:52:08


Question:
Which term is used for pages that depend on the Master page?

1.Content Pages

2.Master Pages

3.Web Pages

4.None of the above

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


Question:
__is used to redirect the user's browser to another page or site.

1.Response.Redirect

2.Server.Redirect

3.Client.Transfer

4.Server.Transfer

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


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!