Professional Documents
Culture Documents
Advanced Web Programming
Advanced Web Programming
Chapter 1
Sr.
No Question A B C D Correct Answer
The .Net framework provides
multiple language support using the
feature known as Common Type Common Language
1 ____________________ System Runtime Garbage Collector Managed Code A
The __________ is the common
platform that integrates code and Common
components from multiple .Net Common Type Common Language Language
2 programming languages. System Runtime Garbage Collector Specification D
_________ defines a set of rules that
enable interoperability on the dotnet Common Language Common Language Common Type
3 platform. Specification Garbage Collector Runtime System A
During the runtime the Common
Language Runtime uses Just In Microsoft
Time compiler, converts the Source Intermediate Program Common code
___________________ code into Language
4 native code to the Operating System. B
Most of the functionality of the
.NET framework classes resides in
5 the namespace called ________. Data Service System Drawing C
______________method is only
6 called under unusual situations as GC.Collect GC.Collection GC.Auto GC.Garbage A
normally garbage collector runs
automatically.
________ is the execution
engine for .Net applications and
serve as the interface between
.Net applications and the Common Language Common Language Common Type
7 operating system. Specification Garbage Collector Runtime System C
_________provides files that contain
pre-written code known as classes that Common
are available to all .NET programming Common File .Net Framework Language
8 languages. Assembly system Class Library System C
__________Manages the execution of
.NET programs by coordinating Common
Common Language Common Type Common File
essential functions such as memory Language D
Specification System System
management, code execution, security Runtime
9 etc.
____________ is a component of CLR
that ensures that all .NET applications
use the same basic data types no Common
matter what programming languages Common Type Common File Common System Langauage
10 are used to develop the applications. System system Specification Specification A
Internet Integrated Internal
Development Development Devlopment Integrated Data
11 What is the full for of IDE? Environment Environment Environment Environment B
In Garbage Collection, The objects in
______ are long lived such as static
objects as they remain in the heap
12 memory for the whole process duration. Generation -0 Generation - 1 Generation - 2 Generation-3 C
Common Language Framework
The .NET Framework is divided into two Framework Class Common Type Specification & Class Library &
main components: _______________ & Library & Common System & Common Common Language Garbage
13 __________ Language Runtime Language Runtime Runtime Collection A
.NET Framework Class library
Structure's related classes are
14 organised into groups called ______ Files Namespaces Structure Sub-Classes B
In .NET Framework, ___________can
15 contain more than one project. Solution Explorer properties Window File Explorer Form Window A
Which method of an Array creates a
16 duplicate copy Copy() CopyTo() Clone() Sort() C
________________ inserts a string a a
17 specified index position. IndexOf() insert() LastIndexOf() put() B
_________________ is a static
18 property of DateTime Class AddDays() AddMonths() Now ToString() C
allows
references to
members of a
namespace
without using use to reference use to reference
the fully an external None of the an external
19 using or Imports statement qualified name library Both A and B above library
Which of the following does the
20 actual .Net code execute? CLS MSIL CTS CLR CLR
How do we identify that the page IsPostBack Smart Navigation AutoPostBack By using IsPostBack
21 is Postback? property property property session property
______________ is the DataType
22 return in IsPostback property boolean int string float boolean
Which file contains settings for all
.NET application types, such as
Windows, Console, ClassLibrary, All of the
23 and Web applications? Web.config Machine.config Global.asax above Machine.config
Which of the following is not an None of the
24 ASP.NET page event? Init Load Import above Import
Unit 1
Chapter2
Sr.
No Question Option 1 Option 2 Option 3 Option 4 Correct Answer
Default access for the members
1 of the class is _______. Private Public Protected Default Private
A class ___________ is a
special member function of a
class that is executed whenever
we create new objects of that
2 class. Variable Constructor Method Function Constructor
A _________ constructor does
3 not have any parameter inherited parameterised default special default
The keyword _________implies
that only one instance of the
4 member exists for a class. private Public Protected static static
C# supports multiiple inheritance - True
5 / False? TRUE FALSE FALSE
We can use __________ to
implement multiple inheritance in
6 C# interfaces inheritances object constructor interfaces
When a class is declared
_________, it cannot be
7 inherited Private As base sealed as parentt sealed
A is designed for providing a
way to keep one set of names
8 separate from another. namespace namespace
The keyword states that the
program is using the names in
9 the given namespace. using using
You can define one namespace
inside another namespace. (True
10 / False) TRUE FALSE TRUE
Value type variables in C# are
derived from the class
11 System.ValueType? TRUE FALSE TRUE
Which of the following converts a
12 type to a double type in C#? ToDecimal ToDouble ToInt16 ToInt32 ToDouble
Which of the following operator
returns the address of an variable
13 in C#? sizeof Typeof & * &
The do not contain the actual
data stored in a variable, but
they contain a reference to the Reference Reference
14 variables. Value Types value types Types Value Reference types Reference Types
Int, char, float are the examples of
15 __________ data types Reference Value Static Virtual Value
Object is an example of
16 ______________ data type. Reference Value Location Address Reference
Inner namespaces can be
separated using _
17 _________ (underscore) . (Dot) - (hyphen) -> (Arrow) . (Dot)
__________ is mechanism to Constructor Method Method
18 create multiple methods with the Overloading Overriding overloading Constructor overriding Method overloading
same name and unique signature
in the same class
An ________ is a non-instantiable
class which is either partially
19 implemented, or not at all implemented. Static class Sealed class partial class Abstract class Abstract class
A / An _________ in ASP.NET is a
20 collection of single-file or multiple files. Namespace Library assembly dictionary assembly
data
definition dynamic link digital library
21 DLL stands for __________ library library link distributed link library dynamic link library
22 _________ describes the assembly. Library Manifest Metadata MSIL Manifest
UNIT 2
CHAPTER 1
Sr.
No Question Option 1 Option 2 Option 3 Option 4 Correct Answer
……………………………….are ASP.NET
2 user controls. .aspx .ascx web.config .cs .ascx
HTML control runs
3 at……………………………..side. client server user browser client
ASP.Net controls run at
4 ………………………..side. user client web server server
Every web application starts with
a single location, called header
5 the……………….. root folder main folder folder middle folder root folder
……………………………….. is the
process of adding breakpoints to
6 an application Compiling Debugging Designing Coding Debugging
.................... directoryContains all the
compiled .NET components (DLLs)
that the ASP.NET web application
7 uses App_Themes App_Browsers Bin App_code Bin
An error will occur when the code
attempts to use the .........................
8 method. Static.Parse() Decimal.Parse() Double.Parse() Octal.Parse() Decimal.Parse()
ASP.NET includes a graphical Website Website Website graphical
configuration tool called Administration Configuration Administration Administration Website
9 the............................... Type Tool Tool Type Administration Tool
The<appSettings>element is nested in
10 the root.........................element. <configuration> <contains> <settings> <applications> <configuration>
Every ASP.NET application is
executed inside a separate application
11 ................................ user domain. domain. server domain. system domain. application domain.
UNIT 2
CHAPTER 2
Sr.
No Question Option 1 Option 2 Option 3 Option 4 Correct Answer
1 ASP.NET tags always begin with the prefix________. input type <a> asp: <div> asp:
Sr.
No Question Option 1 Option 2 Option 3 Option 4 Correct Answer
_____________ property
indicates whether a list box allows
single selection or multiple
5 selections. SelectedIndex SelectedValue SelectionMode Items SelectionMode
Sr. Correct
No Question Option 1 Option 2 Option 3 Option 4 Answer
System.Di
videByZer
Which of the following is NOT a valid oExceptio System.StackMemoryExce
1 DOT NET Exception class System.Exception n System.OutOfMemoryException ption 4
Which of the following gives the
number of catch blocks that can be The try block can have any
2 defined for a single try block: one two Three number of catch blocks. 4
CLR will
terminate the
program
execution at
the point
Which of the following statements The Compiler will not where it The Code executes successfully,
applies to the situation where Exception allow the program to encounters CLR will not show any output. However, and an error message gets
3 is not handled in the program: run the code. an exception. the code will execute successfully. printed. 2
Which of these keywords must be
4 used to monitor exceptions? try catch Finally else 1
It occurs
during
Just-In-
Time
Select the correct statement It occurs during compilatio
5 about an Exception? loading of program n c) It occurs at run time d) All of the mentioned 3
Which of these keywords is not a
6 part of exception handling? try catch Thrown finally 3
In C#.NET if we do not catch the
exception thrown at runtime then
which of the following will catch
7 it? compiler CLR Linker loader 2
Which of the following is the
Object Oriented way of handling
8 run-time errors? onError Exception Errorcode Heresult 2
9 In C#.NET, an exception is? Compile time error logical error runtime error syntax error 3
The catch
block is
used to The catch block is used to
There are following statements catch on catch all types of exceptions
number that occurred in a try block,
are given below, which is correct catch not supported in related The catch block executes at least depends upon its exception
10 about catch block in C#.NET? .net exceptions once during program execution class 4
The throw
keyword is
used to
throw an
exception
There are following statements are The throw keyword is object The throw keyword is used in
given below, which is correct about not supported in programmat The throw keyword is used to throw older versions of the .NET
11 throw in C#.NET C#.NET ically an exception object programmatically framework 2
superclass of all types Exceptioncl
12 of exceptions classes. DivideByzero ass Exception IndexError 4
what are not state
13 management techniques session application View sessionless 4
Information store in application
14 state is available on same page every page everypage of website on alternate page 3
which all are Server side state
15 management technique view session cookies QueryString 2
Exception
Exception inside outside
16 what is inner Exception Exception Exception method of exception property of Exception 4
UNIT 3
CHAPTER 2
Sr. Correct
No Question a B c d Answer
___________ uses a hidden field that ASP.NET
automatically inserts in the final, rendered HTML of a web Application
1 page. Caption View state Button state State b
The ________ is a dictionary collection, which means
every item is stored in a separate “slot” using a unique
2 string name. StateBag Variable Datatype View a
ASP.NET uses a _______ to make sure your view-state
3 information can’t be altered without your knowledge. view code app code password hash code d
A ________ postback is a technique that extends the
4 postback mechanism. pageing Cookies URL encoding cross-page d
The _______ is the portion of the URL after the question
5 mark. string URL encoding query string app string c
If your view state contains some information you want to
6 keep secret, you can _____ viewstate encryption. enable mute view disable a
________ are small files that are created in the web
7 browser’s memory or on the client’s hard drive. Cookies session variable string a
__________ allows you to store any type of data in
8 memory on the server. Pageing Cookies Session-state StateBag c
___________ Provides a string with the unique session
9 identifier for the current client. Application Cookies Sessionit SessionID d
___________ removes all the session items but doesn’t
10 change the current session identifier. undo() Commit() Cancel() Clear() d
You configure session state through the __________ file
11 for your current application web.config global aspx aspx.cs a
The ______ setting specifies the number of minutes that
ASP.NET will wait, without receiving a request, before it
12 abandons the session. id Del timeout wait c
The _________ control navigates to the page specified in
13 its NavigateUrl property. HyperLink button label textbox a
__________ allows you to store global objects that can be
14 accessed by any client. Object Access Stateless Application state d
________ provides the number of items in the current
15 session collection Item ID Count Number c
Union Uniform Universal Uniform
Resource Resource Resource Resource
16 URL stands for _____. Loader Locator Locator Loader b
___________ is work transparently, without the user being
17 aware that information needs to be stored. Session Data View Cookies d
UNIT 4
CHAPTER 1
Sr. Correct
No Question Option 1 Option 2 Option 3 Option 4 Answer
------IS technology used
to design asp.net
1 program for data access ADO ADO.NET ORACLE SQL ADO.NET
TO design WEB
APPLICATION WE
2 NEED SQL DBMS RDBMS ORACLE RDBMS
-----EXPLORER IS
USED TO CREATE
3 DATABASE SERVER FILE TOOLBAR DATABASE SERVER
TO Creat new
dataconnection which microsoft sql
4 data source we require server client microsoft sql client server(sqlClient) sql server C
sql is standard data
access language used
to interact with--------
5 database access sql relational oracle relational
following is not
standard symbol used
6 in query * % : :
following is not SQL
7 aggregate fucntion avg sum mul count mul
which namespace is
8 not used for ado.net system.data system.data.sqlcommand syste.data.sqlClient system.sql syste.sql
to read data from
dataset ----- class is
9 used. data reader data adpter adapter fill datareader
open() and close() are
methods of---------
10 class. sqlcommand sqlconnection sqldata sqlreader sqlconnection
The ..................... is a
series of sistinct pieces
of information
seperated by connection
11 semicolons. string query connection connectionstring string
executeReader() is
method of
12 ......................class reader connection sqlcommand adapter sqlcommand
In disconnected data
access model
................ is used to
keep copy of data in
13 memory table databse dataset adpater dataset
fill() is method of-
14 ..................... datatable dataset data adapter datareader
15
UNIT 4
CHAPTER 2
Sr. Correct
No Question A B C D Answer
Asynchronous JavaScript Asymmetric Asynchronous Java Asynchronous JDBC
1 What is full form of AJAX and XML JavaScript and XML and XML and XML A
The whole page
Defining some part of class Some part of page The whole page defined at different
2 Partial Refresh refers to somewhere else posted back to server posted back to server places B
3 The event in AJAX triggers VBScript C# Code Javascipt Refresh C
4 Triggers collection contains AsyncPostBackTrigger Event Driven Autoclick event UpdatePanel A
ContentTemplate is a property
5 of Textbox UpdatePanel Ajax Panel Div B
RenderMode property has
6 values Block and Inline Panel and Refresh Block and Refresh Block and Panel A
Time in milliseconds that the
control has to wait before it
7 displays its content is given by Visible DisplayAfter EnableViewState DynamicaLayout B
___ property determines the
control automatically saves its
state for the use in
8 round trips. Block and Inline DisplayAfter EnableViewState DynamicaLayout C
____determine whether the
progress template is
9 dynamically rendered DynamicVisible Dynamic display Dynamicstate DynamicaLayout D
Progressbar has a asp control
10 name as UpdateProgress DisplayProgress ProgressBar ShowProgress A
UNIT 4
CHAPTER 3
Sr
.
N
o Question Option 1 Option 2 Option 3 Option 4 Correct Answer
In ASP .NET Single and repeated Single and Multi value Single and multiple Single and repeated value
1 binding types are value binding binding value binding None of these binding
Single-value data
binding allows you
2 to take a variable, Satically Dynamically Both None of these Dynamically
a property, or an
expression and
insert it
Control supports
repeated-value data
binding if
it provides a
3 property Data Source Data Set Both None of these Data Source
The data a source
controls include any
control that
implements the
4 interface IFile IDisposable IDataSource None of these IDataSource
To show multiple
items in
dropdownlist which
property you have
to set to the point to
the
5 SqlDataSource ID DataSourceID SqlDataSource XMLDatasource DataSourceID
The data binding is
6 perform Before Page init After Page render After page Load Before Page rendered Before Page rendered
To give the user a
way to enter the
new values in Detail
view which
property have to set AutoGenerateDeleteB AutoGenerateEditB
7 true? utton AutoGenerateInsertButton utton None of these AutoGenerateEditButton
Which of the
following is
approch of dynamic
8 Text? <%expression%> <%#expression%> <%#expression#%> <%expression%> <%#expression%>
Data Access in
9 ADO.Net relies on DataSet,DataProvider DataSource,DataSet DataSource only DataProvider only DataSet,DataProvider
Eval function is
10 used for? Two way Binding One way binding Both none of these One way binding
Bind function is
11 used for ? Two way Binding One way binding both none of these Two way Binding
If you are using
DataSet and you
have to display the
data in soted order Use DataView
then what will you Use Sort() method of Use Sort() method of object with each Use DataPaging and sort Use DataView object with
12 do? DataTable DataSet sort. data each sort.
Call the
ExecuteReadermethod
How do you of two Command Call the Set the Set the
execute multiple objects and assign the ExecuteReadermeth Command.CommandTextpr Command.CommandTextpr
SQL statements results tothe same Set the od of a single operty to multiple SQL operty to multiple SQL
using a instance of a Command.CommandTypepr Command object statements delimited by a statements delimited by a
13 DataReader? DataReader operty to multiple result sets twice semicolon. semicolon.
What property
contains the actual
error message SqlError.Class and
returned by SQL SqlException.Source SqlException.Message and SqlException.Sourc SqlException.Source and
14 Server? and SqlError.Message SqlError.Class e none of these SqlError.Message
Which of the
following give
data in tabuler
formate and
allows paging
,sorting,editing
1 and deleting for
5 each record DataList Gridview Repeater FormView GridView
You can add new
1 row in DataTable
6 by AddRow() NewRow() Both none of these NewRow()
Which property
can be used to
configured the
numbers and
1 dates using a
7 format string FormatSting DataFormatingString DataFormate DataFormatSring DataFormatingString
_________________ob
ject can hold
more than one
rowset from the
same data source
and the
1 relationships OleDB
8 between them. DataReader Object DataSet Object connection object Data Adapter DataSet Object
Where do we
store connection
1 string in
9 ASP.NET? Web.config App.config Global,asax all Web.config
UNIT 5
CHAPTER 1
UNIT 5
CHAPTER 2
Sr Correc
. t
N Answe
o Question A B C D r
__________ is
the default
authentication
type provided for Windows
1 Asp.Net. Form Authentication Authentication Passport Authentication Profile Authentication B
Which event is
not there for
2 Login control LoggingIn LoggedIn LoginError LoginStatus D
Which tool is
used to manage
all the security
settings for
application in
3 ASP.Net Website Administration Tool Website User Tool Authentication Tool Page Administration Tool A
How to
implement Include the
authentication via Include the authentication authorization Include the identity Include the deny
4 web.config? element element. element. element. B
______________
element in the
web.config file to
run code using
the permissions < authentication>
7 of a specific user < credential> element element < authorization> element < identity> element D
Which of the
following is the
default
authentication
8 mode for IIS? Windows Anonymous Basic Authentication Profile B
Where do we
include the user
lists for Form
9 authentication? < Identity> < authentication> < credential> < authorization> C
Which of the
1
1 following Form User Profile Windows D
authentication is
best suited for a
corporate
network?
Which security
control is used to
1 check the status
2 of login Login LoginName LoginView LoginStatus D
Which
Namespace
Allows Us To
1 Formauthenticati System.Web.Ui.Forms.Secu System.Web.Securi System.Web.Configurati System.Web.Authenticati
3 on ? rity ty on on B
Where do we
include the user
1 lists for windows
5 authentication? < Credential> < authorization> < identity> < authentiation> B
Which view is
1 provide by
7 LoginView control Anonymous template View template User template Admin template A
Sr Corre
. ct
N Answ
o Question A B C D er
__________ is the
default authentication
type provided for Windows
1 Asp.Net. Form Authentication Authentication Passport Authentication Profile Authentication B
Which event is not
there for Login
2 control LoggingIn LoggedIn LoginError LoginStatus D
Which tool is used
to manage all the
security settings for
application in Website Administration Website User Page
3 ASP.Net Tool Tool Authentication Tool Administration Tool A
How to implement Include the
authentication via Include the authentication authorization Include the identity Include the deny
4 web.config? element element. element. element. B
Where do you set
authentication mode in
5 ASP.Net application Using global.asax file Using cookies Using webconfig file Using web services C
Which of the following
is TRUE about
Windows Role membership
Authentication in Automatically determines role determined only by ASP.NET does not support ASP.Net does not
6 ASP.NET? membership user programming Windows Authentication support Authorization A
______________ < authentication> < authorization>
7 element in the < credential> element element element < identity> element D
web.config file to
run code using the
permissions of a
specific user
Which of the
following is the
default
authentication
8 mode for IIS? Windows Anonymous Basic Authentication Profile B
Where do we
include the user
lists for Form
9 authentication? < Identity> < authentication> < credential> < authorization> C
In ASP.NET the <
authorization >
section contain
1 which of the
0 following elements? < deny > < allow > Both A. and B < Identity> C
Which of the
following
authentication is
1 best suited for a
1 corporate network? Form User Profile Windows D
Which security
control is used to
1 check the status of
2 login Login LoginName LoginView LoginStatus D
Which
Namespace
Allows Us To
1 Formauthenticat System.Web.Ui.Forms.Sec System.Web.Secu System.Web.Configura System.Web.Authentic
3 ion ? urity rity tion ation B
UNIT 5
CHAPTER 3
Sr.
No Question A B C D Correct Answer
What is full form of Asynchronous Asymmetric Asynchronous Java and Asynchronous
1 AJAX JavaScript and XML JavaScript and XML XML JDBC and XML A
The whole page
Partial Refresh refers Defining some part of Some part of page The whole page posted defined at different
2 to class somewhere else posted back to server back to server places B
The event in AJAX
3 triggers VBScript C# Code Javascipt Refresh C
Triggers collection
4 contains AsyncPostBackTrigger Event Driven Autoclick event UpdatePanel A
ContentTemplate is
5 a property of Textbox UpdatePanel Ajax Panel Div B
RenderMode
6 property has values Block and Inline Panel and Refresh Block and Refresh Block and Panel A
Time in milliseconds
that the control has
to wait before it
displays its content is
7 given by Visible DisplayAfter EnableViewState DynamicaLayout B
___ property
determines the
control automatically
saves its state for the
use in
8 round trips. Block and Inline DisplayAfter EnableViewState DynamicaLayout C
____determine
9 whether the progress DynamicVisible Dynamic display Dynamicstate DynamicaLayout D
template is
dynamically
rendered
Progressbar has asp
10 control name as UpdateProgress DisplayProgress ProgressBar ShowProgress A
Which of the
following is true ? 1.
AJAX is a platform-
independent
technology
2. AJAX can work
with web application
3. AJAX can only
work with ASP.NET
4. AJAX is a
platform-dependent
technology
11 1,2 1,2,3 1,3,4 none of the above 1,2
Which of the Declarative
following are instantiation of client Client-side template
12 features of AJAX Live data binding components rendering All of the above All of the above
________________
Combination of
technologies gives Asynchronous None of the Asynchronous
14 AJAX its names. ASP and XAML Atlas and XML JavaScript and XML mentioned JavaScript and XML
Which property is
used to control the
duration of Ajax
18 request. AsyncPostBackTimeout AsyncTimeout Timeout PostBackTimeout AsyncPostBackTimeout
How many
'ScriptManager'
control can be added
on a ASP.NET web
20 page? only one more than one only two none of the above 0nly one