0% found this document useful (0 votes)
296 views

WORD MCQ With ANS OF AWP

The document discusses key concepts related to the .NET framework: 1) It covers features like the Common Type System, Common Language Runtime, and Garbage Collector which enable multiple language support and memory management on the .NET platform. 2) Concepts around assemblies, namespaces, and the .NET Framework Class Library which provides pre-written reusable code are explained. 3) The roles of the Common Language Specification, Common Language Runtime and how they enable interoperability and manage program execution are summarized.

Uploaded by

dgau
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)
296 views

WORD MCQ With ANS OF AWP

The document discusses key concepts related to the .NET framework: 1) It covers features like the Common Type System, Common Language Runtime, and Garbage Collector which enable multiple language support and memory management on the .NET platform. 2) Concepts around assemblies, namespaces, and the .NET Framework Class Library which provides pre-written reusable code are explained. 3) The roles of the Common Language Specification, Common Language Runtime and how they enable interoperability and manage program execution are summarized.

Uploaded by

dgau
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/ 30

UNIT 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
Answer= A

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
Answer= D

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
Answer= A

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
Answer= B

5) Most of the functionality of the .NET framework classes resides in the namespace called ________.
A) Data
B) Service
C) System
D) Drawing
Answer= C

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
Answer= A

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
Answer= C

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
Answer= C

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
Answer= D

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 Langauage Specification
Answer= A

11) What is the full for of IDE?


A) Internet Development Environment
B) Integrated Development Environment
C) Internal Devlopment Environment
D) Integrated Data Environment
Answer= B

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
Answer= C

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
Answer= A

14) .NET Framework Class library Structure's related classes are organised into groups called ______
A) Files
B) Namespaces
C) Structure
D) Sub-Classes
Answer= B

15) In .NET Framework, ___________can contain more than one project.


A) Solution Explorer
B) properties Window
C) File Explorer
D) Form Window
Answer= A

16) Which method of an Array creates a duplicate copy


A) Copy()
B) CopyTo()
C) Clone()
D) Sort()
Answer= C

17) ________________ inserts a string a a specified index position.


A) IndexOf()
B) insert()
C) LastIndexOf()
D) put()
Answer= B

18) _________________ is a static property of DateTime Class


A) AddDays()
B) AddMonths()
C) Now
D) ToString()
Answer= C

19) Which of the following does the actual .Net code execute?
A) CLS
B) MSIL
C) CTS
D) CLR
Answer= D

20) How do we identify that the page is Postback?


A) IsPostBack property
B) Smart Navigation property
C) AutoPostBack property
D) By using session
Answer= A
21) ______________ is the DataType return in IsPostback property
A) boolean
B) int
C) string
D) float
Answer= A

22) Which file contains settings for all .NET application types, such as Windows, Console, ClassLibrary, and
Web applications?
A) Web.config
B) Machine.config
C) Global.asax
D) abc.ascx
Answer= B

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


A) Init
B) Load
C) Import
D) command
Answer= C

25) Which of the following operator returns the size of a data type in C#?
A) sizeof
B) typeof
C) &</a>
D) *
Answer= A

26) 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
Answer= D

27) Default access for the members of the class is _______.


A) Private
B) Public
C) Protected
D) Default
Answer= A

28) 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
Answer= B

29) A _________ constructor does not have any parameter


A) inherited
B) parameterised
C) default
D) special
Answer= C

30) The keyword _________implies that only one instance of the member exists for a class.
A) private
B) public
C) Protected
D) static
Answer= D

31) We can use __________ to implement multiple inheritance in C#


A) interfaces
B) inheritances
C) object
D) constructor
Answer= A

32) When a class is declared _________, it cannot be inherited


A) Private
B) As base
C) sealed
D) as parentt
Answer= C

33) Which of the following converts a type to a double type in C#?


A) ToDecimal
B) ToDouble
C) ToInt16
D) ToInt32
Answer= B

