Shree Swami Vivekanand College
BCA/BSCIT SEM-5
Subject:-ASP.NET
Short Question and Its Answer.(1 Marks)
1. What Is Asp.Net?
It Is A Framework Developed By Microsoft On Which We Can Develop
New Generation Web Sites Using Web Forms(Aspx), Mvc, Html,
Javascript, Css Etc. Its Successor Of Microsoft Active Server Pages(Asp).
Currently There Is Asp.Net 4.0, Which Is Used To Develop Web Sites.
There Are Various Page Extensions Provided By Microsoft That Are Being
Used For Web Site Development. Eg: Aspx, Asmx, Ascx, Ashx, Cs, Vb, Html,
Xml Etc.
2. What Is IIs?
IIS Stands For Internet Information Services. It Is Created By Microsoft To
Provide Internet-Based Services To Asp.Net Web Applications.
3. Which File Extension Used For Asp.Net Webpage Files?
.Aspx
4. What Is Clr?
.NET CLR is a run-time environment that manages and executes the code
written in any .NET programming language.
It converts code into native code which further can be executed by the
CPU.
PreparedBy:- Bhartiba Parmar
5. What Is Namespace?
Namespaces are the way to organize .NET Framework Class Library into a
logical grouping according to their functionality, usability as well as
category they should belong to, or we can say Namespaces are logical
grouping of types for the purpose of identification.
6. What Is Freamework?
The .Net framework is a software development platform developed by
Microsoft. The framework was meant to create applications, which would
run on the Windows Platform.
7. What Is Web Form?
Web Forms are web pages built on the ASP.NET Technology. It executes
on the server and generates output to the browser. It is compatible to any
browser to any language supported by .NET common language runtime. It
is flexible and allows us to create and add custom controls.
We can use Visual Studio to create ASP.NET Web Forms. It is an IDE
(Integrated Development Environment) that allows us to drag and drop
server controls to the web forms. It also allows us to set properties,
events and methods for the controls. To write business logic, we can
choose any .NET language like: Visual Basic or Visual C#.
8. What Is Label?
This control is used to display textual information on the web forms. It is
mainly used to create caption for the other controls like: textbox.
To create label either we can write code or use the drag and drop facility
9. Which Control Has Textmode Property?
Textbox
PreparedBy:- Bhartiba Parmar
10.Write Any Two Attributes Of Page Directive.
1. Language
2. AutoEventWireup
11.What Is Web Page?
Web Pages is one of many programming models for creating ASP.NET
web sites and web applications. Web Pages provides an easy way to
combine HTML, CSS, and server code.
12.What Is Page Directive?
The page directive is the first component inside an ASP web form. It is
used to provide various instructions to the server.
13.Which Property Specifies Path Of The Image To Be Displayed By Image
Control?
Imageurl
14.SelectionMode Property Is Available In ……………….Control.
ListBox Control
15.Ispostback Is A Property Of……………..Class.
Page Class
16.Which Data Type By Default Support By Ispostback() Method?
Boolean
17.…………………Directive Is Used To Specify The Language For A Page In Asp.Net.
Pagedirective
PreparedBy:- Bhartiba Parmar
18.…………………Node In Treeview Does Not Have Any Child.
Child Node
19.…………………Property Of Fileupload Control Is Used To Read Content Of File
Or Copy Somewhere.
FileContent
20.What Is Mappath?
Server.MapPath function is used whenever physical location of file or
folder is needed. MapPath expects one parameter, a virtual or relative
path to file or folder, and returns corresponding physical absolute path on
the server.
21.…………………….Base Class From Which All Web Forms Inherits?
Page Class
22.Using………….Property We Can Set Multiple Lines In Textbox.
TextMode->Multiline
23.The .Net Framework Provides A Runtime Environment Called…………………
CLR
24.……………Is The Property Of Button Which Is Use For Redirect To Another
Web Page.
You can either do a Response.Redirect("YourPage.aspx"); or a
Server.Transfer("YourPage.aspx"); on your button click event.
PreparedBy:- Bhartiba Parmar
25.…………………Control Is Used To Give Single Select Option To The User From
Multiple Items.
RadioButton
26.Which Key Is Used For Form Desigener View?
Shift+F7
27.Which Control Is Used To Display Advertisements On Web Page In Asp.Net?
Adroatetor
28.Advertisements File Are Created In…………….Format.
XML
29.Code Behind File Has………….Extension.
.CS
30.Which File Has .asmx Extension In Asp.Net?
WebService
31.Which Extension Is Use For Global File In Asp.Net?
Global.Asax
32.Validator Is…….
Validation is important part of any web application. User's input must
always be validated before sending across different layers of the
application.
PreparedBy:- Bhartiba Parmar
33.What Are The Different Validators In Asp.Net?
1. Required Field Validator
2. Range Validator
3. Compare Validator
4. Custom Validator
5. Regular Expression Validator
6. Summary Validator
34.Asp.Net Validation Control Works As
Or
Validation Controls Are Checked At Both Side…………..As Well As……….
Client Side and Server Side
35.Which Is Mandatory Property For All Validation Controls?
ControlToValidate
36.Which Validator Control Is Used To Check The Input Expression?
RegularExpressionValidator
37.All The Validation Controls Are Derived From Which Class.
BaseValidator class
38.What Is Used To Validate Complex String Patterns Like An E-Mail Address?
Regularexpression Validator
PreparedBy:- Bhartiba Parmar
39.Which Property Is Use To Display Validation Errors In The Validation
Summary Control?
ValidationGroup property.
40.Which Validation Control Is Used To Validate That Two Fields Are Equal?
Compare Validator
41.List Out Client Side State Management In Asp.Net.
1. Cookie
2. Query String
3. View State
42.Which File Is Used In Application State?
Global.asax
43.What Is View State?
ASP.NET view state is the client side state management technique
used by an ASP.NET Web page to persist changes to the state of a Web
Form across post backs. Data can be added to the view state collection
using a build-in-property called ViewState.
44.What Is Session?
ASP.NET session is a state that is used to store and retrieve values of a
user. It helps to identify requests from the same browser during a time
period (session). It is used to store value for the particular time session.
PreparedBy:- Bhartiba Parmar
45.Write Down Various Types Of Cookies.
Persistent Cookies
Non-Persistent Cookies
46.What Is Cookie?
Cookie is a small bit of text that is used to store user-specific
information. When a user requests for a web page, web server sends
not just a page, but also a cookie containing the date and time.
47.In Which File You Can Write Application Level Settings?
Global.asax
48.Which Page Property Is Used To Disable View State?
EnableViewState->False
49.Session Can Be Terminated By Using Which Method?
Session. Abandon
50.Cookie Are Stored Using …………….Type Of Object.
Session object
51.You Can Have Multiple Global.asax File In Your Web
Application.(True/False)
False
52.………………….Client-Side Technique Can Be Disabled By The End-User.
Cookies
PreparedBy:- Bhartiba Parmar
53.………………..Byte Is Maximum Size Of Query String In Asp.Net.
2048 bytes
54.………………..Is Used To Add Some Information To Url.
Or
………Used To Send Information From One Page To Another Via Url.
QueryString
55.View State Is A Client Side State Management Technique.(True/False)
True
56.……………..Is A Default State Of Web Page Controls.
ViewState
57.Where Does The Query String Store Information?
URl
58.We Can Cancel The Current Session Via………………….Method.
Session.Abandon()
59.To Access The Connection String From The Web.Config File, Which Class Is
Used.
ConfigurationSettings class
PreparedBy:- Bhartiba Parmar
60.Which Sqlcommand Method Is Used When Table Return A Single Value?
SqlScalar
61.List Out Supported Different Types Of Template In Gridview Control.
a. Itemtemplate
b. Headertemplate
62.What Is DataAdapter Class?
The DataAdapter serves as a bridge between a DataSet and a data
source for retrieving and saving data.
63.Which Method Do You Invoke On Dataadapter Control To Load Your
Generated Dataset?
Fill()
64.Which Datatype Is Return By ExecuteNonQuery?
Integer
65.Write Any Two Method Of Connection Class?
Open()
Close()
66.What Is Return Type Of ExecuteScalar Method?
Object
PreparedBy:- Bhartiba Parmar
67.Which Control Is A Grid Control Which Display Data In A Tabular Format?
GridView
68.………………..Is A Group Of Tables.
DataSet
69.…………………Will Acts As A Bridge Between Dataset And Database.
DataAdapter
70.Which Namespace Is Imported To Use Sql Server Provider Classes?
System.Data.SqlClient
71.Which Property Returns A Single Value From Database Query?
ExecuteScalar
72. Which Method Returns The Number Of Rows Affected By The Command?
ExecuteNonQuery
73.Which Control Supports RepeatColumns Property?
RadioButtonList
74.Which Method Of The Dataset Is Used To Read The Data From Xml File?
Readxml()
75.Which Method Of The Dataset Is Used To Write The Data From Xml File?
Writexml()
PreparedBy:- Bhartiba Parmar
76.Xml Parser Is……
XML parser is a software library or a package that provides interface
for client applications to work with XML documents.
77.Which Namespace Must Be Imported To Use Xml Related Classes?
System.Xml
78.List Out Types Of Authentication Mode In Asp.Net.
1. Form
2. Window
3. Passport
79.What Is Web.Config?
A web. config file is a Windows file that lets you customize the way
your site or a specific directory on your site behaves.
80.What Is Role Manager?
he ASP.NET Role Manager feature is designed to simplify
managing roles and the users that belong to those roles. After
authentication, when Role Manager is enabled, ASP.NET will
automatically add the users to the role(s) he or she belongs to.
81.Which File Is Used For Website Configuration?
Web.Config File
PreparedBy:- Bhartiba Parmar
82.What Is Webservice?
A web service is a web application which is basically a class consisting
of methods that could be used by other applications. It also follows a
code-behind architecture such as the ASP.NET web pages, although it
does not have a user interface.
83.What Is The Error Message For 404?
Page Not Found,
84.What Is The Default Mode Of Custom Error Section?
RemoteOnly
85.Which Type Of Tracing Is Used To Trace Whole Application?
Application Level Tracing
86.………………….Is A Process In Which Users Indentity Is Checked.
Authentication
87.………………..Status Code Is Thrown,When Request Page Is Not Found.
404
88.……………………..Is A Way To Monitor How Your Web Application Executes.
Tracing
89.Each Application Have Only And Must One “Web.Config” File.(True/False)
True
PreparedBy:- Bhartiba Parmar
90.You Can Write The Trace Information Using ………………Or……………..Method.
Trace.Write() or Trace.Warn
91.………………..Section In “Web.Config” Used To Display Our Own Customized
Error.
<customErrors>
92.Which Feature Of Asp.Net Able To Log Their Application By Means To
Monitor How Your Application Executes?
Tracing
93.Web Method Are Part Of…………..
WebService
94.When using master page, for placing content in web page,we uses………..
ContentPlaceHolders
95.caching of a specific parts of web page is called………….
PageCaching
96.A page theme is created by default created in ……….folder.
App_Theme folder
97.……….cache expiration is useful when data does not change frequently.
Data Caching
PreparedBy:- Bhartiba Parmar
98.One page contains multiple master pages. True or False
True
99.Skin file has extension………
.Skin
100. Master page can run directly on browser.
False
101. ………used to define the time duration of web page to be cached.
VarbyParam
PreparedBy:- Bhartiba Parmar