BCA602QB

Download as pdf or txt
Download as pdf or txt
You are on page 1of 31

BCA Sem-VI

BCA - 602 Advance .NET Frame Work Using C#


JULY: 2020
QUESTION BANK

1. Web.config file is used…?


A. Configures the time that the server-side codebehind module is called
B. To store the global information and variable definitions for the application
C. To configure the web server
D. To configure the web browser
ANS : B

2. Which of the following object is not an ASP component?


A. LinkCounter
B. Counter
C. AdRotator
D. File Access
ANS: A

3. Difference between Response.Write() and Response.Output.Write().


A. Response.Output.Write() allows you to buffer output
B. Response.Output.Write() allows you to write formatted output
C. Response.Output.Write() allows you to flush output
D. Response.Output.Write() allows you to stream output
ANS : B

4. Which of the following method must be overridden in a custom control?


A. The Paint() method
B. The Control_Build() method
C. The default constructor
D. The Render() method
ANS: D

5. How do we create a FileSystemObject?


A. Server.CreateObject(“Scripting.FileSystemObject”)
B. Create(“FileSystemObject”)
C. Create Object:”Scripting.FileSystemObject”
D. Server.CreateObject(“FileSystemObject”)
ANS: A

6. What class does the ASP.NET Web Form class inherit from by default?
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
ANS: B
7. Attribute must be set on a validator control for the validation to work.
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
ANS: A

8. Caching type supported by ASP.Net


A. Output Caching
B. DataCaching
C. a and b
D. none of the above
ANS:C

9. What is used to validate complex string patterns like an e-mail address?


A. Extended expressions
B. Basic expressions
C. Regular expressions
D. Irregular expressions
ANS:C

10. File extension used for ASP.NET files.


A. .Web
B. .ASP
C. .ASPX
D. None of the above
ANS : B

11. Why is Global.asax is used?


A. Declare Global variables
B. Implement application and session level events
C. No use
D. none of the above
ANS : B

12. Default Session data is stored in ASP.Net.


A. StateServer
B. Session Object
C. InProcess
D. all of the above
ANS:C

13. Default scripting language in ASP.


A. EcmaScript
B. VBScript
C. PERL
D. JavaScript
ANS : B
14. Which object can help you maintain data across users?
A. Application object
B. Session object
C. Response object
D. Server object
ANS: A

15. Which of the following ASP.NET object encapsulates the state of the client?
A. Session object
B. Application object
C. Response object
D. Server object
ANS: A

16. Which of the following control is used to validate that two fields are equal?
A. RegularExpressionValidator
B. CompareValidator
C. equals() method
D. RequiredFieldValidator
ANS : B

17. Mode of storing ASP.NET session


A. InProc
B. StateServer
C. SQL Server
D. All of the above
ANS: D

18. Which of the following is not the way to maintain state?


A. View state
B. Cookies
C. Hidden fields
D. Request object
ANS: D

19. What are the types of cookies?


A. Session cookies
B. Persistent cookies
C. Dummy cookies
D. Option A and B are correct
ANS : D

20. What are the advantages of AJAX?


A. AJAX is a platform-independent technology
B. It provides partial-page updates
C. Improved performance
D. All of the above
ANS: D

21. What is/are the advantages of master page?


A. It helps to display common content in multiple pages.
B. They allow you to centralize the common functionality of your pages so that you can
make updates in just one place.
C. It helps to create a common page layout.
D. All of the above.
ANS: D

22. Which is the mandatory property for all validation controls?


A. ControlToValidate
B. Message
C. EnableClientScript
D. EnableServerScript
ANS: A

23. Which object works on client side in state management system?


A. ViewState
B. cookies
C. Query strings
D. All of the above
ANS: D

24. How many types of caching ASP.NET supports?


A. Page Output Caching
B. Partial Page Caching
C. Data Caching
D. All of the above
ANS: D

25. How many 'ScriptManager' control can be added on a ASP.NET web page?
A. Only One
B. More than One
C. Only Two
D. None of the above
ANS: A