34) Which of the following operator returns the address of an variable in C#?
A) sizeof
B) typeof
C) &
D) *
Answer= C

35) 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
Answer= C
36) Int, char, float are the examples of __________ data types
A) Reference
B) Value
C) Static
D) Virtual
Answer= B

37) Object is an example of ______________ data type.


A) Reference
B) Value
C) Location
D) Address
Answer= A

38) Inner namespaces can be separated using _________


A) _ (underscore)
B) . (Dot)
C) - (hyphen)
D) -> (Arrow)
Answer= B

39) __________ 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
Answer= C

40) 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
Answer= D

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


A) Namespace
B) Library
C) assembly
D) dictionary
Answer= C

42) DLL stands for __________


A) data definition library
B) dynamic link library
C) digital library link
D) distributed link library
Answer= B
43) _________ describes the assembly.
A) Library
B) Manifest
C) Metadata
D) MSIL
Answer= B

UNIT 2

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
Answer= B

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


A) .aspx
B) .ascx
C) web.config
D) .cs
Answer= B

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


A) client
B) server
C) user
D) browser
Answer= A

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


A) user
B) client
C) web
D) server
Answer= D

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


A) root folder
B) main folder
C) header folder
D) middle folder
Answer= A

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


A) Compiling
B) Debugging
C) Designing
D) Coding
Answer= B
7) .................... directoryContains all the compiled .NET components (DLLs) that the ASP.NET web application
uses
A) App_Themes
B) App_Browsers
C) Bin
D) App_code
Answer= C

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()
Answer= B

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
Answer= C

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


A) <configuration>
B) <contains>
C) <settings>
D) <applications>
Answer= A

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


A) user domain.
B) application domain.
C) server domain.
D) system domain.
Answer= B

12) A web application can be written in


A) C#
B) Cobal
C) Qbasic
D) C
Answer= A

13) A web form model is an extension of ________model of interaction to the web applications.
A) event-driven
B) browser
C) HTML
D) Server
Answer= A
14) 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
Answer= B

15) _________ is the client state with the collection of various input fields in the web form.
A) Page state
B) Session state
C) Application state
D) View state
Answer= A

16) __________is the collection of information obtained from various pages the user visited and worked with.
A) Page state
B) Session state
C) Application state
D) View state
Answer= B

17) Event handlers takes ________parameters and return void.


A) one
B) two
C) three
D) four
Answer= B

18) Event handlers takes two parameters and return void.


A) Object & event arguments
B) Object & page events
C) function & event arguments
D) method & controls
Answer= A

19) 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
Answer= A

20) This ensures whether the page is executed for the first time.
A) Enable View State
B) Is Post Back
C) Session
D) Request
Answer= B
21) Application events are handled by ___________.
A) HTML file
B) ASP.NET file
C) global.asax file
D) web.config file
Answer= C

22) Visual Studio generates a default __________file for each project


A) .aspx file
B) .ascx file
C) global.asax file
D) web.config file
Answer= D

23) User can store their own settings in the web.config file, in an element called ____________.
A) <appSettings>
B) <configuration>
C) <ConfigSections>
D) <system.web>
Answer= A

24) 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
Answer= A

25) Items are added in the ______by the Add() method


A) Radio button list
B) List box
C) check box list
D) button
Answer= B

26) These are complex user interface elements.


A) Calender
B) ADRotator
C) Rich Controls
D) Wizards
Answer= C

27) Its separates different tasks into different code files.


A) Multiple View
B) ADRotator
C) Calender
D) Wizards
Answer= A
28) ASP.NET tags always begin with the prefix________.
A) input type
B) <a>
C) asp:
D) <div>
Answer= C

29) __________ property displays a text message when the user hovers the mouse above the control.
A) ToolTip
B) AccessKey
C) Controls
D) Font
Answer= A

30) _________ are used heavily in the .NET class library to group a set of related constants.
A) Units
B) Enumerations
C) Fonts
D) Colors
Answer= B

