0% found this document useful (0 votes)
30 views29 pages

AWP Sem 5 QB Answers

Uploaded by

Rohan Pawar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views29 pages

AWP Sem 5 QB Answers

Uploaded by

Rohan Pawar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Sem 5

Advanced Web Programming


Unit I
Chapter 1
1. The .Net framework provides multiple language support using the feature known as
____________________
a) Common Type System
b) Common Language Runtime
c) Garbage Collector
d) Managed Code

2. The __________ is the common platform that integrates code and components from
multiple .Net programming languages.
a) Common Type System
b) Common Language Runtime
c) Garbage Collector
d) Common Language Specification

3. _________ defines a set of rules that enable interoperability on the dotnet platform.
a) Common Language Specification
b) Garbage Collector
c) Common Language Runtime
d) Common Type System

4. During the runtime the Common Language Runtime uses Just In Time compiler,
converts the ___________________ code into native code to the Operating System.
a) Source
b) Microsoft Intermediate Language
c) Program
d) Common code

5. Most of the functionality of the .NET framework classes resides in the namespace
called ________.
a) Data
b) Service
c) System
d) Drawing

6. ______________method is only called under unusual situations as normally garbage


collector runs automatically.
a) GC.Collect
b) GC.Collection
c) GC.Auto
d) GC.Garbage

7. ________ is the execution engine for .Net applications and serve as the interface
between .Net applications and the operating system.
a) Common Language Specification
b) Garbage Collector
c) Common Language Runtime
d) Common Type System

8. _________provides files that contain pre-written code known as classes that are
available to all .NET programming languages.
a) Assembly
b) Common File system
c) .Net Framework Class Library
d) Common Language System

9. __________manages the execution of .NET programs by coordinating essential


functions such as memory management, code execution, security etc.
a) Common Language Specification
b) Common Type System
c) Common File System
d) Common Language Runtime

10. ____________ is a component of CLR that ensures that all .NET applications use the
same basic data types no matter what programming languages are used to develop the
applications.
a) Common Type System
b) Common File system
c) Common System Specification
d) Common Language Specification

11. What is the full form of IDE?


a) Internet Development Environment
b) Integrated Development Environment
c) Internal Development Environment
d) Integrated Data Environment

12. In Garbage Collection, the objects in ______ are long lived such as static objects as
they remain in the heap memory for the whole process duration.
a) Generation -0
b) Generation - 1
c) Generation - 2
d) Generation-3

13. The .NET Framework is divided into two main components: _______________ &
__________.
a) Framework Class Library & Common Language Runtime
b) Common Type System & Common Language Runtime
c) Common Language Specification & Common Language Runtime
d) Framework Class Library & Garbage Collection

14. .NET Framework Class library Structure's related classes are organised into groups
called ______
a) Files
b) Namespaces
c) Structure
d) Sub-Classes
15. In .NET Framework, ___________can contain more than one project.
a) Solution Explorer
b) properties Window
c) File Explorer
d) Form Window

16. Which method of an Array creates a duplicate copy


a) Copy()
b) CopyTo()
c) Clone()
d) Sort()

17. ________________ inserts a string a specified index position.


a) IndexOf()
b) insert ()
c) LastIndexOf()
d) put()

18. _________________ is a static property of DateTime Class


a) AddDays()
b) AddMonths()
c) Now
d) ToString()

19. using or Imports statement


a) allows references to members of a namespace without using the fully
qualified name
b) use to reference an external library
c) Both A and B
d) None of the above

20. Which of the following does the actual .Net code execute?
a) CLS
b) MSIL
c) CTS
d) CLR

21. How do we identify that the page is Postback?


a) IsPostBack property
b) Smart Navigation property
c) AutoPostBack property
d) By using session

22. ______________ is the DataType return in IsPostback property.


a) boolean
b) int
c) string
d) float

23. Which file contains settings for all .NET application types, such as Windows,
Console, Class Library, and Web applications?
a) Web.config
b) Machine.config
c) Global.asax
d) All of the above

