WORD MCQ With ANS OF AWP
WORD MCQ With ANS OF AWP
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
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
19) Which of the following does the actual .Net code execute?
A) CLS
B) MSIL
C) CTS
D) CLR
Answer= D
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
10) Which of the following authentication is best suited for a corporate network?
A) Form
B) User
C) Profile
D) Windows
Answer= D
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
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
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
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
unit 1
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
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
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
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
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