31) ___________ control is a server-side equivalent of the <ul> (unordered list) and <ol> (ordered list)
elements.
A) ListBox
B) DropDownList
C) BulletedList
D) CheckBoxList
Answer= C

32) _____________ property indicates whether a list box allows single selection or multiple selections.
A) SelectedIndex
B) SelectedValue
C) SelectionMode
D) Items
Answer= C

33) Which of the following Web control provide CheckedChanged event?


A) Button
B) RadioButton
C) TextBox
D) ListBox
Answer= B

34) Which of the following is not a property of BulletedList Control?


A) BulletStyle
B) DisplayMode
C) SelectionMode
D) BulletImageUrl
Answer= C

35) 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
Answer= D

36) Which of the following is the property of Range Validator control?


A) MaximumValue
B) ValueToCampare
C) ControlToCompare
D) Operator
Answer= A

37) 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
Answer= B

38) Which of the following Regular Expression Character is used to match any word character?
A) \w
B) \W
C) \d
D) \D
Answer= A

39) Which of the following is not a member/property for Calendar Style?


A) DayStyle
B) TodayStyle
C) TitleStyle
D) WeekendDayStyle
Answer= B

40) Which of the following determines which day is displayed in the first column of the calendar?
A) DayNameFormat
B) SelectedDates
C) FirstDayOfWeek
D) TodaysDate
Answer= C

41) In AdRotator By using which Frame target, the link opens in Current frame?
A) _blank
B) _self
C) _top
D) _parent
Answer= B

42) Which of the file extension is used by User Control?


A) .aspx
B) ..cs
C) .ascx
D) .asax
Answer= C

43) 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
Answer= B

44) 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
Answer= A

45) Which of the following is not a nevigation control ?


A) TreeView
B) Menu
C) DetailsView
D) SiteMapPath
Answer= C

46) 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
Answer= B

47) 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
Answer= D

UNIT 3

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
Answer= D
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.
Answer= D

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.
Answer= B

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


A) try
B) catch
C) finally
D) else
Answer= A

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) It occurs at unloading time
Answer= C

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


A) try
B) catch
C) thrown
D) finally
Answer= C

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
Answer= B

8) Which of the following is the Object Oriented way of handling run-time errors?
A) onError
B) Exception
C) Errorcode
D) Heresult
Answer= B
9) In C#.NET, an exception is?
A) Compile time error
B) logical error
C) runtime error
D) syntax error
Answer= C

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
Answer= D

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
Answer= B

12) superclass of all types of exceptions classes.


A) DivideByzero
B) Exceptionclass
C) Exception
D) IndexError
Answer= C

13) what are not state management techniques


A) session
B) application
C) view
D) sessionless
Answer= D

14) Information store in application state is available


A) on same page
B) every page
C) everypage of website
D) on alternate page
Answer= C

15) which all are Server side state management technique


A) view
B) session
C) cookies
D) QueryString
Answer= B

16) what is inner Exception


A) Exception inside Exception
B) Exception outside Exception
C) method of exception
D) property of Exception
Answer= D

17) ___________ 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
Answer= B

18) 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
Answer= A

19) 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
Answer= D

20) A ________ postback is a technique that extends the postback mechanism.


A) pageing
B) Cookies
C) URL encoding
D) cross-page
Answer= D

21) The _______ is the portion of the URL after the question mark.
A) string
B) URL encoding
C) query string
D) app string
Answer= C

22) If your view state contains some information you want to keep secret, you can _____ viewstate
encryption.
A) enable
B) mute
C) view
D) disable
Answer= A

23) ________ 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
Answer= A

24) __________ allows you to store any type of data in memory on the server.
A) Pageing
B) Cookies
C) Session-state
D) StateBag
Answer= C

25) ___________ Provides a string with the unique session identifier for the current client.
A) Application
B) Cookies
C) Sessionit
D) SessionID
Answer= D