24. Which of the following is not an ASP.NET page event?


a) Init
b) Load
c) Import
d) None of the above

Chapter 2

1. Which of the following converts a type to a signed byte type in C#?


a) ToInt64
b) ToSbyte
c) ToSingle
d) ToInt32

2. Which of the following operator returns the size of a data type in C#?
a) sizeof
b) typeof
c) &</a>
d) *

3. Which of the following access specifier in C# allows a class to expose its member
variables and member functions to other functions and objects in the current
assembly?
a) Public
b) Private
c) Protected
d) Internal

Chapter 3

1. Default access for the members of the class is _______.


a) Private
b) Public
c) Protected
d) Default

2. A class ___________ is a special member function of a class that is executed


whenever we create new objects of that class.
a) Variable
b) Constructor
c) Method
d) Function

3. A _________ constructor does not have any parameter.


a) inherited
b) parameterised
c) default
d) special

4. The keyword _________implies that only one instance of the member exists for a
class.
a) private
b) public
c) Protected
d) Static

5. We can use __________ to implement multiple inheritance in C# interfaces.


a) inheritances
b) object
c) constructor
d) data

6. When a class is declared _________, it cannot be inherited


a) Private
b) As base
c) sealed
d) as parent

7. The keyword states that the program is using the names in the given namespace.
a) const
b) using
c) var
d) object

8. You can define one namespace inside another namespace. (True / False)
a) TRUE
b) FALSE

9. Which of the following converts a type to a double type in C#?


a) ToDecimal
b) ToDouble
c) ToInt16
d) ToInt32

10. Which of the following operator returns the address of a variable in C#?
a) sizeof
b) typeof
c) &
d) *

11. The do not contain the actual data stored in a variable, but they contain a reference to
the variables.
a) Value Types
b) Reference value types
c) Reference Types
d) Value Reference types
12. Int, char, float are the examples of __________ data types.
a) Reference
b) Value
c) Static
d) Virtual

13. Object is an example of ______________ data type.


a) Reference
b) Value
c) Location
d) Address

14. Inner namespaces can be separated using _________.


a) _ (underscore)
b) . (Dot)
c) - (hyphen)
d) -> (Arrow)

15. __________ is mechanism to create multiple methods with the same name and unique
signature in the same class.
a) Constructor Overloading
b) Method Overriding
c) Method overloading
d) Constructor overriding

16. An ________ is a non-instantiable class which is either partially implemented, or not


at all implemented.
a) Static class
b) Sealed class
c) partial class
d) Abstract class

17. A / An _________ in ASP.NET is a collection of single-file or multiple files.


a) Namespace
b) Library
c) assembly
d) dictionary

18. DLL stands for __________.


a) data definition library
b) dynamic link library
c) digital library link
d) distributed link library

19. _________ describes the assembly.


a) Library
b) Manifest
c) Metadata
d) MSIL

Unit II
Chapter 1
1. Which programming model should you implement if you want to separate your
server-side code from your client-side layout code in a Web page?
a) Single-file model
b) Code-behind model
c) Inline model
d) Client-server model

2. ………………………………. are ASP.NET user controls.


a) .aspx
b) .ascx
c) web.config
d) .cs

3. HTML control runs at…………………….side.


a) client
b) server
c) user
d) browser

4. ASP.Net controls run at ………………………..side.


a) user
b) client
c) web
d) server

5. Every web application starts with a single location, called the………………..


a) root folder
b) main folder
c) header folder
d) middle folder

6. ……………………………….. is the process of adding breakpoints to an application


a) Compiling
b) Debugging
c) Designing
d) Coding

7. .................... directory Contains all the compiled .NET components (DLLs) that the
ASP.NET web application uses
a) App_Themes
b) App_Browsers
c) Bin
d) App_code

8. An error will occur when the code attempts to use the ......................... method.
a) Static.Parse()
b) Decimal.Parse()
c) Double.Parse()
d) Octal.Parse()