26. What are the client-side state management options that ASP.NET supports?
A. Application
B. Session
C. Querystring
D. Option a and b are correct
ANS:C
27. By default, when you use Page Output Caching, at what location page is cached?
A. Only on web server
B. Only on Client
C. Web server, any proxy servers, and browser
D. All of the above.
ANS:C

28. What are the Command Object Methods?


A. ExecuteNonQuery
B. ExecuteReader
C. ExecuteScalar
D. All of the above
ANS: D

29. Which object data is included in bookmarks and e-mailed URLs?


A. ViewState
B. cookies
C. Query strings
D. All of the above
ANS:C

30. Application_Start event is available in ________.


A. Web.config
B. Local.asax
C. Global.asax
D. None of These
ANS:C

31. __________ is not an ASP component.


A. Counter
B. AdRotator
C. File Access
D. LinkCounter
ANS: D

32. WSDL stands for ___________?


A. Web Server Description Language
B. Web Server Descriptor Language
C. Web Services Description Language
D. Web Services Descriptor Language
ANS:C

33. Which of the following validation control is used to ensure that an user does not skip a
form entity field?
A. CompareValidator
B. RequiredFieldValidator
C. RangeValidator
D. RegularExpressionValidator
ANS : B

34. Validation Summary control in a webpage.


A. Shows all the error messages from the validators via email
B. Shows all the error messages from the validators in one specific spot on the page
C. Shows all the error messages from the validators in the next page
D. None of these above
ANS : B

35. Validation control displays error messages using which of the following methods?
A. Inline
B. Summary
C. In place and summary
D. All of these above
ANS: D

36. We can manage states in asp.net application using


A. Session Objects
B. Application Objects
C. Viewstate
D. All of the above
ANS: D

37. Which of the following authentication is best suited for a corporate network?
A. Windows
B. Form
C. User
D. All
ANS: A

38. Which of the following object is used along with an application object in order to ensure
that only one process accesses a variable at a time?
A. Synchronize
B. Synchronize()
C. ThreadLock
D. Lock()
ANS : B

39. What attributes do you use to hide a public .Net class from COM?
A. DLLImport Attributes
B.ComVisible attributes
C. COM Interop
D. All
ANS : B
40. Where do we include the user lists for windows authentication?
A. < Credential>
B. < authorization>
C. < identity>
D. < authentiation>
ANS : B

41. Which of the following is not a member of ADODBCommand object?


A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteReader
ANS:C

42. Which DLL translates XML to SQL in IIS?


A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLIIS.dll
ANS: A

43. ______________ element in the web.config file is used to run code using the permissions
of a specific user
A. < credential> element
B. < authentication> element
C. < authorization> element
D. < identity> element
ANS: D

44. How do you get information from a form that is submitted using the "post" method?
A. Request.QueryString
B. Request.Form
C. Response.write
D. Response.writeln
ANS : B

45. The RangeValidator control supports the following data types


A. Integer only
B. Date, Integer and String
C. Only String
D. Date and Integer
ANS : B

46. Two methods with the same name but with different parameters.
A. Overloading
B. Loading
C. Multiplexing
D. Duplexing
ANS: A

47. An Event has ________ as default return type


A. No return type for events
B. Double
C. Integer
D. String
ANS: A

48. How many web.config files that can be there an ASP.NET application?
A. only one
B. only two
C. upto 10
D. one or more
ANS: D

49. _____________ allow to encapsulate discrete units of functionality and provide a


graphical representation of that functionality to the user
A. controls
B. object
C. class
D. graphics
ANS: A

50. Difference between Convert.ToString() and ToString()


A. Convert.ToString() handles null values but ToString() doesn't
B. ToString() output as per format supplied
C. Convert.ToString() only handles null values
D. ToString() handles null values but Convert.ToString() doesn't
ANS: A

51. A variable which is declared inside a method is called a ________ variable


A. Serial
B. Local
C. Private
D. Static
ANS : B

52. If you want to add an array in ArrayList then which method of ArrayList will be used?
A. AddRange
B. Add
C. AddArray
D. None of the above
ANS: A
53. Feature of a local variable
A. It can be used anywhere in the program
B. It must accept a class
C. It must be declared within a method
D. It represent a class object
ANS:C

