Showing posts with label ASP.Net Multiple Choice Questions And Answers. Show all posts
Showing posts with label ASP.Net Multiple Choice Questions And Answers. Show all posts

Friday, 18 September 2015

Job Related Asp.Net Multiple Choice Questions And Answers

131. An ASP.NET page uses a Datagrid displays employee information.The Web application supports a large number of concurrent users, who will be saving data from the grid back to the database. It is important that the Web application doesn't overwhelm the Web Server.
A. Disable View State and don't use session state
B. Use View State
C. Use URL munging
D. Disable ViewState and use Session State
Ans: Disable View State and don't use session state

132. While creating a Web site with the help of Visual Studio 2005 on a remote computer that does not have Front Page Server Extensions installed, which Web site type will you create in Visual Studio 2005?
A. HTTP
B. File
C. FTP
D. All of the above
Ans: HTTP

133. What’s the difference between Response.Write() and Response.Output.Write()?
A. The First one allows you to write formatted output.
B. The latter one allows you to write formatted output.
C. No Difference
D. The latter one allows you to write unformatted output.
Ans: The latter one allows you to write formatted output.

134. If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
A. Maintain the login state security through a database.
B. Maintain the login state security through a Session.
C. Maintain the login state security through a View State.
D. All of the Above
Ans: Maintain the login state security through a database.

135. Where we can assign value to Static read only member variable of a static class?
A. Default constructor
B. Parameterized constructor
C. Global.asax
D. On click of button
Ans: Default constructor

136. Which of these files takes the web application in offline mode?
A. app_offline.html
B. app_offline.htm
C. appoffline.html
D. none of these
Ans: app_offline.htm

137. Which of these classes maps to the tag <input type="checkbox"/>
A. HtmlCheckBox
B. HtlmInputCheckBox
C. HtmlControl
D. None
Ans: HtlmInputCheckBox

138. In order to prevent a browser from caching a page which of these xstatements should be written?
A. Response.Cache.SetNoStore();
B. Response.Cache.SetNoServerCaching();
C. Response.Cache.SetNoCaching();
D. None of these
Ans: Response.Cache.SetNoStore();

139. Which of these data source controls do not implement Caching?
A. LinqDataSource
B. ObjectDataSource
C. SqlDataSource
D. XmlDataSource
Ans: LinqDataSource

140. By default, ASP.NET store SessionIDs in _________.
A. Cookies
B. Cache
C. Database
D. Global variable
Ans: Cookies

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9
 Page10 Page11 Page12 Page13 Page14

Thursday, 17 September 2015

ASP.Net Experienced Multiple Choice Questions And Answers

91. Select the caching type supported by ASP.Net
A.   Output Caching
B.   DataCaching
C.   a and b
D.   none of the above
Ans: B

92. Where is the default Session data is stored in ASP.Net?
A.   InProcess
B.   StateServer
C.   Session Object
D.   al of the above
Ans: C

93. Select the type Processing model that asp.net simulate
A.   Event-driven
B.   Static
C.   Linear
D.   Topdown
Ans: A

94. Does the EnableViewState allows the page to save the users input on a form?
A.   Yes
B.   No
Ans: A

95. Which DLL translate XML to SQL in IIS?
A.   SQLISAPI.dll
B.   SQLXML.dll
C.   LISXML.dll
D.   SQLIIS.dll
Ans: A

96. What is the maximum number of cookies that can be allowed to a web site?
A.   1
B.   10
C.   20
D.   More than 30
Ans: A

97. Select the control which does not have any visible interface.
A.   Datalist
B.   DropdownList
C.   Repeater
D.   Datagrid
Ans: C

98. How do you explicitly kill a user session?
A.   Session.Close( )
B.   Session.Discard( )
C.   Session.Abandon
D.   Session.End
E.   Session.Exit
Ans: C

99. Which of the following is not a member of ADODBCommand object?
A.   ExecuteReader
B.   ExecuteScalar
C.   ExecuteStream
D.   Open
E.   CommandText
Ans: C

100. Which one of the following namespaces contains the definition for IdbConnection?
A.   System.Data.Interfaces
B.   System.Data.Common
C.   System.Data
D.   System.Data.Connection
Ans: D

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9
 Page10 Page11 Page12 Page13 Page14

Best ASP.Net Multiple Choice Questions And Answers

81. Custom Controls are derived from which of the classes
A.   System.Web.UI.Webcontrol
B.   System.Web.UI.Customcontrol
C.   System.Web.UI.Customcontrols.Webcontrol
Ans: D

82. How ASP.Net Different from classic ASP?
A.   Scripting is separated from the HTML, Code is interpreted seperately
B.   Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server
C.   Code is separated from the HTML and interpreted Code is interpreted separately
Ans: C

83. What's the difference between Response.Write() andResponse.Output.Write()?
A.   Response.Output.Write() allows you to flush output
B.   Response.Output.Write() allows you to buffer output
C.   Response.Output.Write() allows you to write formatted output
D.   Response.Output.Write() allows you to stream output
Ans: B

84. Why is Global.asax is used?
A.   Implement application and session level events
B.   Declare Global variables
C.   No use
Ans: C

85. There can be more than 1 machine.config file in a system
A.   True
B.   False
Ans: A

86. What is the extension of a web user control file?
A.   .Asmx
B.   .Ascx
C.   .Aspx
Ans: A

87. Which of the following is true?
A.   IsPostBack is a method of System.UI.Web.Page class
B.   IsPostBack is a method of System.Web.UI.Page class
C.   IsPostBack is a readonly property of System.Web.UI.Page class
Ans: B

88. The number of forms that can be added to a aspx page is.
A.   1
B.   2
C.   3
D.   More than 3
Ans: C

