AWP Sem 5 QB Answers
AWP Sem 5 QB Answers
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
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
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
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
20. Which of the following does the actual .Net code execute?
a) CLS
b) MSIL
c) CTS
d) CLR
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
Chapter 2
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
4. The keyword _________implies that only one instance of the member exists for a
class.
a) private
b) public
c) Protected
d) Static
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
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
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
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
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()
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
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
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
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
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
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
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
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
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
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.
8. Which of the following is the Object Oriented way of handling run-time errors?
a) onError
b) Exception
c) Errorcode
d) Heresult
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
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
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
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
Unit IV
Chapter 1
13. In disconnected data access model ................ is used to keep copy of data in memory
a) table
b) databse
c) dataset
d) adpater
Chapter 2
5. ContentTemplate is a property of
a) Textbox
b) UpdatePanel
c) Ajax Panel
d) Div
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
Chapter 3
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
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
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
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
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
Unit V
Chapter 2
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
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
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
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
Chapter 3
5. ContentTemplate is a property of
a. Textbox
b. Update
c. PanelAjax
d. PanelDiv
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
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
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