54. int keyword targets to which .Net type?


A. System.Int8
B. System.Int16
C. System.Int32
D. System.Int64
ANS:C

55. When does Garbage collector run?


A. When application is running low of memory
B. It runs random
C. When application is running for more than 15 minutes
D. None of the above
ANS: A

56. Different ways a method can be overloaded in C#.NET


A. Different parameter data types
B. Different number of parameters
C. Different order of parameters
D. a and b
ANS: D

57. If you want to validate the email addresses, Social Security numbers, phone numbers,
and dates types of data, which validation control will be used?
A. RegularExpressionValidator
B. CompareValidator
C. RequiredFieldValidator
D. None of the above
ANS: A

58. ASP.NET Validation Control works at __________.


A. Client side only.
B. Server side only.
C. Both Client Side and Server Side
D. None of the above.

ANS:C

59. CompareValidator control can be used for performing which task?


A. To perform a data type check.
B. To compare the value entered into a form field against a fixed value.
C. To compare the value of one form field against another.
D. All of the above.

ANS: D

60. Which validation control in ASP.NET can be used to determine if the data is entered into
a TextBox control is of type Currency?
A. ValidationSummary
B. CompareValidator
C. RequiredFieldValidator
D. None of the above.

ANS : B

61. There is a button on page name cancel and it should bypass validation when cancel
button is clicked. What will you do?
A. set CausesValidation = false
B. set RemoveValidation=true
C. set cancel=true
D. None of the above

ANS: A

62. Client-side validation is turned on by default. If you want that particular validation
control should not validate at client side, what will you do?
A. Set the EnableClientScript property to false
B. Set the validate property to false
C. Set the EnableClientScript property to true
D. Set the Page.Isvalid property to false

ANS: A

63. _____________ is a property common in every validation control.


A. ValidationExpression
B. InitialValue
C. ControlToCompare
D. ControlToValidate

ANS: D

64. Which interface you will use wrap an AJAX client control into a custom server control?
A. IScriptManager
B. IScriptControl
C. IScriptAJAX
D. None of the above
ANS: A

65. Which method is used to dynamically register client script from code?
A. Page.ClientScript.RegisterClientScriptBlock
B. RegisterScript
C. Page.ClientScript
D. None of the above

ANS: A

66. Which control is required for every page that have AJAX Extensions for ASP.NET?
A. UpdatePanel
B. ScriptManager
C. ContentPanel
D. None of the above

ANS : B

67. A Master Page contains a ScriptManager control and a user wants the AJAX
functionality on content page then which control is necessary on content page?
A. AsyncPostBackTrigger
B. ScriptManager
C. ScriptManagerProxy
D. None of the above

ANS:C

68. Which control can be used to update only the portion of the page?
A. UpdatePanel
B. ScriptManager
C. AsyncPostBackTrigger
D. None of the above

ANS: A

69. What property and method of the Page object do you use to register client script
dynamically from code?

A. ScriptManager control is used to dynamically register client script from code.


B. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client
script from code.
C. ScriptManagerProxy control is used to dynamically register client script from code.
D. None of the above

ANS:C
70. Which of the following is not an ASP.NET page event?
A. Init
B. Load
C. Import
D. None of the above
ANS:C

71. Choose the correct option about DataReader object.


A. DataReader object is a forward-only object.
B. It provides connection oriented environment.
C. DataReader is read only object.
D. All of the above
ANS: D

72. Using which type of stylesheet we can change the style of an element in the entire
website?
A. Internal Stylesheet
B. External Stylesheet
C. Inline stylesheet
D. None of these above

ANS : B

73. How do you create a TextBox for retrieving a password from a user?
A. Set TextMode property of the TextBox control to Secret.
B. Set Mode property of the TextBox control to Password.
C. Set Text property of the TextBox control to Password.
D. Set TextMode property of the TextBox control to Password.
ANS: D

74. You have to log the data into database if your session times out. Which event you will
use?
A. Session_End
B. Application_End
C. Application_Start
D. Application_SessionTimeout
ANS : B