9. ASP.NET includes a graphical configuration tool called the...............................


a) Website Administration Type
b) Website Configuration Tool
c) Website Administration Tool
d) graphical Administration Type

10. The <appSettings> element is nested in the root.........................element.


a) <configuration>
b) <contains>
c) <settings>
d) <applications>

11. Every ASP.NET application is executed inside a separate ................................


a) user domain.
b) application domain.
c) server domain.
d) system domain.

12. A Web application is a _________ pages in different formats.


a) document
b) code
c) only A
d) both

13. A web application can be written in ____________.


a) C#
b) Visual Basic.Net
c) Jscript
d) All of above

14. A web form model is an extension of ________model of interaction to the web


applications.
a) event-driven
b) browser
c) HTML
d) Server

15. The form is submitted to the server by the ________ which in turn returns a full mark
up page or HTML page in response.
a) event-driven
b) browser
c) HTML
d) Server

16. _________ is the client state with the collection of various input fields in the web
form.
a) Page state
b) Session state
c) only B
d) both

17. __________is the collection of information obtained from various pages the user
visited and worked with.
a) Page state
b) Session state
c) only A
d) both

18. Event handlers takes ________parameters and return void.


a) one
b) two
c) three
d) four

19. Event handlers takes two parameters and return void.


a) Object & event arguments
b) Object & page events
c) function & event arguments
d) method & controls

20. All server controls derive from the basse control class in the______.
a) System.Web.UI namespace
b) System.Web.UI.WebControl
c) System.Web.UI.HtmlControl
d) System.Object

21. This ensures whether the page is executed for the first time.
a) Enable View State
b) Is Post Back
c) Session
d) Request

22. Application events are handled by ___________.


a) HTML file
b) ASP.NET file
c) global.asax file
d) web.config file

23. Visual Studio generates a default __________file for each project


a) .aspx file
b) .ascx file
c) global.asax file
d) web.config file

24. User can store their own settings in the web.config file, in an element called
____________.
a) <appSettings>
b) <configuration>
c) <ConfigSections>
d) <system.web>

Chapter 2
1. when the page is rendered in the client browser, the user starts in the ____________.
a) focused control
b) button control
c) List box control
d) Radio button control

2. Items are added in the ______by the Add() method


a) Radio button list
b) List box
c) check box list
d) button

3. Validation is done either at the server side or client side _________.


a) automatically
b) manually
c) Only A
d) Bot

4. These are complex user interface elements.


a) Calender
b) ADRotator
c) Rich Controls
d) Wizards

5. Its separates different tasks into different code files.


a) Multiple View
b) ADRotator
c) Calender
d) Wizards

6. Navigation control is____________.


a) flexible
b) configurable
c) pluggable
d) All of above

7. ASP.NET tags always begin with the prefix________.


a) input type
b) <a>
c) asp:
d) <div>
8. __________ property displays a text message when the user hovers the mouse above
the control.
a) ToolTip
b) AccessKey
c) Controls
d) Font

9. _________ are used heavily in the .NET class library to group a set of related
constants.
a) Units
b) Enumerations
c) Fonts
d) Colors

10. ___________ control is a server-side equivalent of the <ul> (unordered list) and <ol>
(ordered list) elements.
a) ListBox
b) DropDownList
c) BulletedList
d) CheckBoxList

11. _____________ property indicates whether a list box allows single selection or
multiple selections.
a) SelectedIndex
b) SelectedValue
c) SelectionMode
d) Items

12. Which of the following Web control provide CheckedChanged event?


a) Button
b) RadioButton
c) TextBox
d) ListBox

13. Which of the following is not a property of BulletedList Control?


a) BulletStyle
b) DisplayMode
c) SelectionMode
d) BulletImageUrl

14. Which of the following validator control ensures that the value of an input control
matches a specified pattern?
a) CompareValidator
b) CustomValidator
c) RangeValidator
d) RegularExpression Validator

15. Which of the following is the property of Range Validator control?


a) MaximumValue
b) ValueToCampare
c) ControlToCompare
d) Operator