26) ___________ removes all the session items but doesn’t change the current session identifier.
A) undo()
B) Commit()
C) Cancel()
D) Clear()
Answer= D

27) You configure session state through the __________ file for your current application
A) web.config
B) global
C) aspx
D) aspx.cs
Answer= A

28) 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
Answer= C

29) The _________ control navigates to the page specified in its NavigateUrl property.
A) HyperLink
B) button
C) label
D) textbox
Answer= A
30) __________ allows you to store global objects that can be accessed by any client.
A) Object
B) Access
C) Stateless
D) Application state
Answer= D

31) ________ provides the number of items in the current session collection
A) Item
B) ID
C) Count
D) Number
Answer= C

32) URL stands for _____.


A) Union Resource Loader
B) Uniform Resource Locator
C) Universal Resource Locator
D) Uniform Resource Loader
Answer= B

33) ___________ is work transparently, without the user being aware that information needs to be stored.
A) Session
B) Data
C) View
D) Cookies
Answer= D

UNIT 4

1) ------IS technology used to design asp.net program for data access


A) ADO
B) ADO.NET
C) ORACLE
D) SQL
Answer= B

2) TO design WEB APPLICATION WE NEED


A) SQL
B) DBMS
C) RDBMS
D) ORACLE
Answer= C

3) -----EXPLORER IS USED TO CREATE DATABASE


A) SERVER
B) FILE
C) TOOLBAR
D) DATABASE
Answer= A
4) TO Creat new dataconnection which data source we require
A) server client
B) microsoft sql client
C) microsoft sql server(sqlClient)
D) sql server
Answer= C

5) sql is standard data access language used to interact with--------database


A) access
B) sql
C) relational
D) oracle
Answer= C

6) following is not standard symbol used in query


A) *
B) %
C) ()
D) :
Answer= D

7) following is not SQL aggregate fucntion


A) avg
B) sum
C) mul
D) count
Answer= C

8) which namespace is not used for ado.net


A) system.data
B) system.data.sqlcommand
C) syste.data.sqlClient
D) system.sql
Answer= D

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


A) data reader
B) data adpter
C) adapter
D) fill
Answer= A

10) open() and close() are methods of--------- class.


A) sqlcommand
B) sqlconnection
C) sqldata
D) sqlreader
Answer= B

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


A) string
B) query
C) connection
D) connectionstring
Answer= D

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


A) reader
B) connection
C) sqlcommand
D) adapter
Answer= C

13) In disconnected data access model ................ is used to keep copy of data in memory
A) table
B) databse
C) dataset
D) adpater
Answer= C

14) fill() is method of-.....................


A) datatable
B) dataset
C) data adapter
D) datareader
Answer= C

15) ..... method is used to sort table


A) desc
B) asce
C) asc
D) asecending
Answer= A

16) ............. are similer to funtion call


A) join
B) triggers
C) clouses
D) non of these
Answer= B

17) follwing is not SQL command type


A) DDL
B) DML
C) DCL
D) STL
Answer= D

19) following is not supported bye visual studio


A) ODBC
B) OLEDB
C) ADO.NET
D) JDBC
Answer= D

20) which query is used to update table rows or column


A) alter
B) update
C) modify
D) ONLY A
Answer= A

21) following is not DataAdapter class


A) select
B) insert
C) delete
D) modify
Answer= D

22) this is not ADO.NET object


A) connection
B) command
C) datareader
D) table
Answer= D

23) 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
Answer= A

24) 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
Answer= B

25) The event in AJAX triggers


A) VBScript
B) C# Code
C) Javascipt
D) Refresh
Answer= C

26) Triggers collection contains


A) AsyncPostBackTrigger
B) Event Driven
C) Autoclick event
D) UpdatePanel
Answer= A
27) ContentTemplate is a property of
A) Textbox
B) UpdatePanel
C) Ajax Panel
D) Div
Answer= B

28) RenderMode property has values