75. If you are using Webparts in your web page then which control is necessary?
A. WebpartController
B. WebPartmanager
C. WebpartZone
D. None of the above
ANS : B
76 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.None of the above.
Answer:C

77 What property and method of the Page object do you use to register
client script dynamically from code?
A. ScriptManager control is used to dynamically register client script from
code.
B.The Page.ClientScript.RegisterClientScriptBlock is used to dynamically
register client script from code.
C.ScriptManagerProxy control is used to dynamically register client script
from code.
D.None of the above.
Answer:C

78 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

79 What ASP.NET object encapsulates the state of the client and the
browser?
A. Application Object
B. Session Object
B.Response Object
D.Request Object
Answer: B

80 What data type is returned when calling the ExecuteScalar method of a


command object?
A. System.Int32
B Object
C No of effected records.
D. None of the above.
Answer: B

81 There is a button on page name cancel and it should bypass validation


when cancel button is clicked. What will you do?
A. set CausesValidation = false.
B. set RemoveValidation=true
C. set cancel=true
D. None of the above.
Answer: A

82 HTTP messages are typically sent between the Web server and Web
browser using which Port number?
A. 70
B.80
C.400
D.410
Answer:B

83 CompareValidator control can be used for performing which task?


A. To perform a data type check.
B. To compare the value entered into a form field against a fixed value.
C. To compare the value of one form field against another.
D. All of the above.
Answer :D

84 You want to make a configuration setting change that will affect only the
current Web application. Which file will you change?
A. Global.asax
B. Web.config in the root of the Web application
C.Machine.config
D.All of the above
Answer:B

85 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

86 Which protocol is used for requesting a web page in ASP.NET from the
Web Server?
A.HTTP
B.TCP
C.SMTP
D.None of the above.
Answer: A

87 ______________is the first method that is fired during the page load.
A. PreRender()
B. Load()
C. Unload()
D. Init()
Answer : D
88 In ASP.NET what are the different types of session mode available?
A. InProc
B. StateServer
C. SQLServer
D. All of the above
Answer:D

89 Which object in ASP.NET provides a global storage mechanism for state


data that needs to be accessible to all pages in a given Web application?
A. Session
B. Application
C. ViewState
D. None of the above
Answer:B
90

If you want to cache the page according to the browser, then what will
you do?
A.
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=”none”
VaryByCustom=”browser” %>
B.
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=”none”
VaryByHeader=”browser” %>
C.
Write the given below code in aspx page.
<%@ OutputCache Duration=”500” VaryByParam=” browser”
VaryByCustom=”none” %>
D. None of the above.
Answer: A

91 You need to allow users to choose their own themes. In which page event
will you write the user-selected theme?
A. Page_Load
B. Page_Render
C. Page_PreInit
D. Page_PreRender
Answer:C
92 What are the types of cookies?
A. Session cookies
B. Persistent cookies.
C. Dummy cookies.
D. Option A and B are correct.
Answer: D

93 Which session modes stores session Information in Current Application


Domain?
A. InProc
B. StateServer
C. SQLServer
D. Off
Answer: A
94 How will you add a TextBox control at runtime on the form? Choose the
correct one.
A. TextBox obj = new TextBox();
obj.ID = ""txtUserName"";
form1.Controls.Add(obj);
B. form1.Controls.Add(TextBox);
C. this.FindControl.add(TextBox);
D. None of the above.
Answer: A

95 What are the Command Object Methods?


A. ExecuteNonQuery
B. ExecuteReader
C. ExecuteScalar
D. All of the above
Answer D:
96
What are the minimum attribute is required to create a connection string
using SqlConnection object?
A. - Data Source
- Initial Catalog
- Integrated security=true
B. - Server
- Database
- Integrated security=true
C. Option A and B both are correct
D. None of the above
Answer:C
97
Client-side validation is turned on by default. If you want that particular
validation control should not validate at client side, what will you do?
A. Set the EnableClientScript property to false
B. Set the validate property to false
C. Set the EnableClientScript property to true
D. Set the Page.Isvalid property to false
Answer:A