16. Which of the following is the last event of ASP.NET page life cycle
a) Page.Init
b) Page.Unload
c) Page.Load
d) Page.PreRender

17. Which of the following Regular Expression Character is used to match any word
character?
a) \w
b) \W
c) \d
d) \D

18. Which of the following is not a member/property for Calendar Style?


a) DayStyle
b) TodayStyle
c) TitleStyle
d) WeekendDayStyle

19. Which of the following determines which day is displayed in the first column of the
calendar?
a) DayNameFormat
b) SelectedDates
c) FirstDayOfWeek
d) TodaysDate

20. In AdRotator By using which Frame target, the link opens in Current frame?
a) _blank
b) _self
c) _top
d) _parent

21. Which of the file extension is used by User Control?


a) .aspx
b) ..cs
c) .ascx
d) .asax

22. Which of the following TreeView Property Lets you specify how many levels of
nodes will be visible at first.?
a) MaxDataBindDepth
b) ExpandDepth
c) ShowExpandCollapse
d) NodeWrap

23. Which of the following TreeView Style Property applies to any node that contains
other nodes, except root nodes?
a) ParentNodeStyle
b) LeafNodeStyle
c) RootNodeStyle
d) HoverNodeStyle

24. Which of the following is not a nevigation control ?


a) TreeView
b) Menu
c) DetailsView
d) SiteMapPath

25. Which of the following Advertisement File Elements is the number that sets how
often an advertisement will appear?
a) NavigateUrl
b) Impressions
c) Keyword
d) AlternateText

26. Which of the following control look pretty much the same as ASP.NET web forms.?
a) AdRotator Control
b) MultiView Control
c) Chart Control
d) User Control

Unit III
Chapter 1

1. Which of the following is NOT a valid DOT NET Exception class


a) System.Exception
b) System.DivideByZeroException
c) System.OutOfMemoryException
d) System.StackMemoryException

2. Which of the following gives the number of catch blocks that can be defined for a
single try block:
a) one
b) two
c) three
d) The try block can have any number of catch blocks.

3. Which of the following statements applies to the situation where Exception is not
handled in the program:
a) The Compiler will not allow the program to run the code.
b) CLR will terminate the program execution at the point where it encounters an
exception.
c) CLR will not show any output. However, the code will execute successfully.
d) The Code executes successfully, and an error message gets printed.

4. Which of these keywords must be used to monitor exceptions?


a) try
b) catch
c) finally
d) else

5. Select the correct statement about an Exception?


a) It occurs during loading of program
b) It occurs during Just-In-Time compilation
c) It occurs at run time
d) All of the mentioned

6. Which of these keywords is not a part of exception handling?


a) try
b) catch
c) thrown
d) finally
7. In C#.NET if we do not catch the exception thrown at runtime then which of the
following will catch it?
a) compiler
b) CLR
c) linker
d) loader

8. Which of the following is the Object Oriented way of handling run-time errors?
a) onError
b) Exception
c) Errorcode
d) Heresult

9. In C#.NET, an exception is?


a) Compile time error
b) logical error
c) runtime error
d) syntax error

10. There are following statements are given below, which is correct about catch block in
C#.NET?
a) catch not supported in .net
b) The catch block is used to catch on number related exceptions
c) The catch block executes at least once during program execution
d) The catch block is used to catch all types of exceptions that occurred in a try
block, depends upon its exception class

11. There are following statements are given below, which is correct about throw in
C#.NET
a) The throw keyword is not supported in C#.NET
b) The throw keyword is used to throw an exception object programmatically
c) The throw keyword is not used to throw an exception object programmatically
d) The throw keyword is used in older versions of the .NET framework

12. Superclass of all types of exceptions classes.


a) DivideByzero
b) Exceptionclass
c) Exception
d) IndexError

13. what are not state management techniques


a) session
b) application
c) view
d) sessionless

14. Information store in application state is available