89. How do you manage states in asp.net application
A.   Session Objects
B.   Application Objects
C.   Viewstate
D.   All of the above
Ans: A

90. Which property of the session object is used to set the local identifier?
A.   SessionId
B.   LCID
C.   Item
D.   Key
Ans: D

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10 Page11 Page12 Page13 Page14

Top Latest ASP.Net Multiple Choice Questions And Answers

71. Which of the following languages can be used to write server side scripting in ASP.NET?
A.   C-sharp
B.   VB
C.   C++
D.   A and B
Ans: D

72. When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.
A.   HTML
B.   XML
C.   WML
D.   JSP
Ans: A

73. The Asp.net server control, which provides an alternative way of displaying text on web page, is
A.   < asp:label >
B.   < asp:listitem >
C.   < asp:button >
Ans: A

74. The first event to be triggered in an aspx page is.
A.   Page_Load()
B.   Page_Init()
C.   Page_click()
Ans: B

75. Postback occurs in which of the following forms.
A.   Winforms
B.   HTMLForms
C.   Webforms
Ans: C

76. What namespace does the Web page belong in the .NET Framework class hierarchy?
A.   System.web.UI.Page
B.   System.Windows.Page
C.   System.Web.page
Ans: A

77. Which method do you invoke on the Data Adapter control to load your generated dataset?
A.   Fill( )
B.   ExecuteQuery( )
C.   Read( )
Ans: A

78. How do you register a user control?
A.   Add Tag prefix, Tag name
B.   Add Source, Tag prefix
C.   Add Src, Tagprefix, Tagname
Ans: C

79. Which of the following is true?
A.   User controls are displayed correctly in the Visual Studio .NET Designer
B.   Custom controls are displayed correctly in VS.Net Designer
C.   User and Custom controls are displayed correctly in the Visual Studio .NET Designer.
Ans: C

80. 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
Ans: B

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10 Page11 Page12 Page13 Page14

ASP.Net Fresher Question And Answer

51.  Which of the following is used to send email message from my ASP.NET page?
A.   System.Web.Mail.MailMessage
B.   System.Web.Mail.SmtpMail
C.   Both A. and B.
D.   None of the Above
Ans: Both A. and B.

52.  In my .NET Framework I have threads. Which of the following denote the possible priority level for the threads?
A.   Normal
B.   AboveNormal
C.   Highest
D.   All the Above
Ans: All the Above

53.  In .NET the operation of reading metadata and using its contents is known as ______?
A.   Reflection
B.   Enumeration
C.   Binding
D.   Serialization
Ans: Reflection

54.  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
Ans: Both A. and B.

55.  The type of code found in Code-Behind class is ________ ?
A.   Server-side code
B.   Client-side code
C.   Both A. and B.
D.   None of the above
Ans: Server-side code

56.  Common type system is built into which of the following:
A.   CLR
B.   RCT
C.   RCW
D.   GAC
Ans: CLR

57.  The actual work process of ASP.NET is taken care by _____________?
A.   inetinfo.exe
B.   aspnet_isapi.dll
C.   aspnet_wp.exe
D.   None of the Above
Ans: aspnet_wp.exe

58.  Which of the following allow writing formatted output?
A.   Response.Write()
B.   Response.Output.Write()
C.   Both A. and B.
D.   None of the Above
Ans: Response.Output.Write()

59.  Which of the following denote the property in every validation control?
A.   ControlToValidate property
B.   Text property
C.   Both A. and B.
D.   None of the Above
Ans: Both A. and B.

60.  How many classes can a single .NET DLL contain?
A.   One
B.   Two
C.   None
D.   Many
Ans: Many

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10 Page11 Page12 Page13 Page14

ASP.Net Online Quiz Questions And Answers

31. Which of the following is the performance attributes of processModel?
A. requestQueue limit
B. maxWorkerThreads
C. maxIdThreads
D. All
Ans: All

32. Which of the following is faster and consume lesser memory?
A. SQLDataReader
B. Data Set
Ans: SQLDataReader

33. Which of the following is the way to monitor the web application?
A. MMC Event viewers
B. Performance logs
C. Alerts Snap-ins
D. ALL
Ans: ALL

34. The ________________ property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.
A. CurrentUICulture
B. CurrentCulture
Ans: CurrentCulture

35. Where do we include the user lists for windows authentication?
A. < Credential>
B. < authorization>
C. < identity>
D. < authentiation>
Ans: < authorization>

36. Where do we include the user lists for Form authentication?
A. < credential>
B. < authorization>
C. < Identity>
D. < authentication>
Ans: < credential>

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

38. 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: ComVisible attributes

39. By default, code written with the Debug class is stripped out of release builds.
A. Yes
B. No
Ans: Yes

40. ___________________ tests make sure that new code does not break existing code.
A. Regression tests
B. Integration tests
C. Unit tests
D. Load test
Ans: Integration tests

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10 Page11 Page12 Page13 Page14

ASP.Net Multiple Choice Questions And Answers

21. 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: Request.Form

22. Which object can help you maintain data across users?
A. Application object
B. Session object
C. Response object
D. Server object
Ans: Application object

23. 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: Session object

24. Which of the following object is used along with 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: Synchronize()

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

26. Mode of storing ASP.NET session
A. InProc
B. StateServer
C. SQL Server
D. All of the above
Ans: All of the above

27. Which of the following is not the way to maintain state?
A. View state
B. Cookies
C. Hidden fields
D. Request object
Ans: Request object

28. You can have only one Global.asax file per project.
A. Yes
B. No
Ans: Yes

29. ______________ 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
Ans: < identity> element

30. __________________ is a special subfolder within the windows folder that stores the shared .NET component.
A. /bin
B. GAC
C. Root
Ans: GAC

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10 Page11 Page12 Page13 Page14