ASP.NET QUESTIONS
101) What is the purpose of Reflection?
a) For Reading metadata at runtime (ANS)
b) For knowing version of assembly
c) For finding path of an assembly
102) Is it possible edit data in a repeater control
a) No (ANS)
b) Yes
103) Why is Global.asax is used for ?
a) To implement application & Session level events (ANS)
b) To store configuration information
c) To store styling information
d) None of the above
104) What is a diffgram ?
a) The one which renders the dataset object contents to XML (ANS)
b) Finds the difference in two objects
c) Finds the difference in two files
d) None of the above
105) What is the lifespan for items stored in viewstate
a) Exists for the Life of the current page (ANS)
b) 20 mins
c) 2 mins
d) 2 sec
106) What data types do a Rangevalidator supports
a) Integer
b) String
c) Date
d) All of the above (ANS)
107) Select the output of the statement < form method=post action=”test.aspx” >
a) Transfers all the form data to test.aspx with HTTP headers (ANS)
b) Transfers all the form data to test.aspx with out HTTP headers
c) Calls post method on test.aspx
d) None of the above
108) What is the out put of the following code byte a=200; byte b=100; byte c=a+b; Response.Write ( C );
a) Run time Error
b) Compile Time error (ANS)
c) 300
d) Just prints “C”
109) What is the out put of Following code String a=”Hello”; String b=”World” String c= a+b Response.Write ( “C “);
a) Hello world
b) C (ANS)
c) A+b
d) None of the above
110) Whats the significance of Request.MapPath( )
a) Maps the specified virtual path to a physical path (ANS)
b) Maps the specified absolute path to virtual path
c) None
111) Which of the following are not a member of Server Object
a) Execute
b) Transfer
c) Open (ANS)
d) HTMLDecode
112) What is the significance of Server .MapPath
a) Returns the physical file path that corresponds to virtual specified path(ANS)
b) Returns the Virtual Path of the web folder
c) Maps the specified virtual path to Physical path
d) None
113) What is the Server.MachineName does
a) Gets the Server’s Machine Name (ANS)
b) Gets the Referred Web site name on the server
c) Gets the Client Machine Name
d) None
114)Whats is the significance of Response.ClearHeaders( )
a) Clears all Headers from the buffer stream (ANS)
b) Clears all the section value from rendered HTML File
c) Clears the content of the Rendered page
d) None of the above
115) What is the significance of Response.AddHeaders( )
a) Adds HTTP Headers to output stream (ANS)
b) Adds Tag to rendered Page
c) Add Headers to the web site
116) What is the difference between HTTP handlers & HTTP modules
a) Httphandler is an class and Httpmodule is an assembly (ANS)
b) Httphandler is an event handler and httpmodule is module to do some task
c) Both of the above
d) None of the above
117) Which namespace allows us to formauthentication ?
a) System.Web.Ui.Forms.Security
b) System.Web.Security
c) System.Web.Configuration
c) System.Web.Services
118) Which method displays the custom control
a) The Prerender
b) Render (ANS)
c) Page_Load
d) Display
119) When is the user controls code is executed
a) After the webform loads (ANS)
b) After the page_init event of webform
c) Before Page_init event of web form
120) Client Sertificate is a collection of
a) Server
b) Response
c) Collection
d) Request (ANS)
121) What section of the config.Web file is used for storing a list of authorized users?
a) authorization (ANS)
b) authentication
c) securityPolicy
d) None
122) How do you add ASP.Net 3rd party component
a) By add/Remove items in the project menu
b) Add reference of dll file and place the code where ever required (ANS)
c) Cannot add 3rd party component to asp.net
123) The .NET Framework provides a runtime environment called
a) RMT
b) CLR (ANS)
c) RCT
d) RC
124) In ASP.NET in form page the object which contains the user name is
a) Page.User.Identity (ANS)
b) Page.User.IsInRole
c) Page.User.Name
d) None of the Above
125) Find the term: The .NET framework which provides automatic memory management using a technique called
a) Serialization
b) Garbage Collection (ANS)
c) Assemblies
d) Overriding
126) Which of the following denote ways to manage state in an ASP.Net Application?
a) Session objects
b) Application objects
c) ViewState
d) All the Above (ANS)
127) What is the base class from which all Web forms inherit?
a) Master Page
b) Page Class (ANS)
c) Session Class
d) None of the Above
128) WSDL stands for
a) Web Server Description Language
b) Web Server Descriptor Language
c) Web Services Description Language (ANS)
d) Web Services Descriptor Language
129) Which of the following must be done in order to connect data from some data resource to Repeater control?
a) Set the DataSource property
b) Call the DataBind method
c) Both A) and B) (ANS)
d) None of the Above
130) Which of the following is FALSE?
a) ASP.NET applications run without a Web Server
b) ASP+ and ASP.NET refer to the same thing
c) ASP.NET is a major upgrade over ASP
d) None of the Above (ANS)
131) Which of the following transfer execution directly to another page?
a) Server.Transfer (ANS)
b) Response.Redirect
c) Both A) and B)
d) None of the Above
132) If one has two different web form controls in a application and if one wanted to know whether the values in the above two different web form control match what control must be used?
a) DataList
b) GridView
c) CompareValidator (ANS)
d) Listview
133) 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) (ANS)
d) None of the Above
134) 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)
135) GIVE ONE WORD: In .NET the operation of reading metadata and using its contents is known as
a) Reflection (ANS)
b) Enumeration
c) Binding
d) Serialization
136) In ASP.NET the < authorization > section contain which of the following elements
a) Both A) and B) (ANS)
b) < deny >
c) < allow >
d) None of the Above
137) Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below:
a) One must override the method ReceiveMessage (ANS)
b) One must override the method InitializeMethod
c) Both A) and B)
d) One must override the method ProcessMessage
138) Which of the following can be used to add alternating color scheme in a Repeater control?
a) AlternatingItemTemplate (ANS)
b) DataSource
c) ColorValidator
d) None of the Above
139) Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called
a) Serialization (ANS)
b) Threading
c) RCW
d) AppDomain
140) The technique that allow code to make function calls to .NET applications on other processes and on other machines is
a) .NET Threading
b) .NET Remoting (ANS)
c) .NET RMT
d) None of the above
141) The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is
a) System.EnterpriseServices (ANS)
b) System.Security
c) System.Diagnostics
d) System.Data
142) Which of the following method is used to obtain details about information types of assembly?
a) GetTypes
b) GetType
c) Both A) and B) (ANS)
d) None of the Above
143) In ASP.NET the sessions can be dumped by using
a) Session.Dump
b) Session.Abandon (ANS)
c) Session.Exit
d) None of the Above
144) Which of the following is TRUE about Windows Authentication in ASP.NET?
a) Automatically determines role membership (ANS)
b) Role membership determined only by user programming
c) ASP.NET does not support Windows Authentication
d) None of the Above
145) Which method do you invoke on the DataAdapter control to load your generated dataset with data?)
a) Load ( )
b) Fill( ) (ANS)
c) DataList
d) DataBind
146) What tags one need to add within the asp:datagrid tags to bind columns manually?
a) Set AutoGenerateColumns Property to false on the datagrid tag (ANS)
b) Set AutoGenerateColumns Property to true on the datagrid tag
c) It is not possible to do the operation
d) Set AutomaunalColumns Property to true on the datagrid tag
147) How many classes can a single .NET DLL contain?
a) One
b) Two
c) None
d) Many (ANS)
148) Which of the following denote the property in every validation control?
a) ControlToValidate property
b) Text property
c) Both A) and B) (ANS)
d) None of the Above
149) Which of the following allow writing formatted output?
a) Response.Write()
b) Response.Output.Write()(ANS)
c) Both A) and B)
d) None of the Above
150) The actual work process of ASP.NET is taken care by
a) inetinfo.exe
b) aspnet_isapi.dll
c) aspnet_wp.exe (ANS)
d) None of the Above
151) The type of code found in Code-Behind class is
a) Server-side code (ANS)
b) Client-side code
c) Both A) and B)
d) None of the above
152) Give One word: Common type system is built into which of the following:
a) CLR (ANS)
b) RCT
c) RCW
d) GAC


No comments:
Post a Comment