a) on same page
b) every page
c) everypage of website
d) on alternate page
15. which all are Server side state management technique
a) view
b) session
c) cookies
d) QueryString

16. what is inner Exception


a) Exception inside Exception
b) Exception outside Exception
c) method of exception
d) property of Exception

Chapter 2

1. ___________ uses a hidden field that ASP.NET automatically inserts in the final,
rendered HTML of a web page.
a) Caption
b) View state
c) Button state
d) Application State

2. The ________ is a dictionary collection, which means every item is stored in a


separate “slot” using a unique string name.
a) StateBag
b) Variable
c) Datatype
d) View

3. ASP.NET uses a _______ to make sure your view-state information can’t be altered
without your knowledge.
a) view code
b) app code
c) password
d) hash code
4. A ________ postback is a technique that extends the postback mechanism.
a) pageing
b) Cookies
c) URL encoding
d) cross-page

5. The _______ is the portion of the URL after the question mark.
a) string
b) URL encoding
c) query string
d) app string

6. If your view state contains some information you want to keep secret, you can _____
view state encryption.
a) enable
b) mute
c) view
d) disable

7. ________ are small files that are created in the web browser’s memory or on the
client’s hard drive.
a) Cookies
b) session
c) variable
d) string

8. __________ allows you to store any type of data in memory on the server.
a) Pageing
b) Cookies
c) Session-state
d) StateBag

9. ___________ Provides a string with the unique session identifier for the current
client.
a) Application
b) Cookies
c) Sessionit
d) SessionID

10. ___________ removes all the session items but doesn’t change the current session
identifier.
a) undo()
b) Commit()
c) Cancel()
d) Clear()

11. You configure session state through the __________ file for your current application.
a) web.config
b) global
c) aspx
d) aspx.cs

12. The ______ setting specifies the number of minutes that ASP.NET will wait, without
receiving a request, before it abandons the session.
a) id
b) del
c) timeout
d) wait

13. The _________ control navigates to the page specified in its NavigateUrl property.
a) HyperLink
b) button
c) label
d) textbox

14. __________ allows you to store global objects that can be accessed by any client.
a) Object
b) Access
c) Stateless
d) Application state

15. ________ provides the number of items in the current session collection
a) Item
b) ID
c) Count
d) Number

16. URL stands for _____.


a) Union Resource Loader
b) Uniform Resource Locator
c) Universal Resource Locator
d) Uniform Resource Loader

17. ___________ is work transparently, without the user being aware that information
needs to be stored.
a) Session
b) Data
c) View
d) Cookies

Chapter 3

1. What is/are true about master page?


a. Master page contains a <%@ Master %> directive instead of the normal <%@
Page %> directive.
b. ContentPlaceHolder control can be added only on master page
c. You can add as many ContentPlaceHolders to a Master Page as you need.
d. All of the above

2. Extenstion of master page is


a. .master
b. .Master
c. .ascx
d. none of these

3. At which level Theme can be applied?


a. Page level
b. Site level (through the Web.config file)
c. Individual control level
d. All of the above.

Unit IV
Chapter 1

1. ________is technology used to design asp.net program for data access


a) ADO
b) ADO.NET
c) ORACLE
d) SQL
2. To design Web Application, we need
a) SQL
b) DBMS
c) RDBMS
d) ORACLE

3. ______explorer is used to create database.


a) SERVER
b) FILE
c) TOOLBAR
d) DATABASE

4. To create new dataconnection which data source we require


a) server client
b) microsoft sql client
c) microsoft sql server(sqlClient)
d) sql server

5. SQL is standard data access language used to interact with--------database access


a) sql
b) relational
c) oracle
d) relational

6. Following is not standard symbol used in query


a) *
b) %
c) __
d) :

7. Following is not SQL aggregate function


a) avg
b) sum
c) mul
d) count

8. which namespace is not used for ado.net


a) system.data
b) system.data.sqlcommand
c) syste.data.sqlClient
d) system.sql

9. to read data from dataset ----- class is used.


a) data reader
b) data adpter
c) adapter
d) fill