98 Choose the correct option about the Integrated Security property of


connection object.
A. If Integrated Security=false then User ID, and Password must be specified
in the connection string.
B. If Integrated Security=true then current Windows account credentials are
used for authentication.
C. Both A and B option are correct.
D. None of the above.
Answer:C

99 Which is the mandatory property for all validation controls?


A. ControlToValidate
B. Message
C. EnableClientScript
D. EnableServerScript
Answer:A
100 To kill a users session explicitly which of the following will you use?
A. Session.Close()
B. Session.End()
C. Session.Abondon()
D. Session.Discard()
Answer:C

101 ASP.NET Validation Control works at ________ .


A. Client side only.
B. Server side only.
C. Both Client Side and Server Side
D. None of the above.
Answer: C

102 If you want to validate the email addresses, Social Security numbers,
phone numbers, and dates types of data, which validation control will be
used?
A. RegularExpressionValidator
B. CompareValidator
C. RequiredFieldValidator
D. None of the above
Answer: A
103 The TreeView control can be specified directly in the control or bound
to _____.
A. .gif file
B. .doc file
C. WeB.sitemap file
D. .prg file
Answer: C

104 In ASP.NET application DLL files are stored in which folder?


A. App_Code
B. App_Data
C. Bin
D. App_LocalResources
Answer: C

105 What type of data can Cookies store?


A. String
B. DateTime
C. System.Int32
D. None of the above.
Answer: A

106 What are the client-side state management options that ASP.NET
supports?
A. Application
B. Session
C. Querystring
D. Option a and b are correct
Answer: C
107 When a User’s Session times out which event should you respond to?
A. Application_Start
B. Session_End
C. Session_Start
D. Application_End
Answer:B

108 If we want to add graphics using asp.net which of the following web
control will you use?
A. Link Button
B. AdRotator
C. Grid View
D. Layout
Answer:B

109 What are the steps to create a DataTable programmatically?


A. Instantiate a new DataTable and add DataColumn objects to the
DataTable. Columns Collection.
B. Run the Data Source Configuration Wizard.
C. Instantiate a new DataSet object.
D. None of the above.
Answer: A

110 Which ADO.NET class provide Connected Environment?


A. DataReader
B. DataSet
C. Command
D. None of the above
Answer: A

111 Which of the following is the default authentication mode for IIS?
A. Anonymous
B. Windows
C. Basic Authentication
D. None
Answer: A

112 How many types of authentication ASP.NET supports?


A. Windows Authentication.
B. .NET Passport Authentication.
C. Forms Authentication.
D. All of the above.
Answer: D

113 Which of the following events ASP.NET supports to handle the


exception in an application.
A. Page_Error
B. Application_Error
C. both a and b
D. none of the above
Answer: C
114 Which of the keywords are used for the block to be examined for
exceptions?
A. try
B. catch
C. throw
D. check
Answer: A

115 You use the ASP.NET Web Site Administration Tool to configure
ASP.NET membership with forms authentication. What should you
name your login form so that you do not have to modify the WeB.config
file?
A. Login.aspx
B. LoginPage.aspx
C. Default.aspx
D. Auth.aspx
Answer: A

116 Which following control is used to display a single record from a data
source in a table in ASP.NET
A. GridView
B. Datalist
C. DetailsView
D. DataRelation
Answer: C

117 What are the Command Object Methods?


A. ExecuteNonQuery
B. ExecuteReader
C. ExecuteScalar
D. All of the above.
Answer: D

118 Which of these keywords are used for the block to handle the exceptions
generated by try block?
A.try
B. catch
C. throw
D. check
Answer:B

119 What is the use of try & catch?


A. It is used to manually handle the exception
B. It helps to fix the errors
C. It prevents automatic terminating of the program in cases when an
exception occurs
D. All of the mentioned
Answer: D

120 CompareValidator control can be used for performing which task?


A. To perform a data type check.
B. To compare the value entered into a form field against a fixed value.
C. To compare the value of one form field against another.
D. All of the above.
Answer: D