A) Block and Inline
B) Panel and Refresh
C) Block and Refresh
D) Block and Panel
Answer= A

29) 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
Answer= B

30) ___ property determines the control automatically saves its state for the use in
round trips.
A) Block and Inline
B) DisplayAfter
C) EnableViewState
D) DynamicaLayout
Answer= C

31) ____determine whether the progress template is dynamically rendered


A) DynamicVisible
B) Dynamic display
C) Dynamicstate
D) DynamicaLayout
Answer= D

32) Progressbar has a asp control name as


A) UpdateProgress
B) DisplayProgress
C) ProgressBar
D) ShowProgress
Answer= A

33) 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) Single value binding
Answer= A
34) The data a source controls include any control that implements the interface
A) IFile
B) IDisposable
C) IDataSource
D) Icollection
Answer= C

35) 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
Answer= B

36) The data binding is perform


A) Before Page init
B) After Page render
C) After page Load
D) Before Page rendered
Answer= D

37) 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) AutoGenerateUpdateButton
Answer= C

38) Which of the following is approch of dynamic Text?


A) <%expression%>
B) <%#expression%>
C) <%#expression#%>
D) <%expression%>
Answer= B

39) Data Access in ADO.Net relies on


A) DataSet,DataProvider
B) DataSource,DataSet
C) DataSource only
D) DataProvider only
Answer= A

40) 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
Answer= C

41) 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.
Answer= D

42) 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) SqlError object
Answer= A

43) 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
Answer= B

44) You can add new row in DataTable by


A) AddRow()
B) NewRow()
C) UpdateRow()
D) CancelRow()
Answer= B

45) Which property can be used to configured the numbers and dates using a format string
A) FormatSting
B) DataFormatingString
C) DataFormate
D) DataFormatSring
Answer= B

46) _________________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
Answer= B

47) Where do we store connection string in ASP.NET?


A) Web.config
B) App.config
C) Global,asax
D) Abc.ascx
Answer= A
UNIT 5

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


A) Form Authentication
B) Windows Authentication
C) Passport Authentication
D) Profile Authentication
Answer= B

2) Which event is not there for Login control


A) LoggingIn
B) LoggedIn
C) LoginError
D) LoginStatus
Answer= D

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
Answer= A

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.
Answer= B

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
Answer= C

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
Answer= A

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
Answer= D
8) Which of the following is the default authentication mode for IIS?
A) Windows
B) Anonymous
C) Basic Authentication
D) Profile
Answer= B

9) Where do we include the user lists for Form authentication?


A) < Identity>
B) < authentication>
C) < credential>
D) < authorization>
Answer= C

10) Which of the following authentication is best suited for a corporate network?
A) Form
B) User
C) Profile
D) Windows
Answer= D

11) Which security control is used to check the status of login


A) Login
B) LoginName
C) LoginView
D) LoginStatus
Answer= D

12) Which Namespace Allows Us To Formauthentication ?


A) System.Web.Ui.Forms.Security
B) System.Web.Security
C) System.Web.Configuration
D) System.Web.Authentication
Answer= B

13) What are the types of cookies?


A) system cookies
B) Persistent cookies
C) Dummy cookies
D) service cookies
Answer= B

14) Where do we include the user lists for windows authentication?


A) < Credential>
B) < authorization>
C) < identity>
D) < authentiation>
Answer= B

15) 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
Answer= C

16) Which view is provide by LoginView control


A) Anonymous template
B) View template
C) User template
D) Admin template
Answer= A

17) 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
Answer= A

18) 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
Answer= B

19) The event in AJAX triggers


A) VBScript
B) C# Code
C) Javascipt
D) Refresh
Answer= C

20) Triggers collection contains


A) AsyncPostBackTrigger
B) Event Driven
C) Autoclick event
D) UpdatePanel
Answer= A

21) ContentTemplate is a property of


A) Textbox
B) UpdatePanel
C) Ajax Panel
D) Div
Answer= B

22) RenderMode property has values