10. Open() and Close() are methods of--------- class.


a) sqlcommand
b) sqlconnection
c) sqldata
d) sqlreader

11. The ..................... is a series of sistinct pieces of information seperated by semicolons.


a) string
b) query
c) connection
d) connectionstring

12. executeReader() is method of ......................class


a) reader
b) connection
c) sqlcommand
d) adapter

13. In disconnected data access model ................ is used to keep copy of data in memory
a) table
b) databse
c) dataset
d) adpater

14. fill() is method of____________.


a) datatable
b) dataset
c) data adapter
d) datareader

15. ___________method is used to sort table


a) desc
b) asce
c) asc
d) asecending

16. _________ are similer to funtion call


a) join
b) triggers
c) clauses
d) none of these

17. Following is not SQL command type


a) DDL
b) DML
c) DCL
d) STL

18. Following is not supported by visual studio


a) ODBC
b) OLEDB
c) ADO.NET
d) JDBC

19. Which query is used to update table rows or column?


a) alter
b) update
c) modify
d) none of these

20. Following is not DataAdapter class


a) select
b) insert
c) delete
d) modify

21. this is not ADO.NET object


a) connection
b) command
c) datareader
d) table

Chapter 2

1. What is full form of AJAX


a) Asynchronous JavaScript and XML
b) Asymmetric JavaScript and XML
c) Asynchronous Java and XML
d) Asynchronous JDBC and XML

2. Partial Refresh refers to_____


a) Defining some part of class somewhere else
b) Some part of page posted back to server
c) The whole page posted back to server
d) The whole page defined at different places

3. The event in AJAX triggers


a) VBScript
b) C# Code
c) Javascript
d) Refresh

4. Triggers collection contains


a) AsyncPostBackTrigger
b) Event Driven
c) Autoclick event
d) UpdatePanel

5. ContentTemplate is a property of
a) Textbox
b) UpdatePanel
c) Ajax Panel
d) Div

6. RenderMode property has values


a) Block and Inline
b) Panel and Refresh
c) Block and Refresh
d) Block and Panel

7. Time in milliseconds that the control has to wait before it displays its content is given
by
a) Visible
b) DisplayAfter
c) EnableViewState
d) DynamicaLayout

8. ___ property determines the control automatically saves its state for the use in
round trips.
a) Block and Inline
b) DisplayAfter
c) EnableViewState
d) DynamicaLayout

9. ____determine whether the progress template is dynamically rendered


a) DynamicVisible
b) Dynamic display
c) Dynamicstate
d) DynamicaLayout

10. Progressbar has a ASP control name as


a) UpdateProgress
b) DisplayProgress
c) ProgressBar
d) ShowProgress

Chapter 3

1. In ASP .NET binding types are


a) Single and repeated value binding
b) Single and Multi-value binding
c) Single and multiple value binding
d) None of these

2. Single-value data binding allows you to take a variable,


a property, or an expression and insert it
a) Statically
b) Dynamically
c) Both
d) None of these

3. Control supports repeated-value data binding if it provides a property


a) Data Source
b) Data Set
c) Both
d) None of these

4. The data a source controls include any control that implements the interface
a) IFile
b) IDisposable
c) IDataSource
d) None of these

5. To show multiple items in dropdownlist which property you have to set to the point to
the SqlDataSource
a) ID
b) DataSourceID
c) SqlDataSource
d) XMLDatasource

6. The data binding is performed


a) Before Page init
b) After Page render
c) After page Load
d) Before Page rendered

7. To give the user a way to enter the new values in Detail view which property have to
set true?
a) AutoGenerateDeleteButton
b) AutoGenerateInsertButton
c) AutoGenerateEditButton
d) None of these

8. Which of the following is approch of dynamic Text?


a) <%expression%>
b) <%#expression%>
c) <%#expression#%>
d) <%expression%>

9. Data Access in ADO.Net relies on


a) DataSet,DataProvider
b) DataSource,DataSet
c) DataSource only
d) DataProvider only