121 Which is the mandatory property for all validation controls?


A. ControlToValidate
B. Message
C. EnableClientScript
D. EnableServerScript
Answer: A

122
Range Validator control in ASP.NET supports which type?
A. Integer
B. String
C. Currency
D. All of the above
Answer: D
123
Which object works on client side in state management system?
A. ViewState
B. cookies
C. Query strings
D. All of the above
Answer: D
124 Which of the following keyword can be used to rethrow an exception in
C#:
A. return
B. throw
C. re-throw
D. create
Answer:B

125 To add a custom control to a Web form we have to register with.


A. TagPrefix
B. Name space of the dll that is referenced
C. Assemblyname
D. All of the above
Answer:B

126 Caching type supported by ASP.Net


A. Output Caching
B. DataCaching
C. a and b
D. none of the above
Answer: C
127 Match the following List 1 to List 2
A. Web Form -------------------------- i. .ascx
B. Web User Control ---------------- ii. .asmx
C. Web Service ---------------------- iii. .aspx
A. a-iii, b-i, c-ii
B. a-ii , b-i, c-iii
C. a-i, b-ii, c-iii
D. a-iii,b-ii, c-i
Answer: A

128 You need to programmatically configure page output caching. Which


object would you use?
A. Request
B. Response
C. Application
D. Server
Answer:B

129 What types of data can you store in the Cache collection?
A. Only String Type of Data
B. You can store any type of data in the Cache collection.
C. Only DataSet Object
D. All of the above.
Answer:B

130 ASP.NET navigate the user through ________.


A. Griedview
B. Listbox
C. Menu control
D. update Panel
Answer: C
131 ____________ class represents a collection of TreeNode objects.
A.TreeNodes
B.TreeView
C.Collection
D.TreeNodeCollection
Answer: D

132 You want to make a configuration setting change that will affect only the
current Web application. Which file will you change?
A. Global.asax
B. WeB.config in the root of the Web application
C. Machine.config
D. All of the above
Answer:B
133
How many 'ScriptManager' control can be added on a ASP.NET web
page?
A. Only One
B. More than One
C. Only Two
D. None of the above.
Answer: A
134 Which control is required of every AJAX page to manage the JavaScript
files sent to the client and the communication between client and server?
A. UpdatePanel
B. ScriptManager
C. AsyncPostBackTrigger
D. None of the above.
Answer:B
135
Which data control does not exist in asp.net
A. GridView
B. DataList
C. Repeater
D. tableView
Answer: D
136
Which namespace is used when we connect our asp.net page to sql server
A. System.data.sqlclient
B. System.data.sql
C. System.sqlserver
D. System.url
Answer: A
137 Which object can help you maintain data across users?
A. Application object
B. Session object
C. Response object
D. Server object
Answer: A
138 Which of the following is not the way to maintain state?
A. View state
B. Cookies
C. Hidden fields
D. Request object
Answer: D
139
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
140
Which SqlCommand execution returns the value of the first column of
the first row from a table?
A. ExecuteNonQuery
B. ExecuteReader
C. ExecuteXmlReader
D. ExecuteScalar
Answer: D
141 In ASP.NET the <authorization> section contain which of the following
elements?
A. < deny>
B. <allow>
C. Both a and b
D. None of the Above
Answer: C
142 Which of the following authentication is best suited for a corporate
network?
A. Windows
B. Form
B. User
D. All
Answer: A
143
What are the three main objects of DataSet?
A. DataTable, DataColumn, and type.
B. DataTable, DataRelation, and DataAdapter.
C. DataTable, DataColumn, and DataRelation.
D. DataReader,DataAdapter, and Command.
Answer: C
144
Which ADO.NET class provide Disconnected Environment?
A. DataReader
B. DataSet
C. Command
D. None of the above.
Answer:B
145
Windows-Based Authentication is well suited for.
A. Intranet environment.
B. Public web site.
C. Desktop application.
D. None of the above.
Answer: A
146
What is the fully qualified name of the base class of all server controls?
A. System.WeB.UI.Control
B. System.WeB.UI
C. System.Control
D. All of the above
Answer: A
147
Which web control is useful to display hierarchical data in a tree
structure? A. TreeView Control
B. UpdatePanel
C. AdRotator
D. Compare Validator
Answer: A
148
Which following specifies the style used for the display text for the
current node in sitemap path control?
A. NodeStyle
B. RootNodeStyle
C. CurrentNodeStyle
D. none of the above
Answer: C
149
Which is the first event of ASP.NET page, when user requests a web
page?
A. PreLoad
B. Load
C. Preinit
D. Init
Answer: C
150 Which following Specifies the style for the selected dates on the calendar
?
A. SelectedDayStyle
B. SelectorStyle
C. TodayDayStyle
D. WeekendDayStyle
Answer: A