A) Block and Inline
B) Panel and Refresh
C) Block and Refresh
D) Block and Panel
Answer= A

23) 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
Answer= B

24) ___ property determines the control automatically saves its state for the use in
round trips.
A) Block and Inline
B) DisplayAfter
C) EnableViewState
D) DynamicaLayout
Answer= C

25) ____determine whether the progress template is dynamically rendered


A) DynamicVisible
B) Dynamic display
C) Dynamicstate
D) DynamicaLayout
Answer= D

26) Progressbar has asp control name as


A) UpdateProgress
B) DisplayProgress
C) ProgressBar
D) ShowProgress
Answer= A

27) 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.
Answer= C

28) ________________ Combination of technologies gives AJAX its names.


A) ASP and XAML
B) Atlas and XML
C) Asynchronous JavaScript and XML
D) Xml
Answer= C

29) Which control can be used to update only the portion of the page?
A) UpdatePanel
B) ScriptManager
C) AsyncPostBackTrigger
D) MasterPage
Answer= A

30) 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
Answer= B

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


A) AsyncPostBackTimeout
B) AsyncTimeout
C) Timeout
D) PostBackTimeout
Answer= A

32) What is the name of object used for AJAX request?


A) HttpRequest
B) xmlRequest
C) XMLHTTPRequest
D) Request
Answer= C

33) All of the following are controls of Ajax except


A) ScriptManager
B) ScriptManagerProxy
C) UpdateData
D) UpdatePanel
Answer= C

34) How many 'ScriptManager' control can be added on a ASP.NET web page?
A) only one
B) more than one
C) only two
D) only four
Answer= A

35) What sever support AJAX ?


A) WWW
B) HTTP
C) SMTP
D) WWF
Answer= B

36) 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.
Answer= B
Answers

unit 1

1) A 2) D 3) A 4) B 5) C 6) A 7) C 8) C 9) D 10) A 11) B 12) C 13) A 14) B 15) A 16) C 17) B

18) C 19) D 20) A 21) A 22) B 23) C 25) A 26) D 27) A 28) B 29) C 30) D 31) A 32) C 33) B

34) C 35) C 36) B 37) A 38) B 39) C 40) D 41) C 42) B 43) B

Unit 2

1) B 2) B 3) A 4) D 5) A 6) B 7) C 8) B 9) C 10) A 11) B 12) A 13) A 14) B 15) A 16) B 17) B

18) A 19) A 20) B 21) C 22) D 23) A 24) A 25) B 26) C 27) A 28) C 29) A 30) B 31) C 32) C

33) B 34) C 35) D 36) A 37) B 38) A 39) B 40) C 41) B 42) C 43) B 44) A 45) C 46) B 47) D

Unit 3

1) D 2) D 3) B 4) A 5) C 6) C 7) B 8) B 9) C 10) D 11) B 12) C 13) D 14) C 15) B 16) D 17) B

18) A 19) D 20) D 21) C 22) A 23) A 24) C 25) D 26) D 27) A 28) C 29) A 30) D 31) C 32) B

33) D

Unit 4

1) B 2) C 3) A 4) C 5) C 6) D 7) C 8) D 9) A 10) B 11) D 12) C 13) C 14) C 15) A 16) B 17) D

19) D 20) A 21) D 22) D 23) A 24) B 25) C 26) A 27) B 28) A 29) B 30) C 31) D 32) A 33) A

34) C 35) B 36) D 37) C 38) B 39) A 40) C 41) D 42) A 43) B 44) B 45) B 46) B 47) A

Unit 5

1) B 2) D 3) A 4) B 5) C 6) A 7) D 8) B 9) C 10) D 11) D 12) B 13) B 14) B 15) C 16) A 17) A

18) B 19) C 20) A 21) B 22) A 23) B 24) C 25) D 26) A 27) C 28) C 29) A 30) B 31) A 32) C

33) C 34) A 35) B 36) B

You might also like