10. Eval function is used for?


a) Two-way Binding
b) One-way binding
c) Both
d) none of these

11. Bind function is used for?


a) Two way Binding
b) One way binding
c) Both
d) none of these

12. If you are using DataSet and you have to display the data in soted order then what will
you do?
a) Use Sort() method of DataTable
b) Use Sort() method of DataSet
c) Use DataView object with each sort
d) Use DataPaging and sort data

13. How do you execute multiple SQL statements using a DataReader?


a) Call the ExecuteReadermethod of two Command objects and assign the results
tothe same instance of a DataReader
b) Set the Command.CommandTypeproperty to multiple result sets
c) Call the ExecuteReadermethod of a single Command object twice
d) Set the Command.CommandTextproperty to multiple SQL statements
delimited by a semicolon.

14. What property contains the actual error message returned by SQL Server?
a) SqlException.Source and SqlError.Message
b) SqlException.Message and SqlError.Class
c) SqlError.Class and SqlException.Source
d) none of these

15. Which of the following give data in tabuler formate and allows paging, sorting,
editing and deleting for each record
a) DataList
b) Gridview
c) Repeater
d) FormView

16. You can add new row in DataTable by


a) AddRow()
b) NewRow()
c) Both
d) none of these

17. Which property can be used to configured the numbers and dates using a format string
a) FormatSting
b) DataFormatingString
c) DataFormate
d) DataFormatSring

18. _________________object can hold more than one rowset from the same data source
and the relationships between them.
a) DataReader Object
b) DataSet Object
c) OleDB connection object
d) Data Adapter

19. Where do we store connection string in ASP.NET?


a) Web.config
b) App.config
c) Global,asax
d) All

Unit V
Chapter 2

1. __________ is the default authentication type provided for Asp.Net.


a. Form Authentication
b. Windows Authentication
c. Passport Authentication
d. Profile Authentication

2. Which event is not there for Login control


a. LoggingIn
b. LoggedIn
c. LoginError
d. LoginStatus

3. Which tool is used to manage all the security settings for application in ASP.Net
a. Website Administration Tool
b. Website User Tool
c. Authentication Tool
d. Page Administration Tool

4. How to implement authentication via web.config?


a. Include the authentication element
b. Include the authorization element.
c. Include the identity element.
d. Include the deny element.

5. Where do you set authentication mode in ASP.Net application


a. Using global.asax file
b. Using cookies
c. Using webconfig file
d. Using web services

6. Which of the following is TRUE about Windows Authentication in ASP.NET?


a. Automatically determines role membership
b. Role membership determined only by user programming
c. ASP.NET does not support Windows Authentication
d. ASP.Net does not support Authorization

7. ______________ element in the web.config file to run code using the permissions of
a specific user
a. < credential> element
b. < authentication> element
c. < authorization> element
d. < identity> element

8. Which of the following is the default authentication mode for IIS?


a. Windows
b. Anonymous
c. Basic Authentication
d. Profile
9. Where do we include the user lists for Form authentication?
a. < Identity>
b. < authentication>
c. < credential>
d. < authorization>

10. In ASP.NET the < authorization > section contain which of the following elements?
a. < deny >
b. < allow >
c. Both A. and B
d. < Identity>

11. Which of the following authentication is best suited for a corporate network?
a. Form
b. User
c. Profile
d. Windows

12. Which security control is used to check the status of login


a. Login
b. LoginName
c. LoginView
d. LoginStatus

13. Which Namespace Allows Us To Form authentication?


a. System.Web.Ui.Forms.Security
b. System.Web.Security
c. System.Web.Configuration
d. System.Web.Authentication

14. What are the types of cookies?


a. Session cookies
b. Persistent cookies
c. Dummy cookies
d. Both A and B

15. Where do we include the user lists for windows authentication?


a. < Credential>
b. < authorization>
c. < identity>
d. < authentiation>