151) CLR is the equivalent of ---------------


a) common Language Runtime
b) Java Virtual machine
c) Common Type System
d) Common Language Specification
Ans : b

152) SOAP Stand for______


a) Simple Object Access Program
b) Simple Object Access Protocol
c) Simple Object Application Protocol
d) Simple Object Account Protocol
Ans : b

153) What are the advantages of AJAX?


a) AJAX is a platform-independent technology
b) It provides partial-page updates
c) Improved performance
d) All of the above
Ans : d
154) Which is the first event of the ASP.NET page, when the user requests a
web page?
a) PreLoad
b) Load
c) PreInit
d) Init
Ans : c
155) Extention of Asp.net WebForm is?
a) .Aspx
b) .cs
c) .Docx
d) .pptx
Ans : a

156) Which of the following is not a Rich Control?


a) Calendar Control
b) Ad Rotator
c) Tree view Control
d) Multi view Control
Ans: c

157) Full form of AJAX


a) ASynchronized Java and XML
b) Asynchronized Java about XML
c) Asynchronous Javascript And XML
d) Asynchronous Javascript About XML
Ans : c

158) Required Field Validator Means.?


a) Field Must be Fill
b) Field Fill with Proper Format
c) Field Fill is not Necessary
d) Fill Field with some Expression
Ans: a

159) How many Validations available in Asp. Net


a) 4
b) 5
c) 6
d) 7
Ans:c

160) Which is following is AJAX control


a) Update Panel
b) Form view
c) Button
d) Text Box
Ans : a

161) Regular Expression Means?


a) Proper Format
b) Record with Particular Range
c) Compare the Data Between
d) Field must be Fill
Ans : a

162)what is used to Validate Complex String Like Email Address


a) Range Validations
b) Compare Validation
c) Regular Expression Validations
d) Required Field Validations
Ans : c
163) Which is following Navigation Control?
a) GridView
b) Tree View Control
c) Label
d) Calender
Ans : b

164) Which is following Data Control?


a) Detailview
b) Tree View Control
c) TextBox
d) Calender
Ans : a

165) Sitemap Control use for?


a) Display Records
b) Select Multi Choice options
c) Store Record
d) Display Path of pages
Ans : d

166) Use of Data Control


a) Display Menu
b) Display Record from Database
c) Select Multichoice option
d) insert Image
Ans : b

167) What are the types of cookies?


a. Session cookies
b. Persistent cookies.
c. Dummy cookies.
d. Option A and B are correct.
Ans : d

168) Default Session data is stored in ASP.Net.


a. StateServer
b. Session Object
c. InProcess
d. all of the above
Ans: c

169) Which of these data source controls do not implement Caching?


a. LinqDataSource
b. ObjectDataSource
c. SqlDataSource
d. XmlDataSource
Ans: a
170) What property do you modify on a server control to minimize the size of the
ViewState data?
a. ViewState=”true”
b. Set EnableViewState to false.
c. Set EnableViewState to true.
d. None of the above
Ans: b

171) ASP.NET validation controls works (handle validation) at


a. Client side only.
b. Server side only.
c. Both client side and server side.
d. None of the above.
Ans : c

172) In ASP.NET what are the different types of session mode available?
a. InProc
b. StateServer
c. SQLServer
d. All of the above
Ans : d