16. If any user has disabled cookies in their browsers, what can you do to enable them to
use forms authentication?
a. Set BoweserCookieEnabled=true
b. Set cookieless=true
c. Use the AutoDetect setting of the cookieless attribute
d. Set Authentication=true

17. Which view is provide by LoginView control


a. Anonymous template
b. View template
c. User template
d. Admin template

Chapter 3

1. What is full form of AJAX


a. Asynchronous JavaScript and XML
b. Asymmetric JavaScript and XML
c. Asynchronous Java and XML
d. Asynchronous JDBC and XML

2. Partial Refresh refers to


a. Defining some part of class somewhere else
b. Some part of page posted back to server
c. The whole page posted back to server
d. The whole page defined at different places

3. The event in AJAX triggers


a. VBScript
b. C# Code
c. Javascipt
d. Refresh

4. Triggers collection contains


a. AsyncPostBackTrigger
b. Event Driven
c. Autoclick event
d. UpdatePanel

5. ContentTemplate is a property of
a. Textbox
b. Update
c. PanelAjax
d. PanelDiv

6. RenderMode property has values


a. Block and Inline
b. Panel and Refresh
c. Block and Refresh
d. Block and Panel

7. Time in milliseconds that the control has to wait before it displays its content is given
by
a. Visible
b. DisplayAfter
c. EnableViewState
d. DynamicaLayout

8. ___ property determines the control automatically saves its state for the use in
round trips.
a. Block and Inline
b. DisplayAfter
c. EnableViewState
d. DynamicaLayout

9. ____determine whether the progress template is dynamically rendered


a. DynamicVisible
b. Dynamic display
c. Dynamicstate
d. DynamicaLayout

10. Progressbar has asp control name as


a. UpdateProgress
b. DisplayProgress
c. ProgressBar
d. ShowProgress

11. 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
a. 1,2
b. 1,2,3
c. 1,3,4
d. none of the above

12. Which of the following are features of AJAX


a. Live data binding
b. Declarative instantiation of client components
c. Client-side template rendering
d. All of the above

13. Which of the following makes AJAX unique


a. It works the same with all Web browsers.
b. It works as a stand-alone Web-development tool.
c. It makes data requests asynchronously.
d. It uses C++ as its programming language.

14. ________________ Combination of technologies gives AJAX its names.


a. ASP and XAML
b. Atlas and XML
c. Asynchronous JavaScript and XML
d. None of the mentioned

15. what are the thechnologies used by AJAX


a. XMLHttpRequest
b. Cascading Style Sheets (CSS)
c. Extensible HTML (XHTML)
d. All of the above

16. Which control can be used to update only the portion of the page?
a. UpdatePanel
b. ScriptManager
c. AsyncPostBackTrigger
d. None of the above

17. What is the name of the DLL that contains Ajax control tool kit?
a. Ajaxtoolkit.dll
b. Ajaxcontrol.dll
c. Ajaxcontroltoolkit.dll
d. control.dll

18. Which property is used to control the duration of Ajax request.


a. AsyncPostBackTimeout
b. AsyncTimeout
c. Timeout
d. PostBackTimeout

19. What is the name of object used for AJAX request?


a. HttpRequest
b. xmlRequest
c. XMLHTTPRequest
d. Request

20. All of the following are controls of Ajax except


a. ScriptManager
b. ScriptManager
c. UpdateData
d. UpdatePanel

21. How many 'ScriptManager' control can be added on a ASP.NET web page?
a. only one
b. only one
c. only two
d. none of the above

22. What are the disadvantages of AJAX?


a. Dependent on JavaScript
b. Security issues
c. Debugging is difficult
d. All of the above

23. What sever support AJAX?


a. WWW
b. HTTP
c. SMTP
d. all of the above

24. What does the XMLHttpRequest object accomplish in Ajax?


a. It's the programming language used to develop Ajax applications.
b. It provides a means of exchanging structured data between the Web server and
client.
c. It provides the ability to asynchronously exchange data between Web
browsers and a Web server.
d. It provides the ability to mark up and style the display of Web-page text.

You might also like