173) To kill a users session explicitly which of the following will you use?
a. Session.Close()
b. Session.End()
c. Session.Abondon()
d. Session.Discard()
Ans : c

174) Which control is required of every AJAX page to manage the JavaScript files
sent to the client and the communication between client and server?
a. UpdatePanel
b. ScriptManager
c. AsyncPostBackTrigger
d. None of the above.
Ans : b

175) From the following which is not a valid state management object?
a. Querystate
b. Cookies
c. Application state
d. Hidden form fields
Ans : a

176) __________________ file apply settings to all ASP.NET applications


a. web.config
b. machine.config
c. global.asax file
d. application object
Ans : b

177) full form of MSIL


a. Microsoft Intermediate Language
b. Microsoft InterChange Language
c. Microsoft Initialize Language
d. Microsoft Intercall Language
Ans : a

178) How many types of authentication ASP.NET supports?


a. Windows Authentication.
b. .NET Passport Authentication.
c. Forms Authentication.
d. All of the above.
Ans : d

179) Which attribute is necessary for HTML control to work as a HTML server
control?
a. runat=”server”
b. runat=”web-server”
c. ID=”server”
d. ID=”web-server”
Ans : a

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

181) What are the different types of Session Mode in ASP.NET?


a. InProc
b. StateServer
c. SQLServer
d. All of the above
Ans : d

182) CompareValidator control can be used for performing which task?


a. To perform a data type check.
b. To compare the value entered into a form field against a fixed value.
c. To compare the value of one form field against another.
d. All of the above.
Ans : c

183) When a User’s Session times out which event should you respond to?
a. Application_Start
b. Session_End
c. Session_Start
d. Application_End
Ans : b

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


a. Init
b. Load
c. Import
d. None of the above.
Ans c:

185) Windows-Based Authentication is well suited for ___________ .


a. Intranet environment
b. Public web site
c. Desktop application
d. None of the above
Ans : a

186) Choose the correct one.

int[] numbers = { 9, 10, 0, 11 };

var nums =
from n in numbers
select n + 1;

foreach (var i in nums)


{
Console. Write (i+”,”);
}

a. 10, 11, 1, 12
b. 10, 11, 12, 13
c. 9, 10, 0, 11
d. None of these
Ans : a

187) How Many Authentication available in Asp.Net


a) 1
b) 2
c) 3
d) 4
Ans : c

188) How many types of Caching?


a) 1
b) 2
c) 4
d) 3
Ans : d

189) Full form of RCW


a) Remaote Component wrapper
b) Runtime Callable Wrapper
c) Rmote Callable Wrapper
d) Runtime Component Wrapper
Ans:b

190) Full Form of CIL


a) Common Intermediate Language
b) Common Interpreter Language
c) Common Interchange Language
d) Common Initialize Language
Ans : a
191) Which is following is not a component of Error Handaling
a) Try
b) catch
c) Finally
d) New
Ans : d

192) Which of the following are reference types?


a. String
b. Exception
c. Class
d. All of the above
Ans : a

193) Which SqlCommand execution returns the number of effected records in the
table?
a. ExecuteNonQuery
b. ExecuteReader
c. ExecuteXmlReader
d. ExecuteScalar
Ans : a

194) How many types of Rich Controls ASP.NET supports?


a. 1
b. 3
c. 2
d. 4
Ans : b

195) What are the Command Object Methods?


a. ExecuteNonQuery
b. ExecuteReader
c. ExecuteScalar
d. All of the above.
Ans : d

196) _____________is a property common in every validation control.


a. ValidationExpression
b. InitialValue
c. ValueToCompare
d. ControlToValidate
Ans : d

197) Which object works on client side in state management system?


a. ViewState
b. cookies
c. Query strings
d. All of the above
Ans : d

198) Which of the follwoing is not Error type


a) Syntex Error
b) Compilation Error
c) Logical Error
d) None of Above
Ans : d

199) Full form of CTS


a) common Type System
b) Common Transmission System
c) Common Time System
d) Common Transport System
Ans : a

200) What type of data can Cookies store?


a. System.Int32
b. DateTime
c. String
d. None of the above.
Ans : c

You might also like