Tuesday, December 10, 2013

Multiple Choice Mostly Asked Dot Net Questions & Answers

Multiple Choice Mostly Asked Dot Net Q&A
Friends I am sharing you mostly asked Dot Net Q&A which I found to be very good,I hope you will benefited..


1) On which of the operating system below ASP.NET can run?



            a)  Windows XP Professional

            b) Windows 2000 

            c) Both A) and B)-(ANS)       

            d) None of the Above



2) An organization has developed a web service in which the values of the forms are validated using ASP.NET application. Suppose this web service is got and used by a customer then in such a scenario which of the following is TRUE 



            a) Such a situation cannot happen at all  

            b) The customer must be having technology that run ASP.    

            c) The customer can run on any platform. (ANS)   

            d) None of the Above



3) Which of the following denote the web control associated with Table control function of ASP.NET? 



            a)  DataList

            b)  ListBox 

            c)  TableRow (ANS)  

            d)  All the Above



 4) ASP.NET separates the HTML output from program logic using a feature named as



              a) Exception

              b) Code-behind (ANS) 

              c) Code-front 

              d) None of the above



 5) If a developer of ASP.NET defines style information in a common location. Then that     location is called as  



             a) Master Page 

             b) Theme (ANS)

             c) Customization 

             d) None of the Above



6) In ASP.NET if you want to allows page developers a way to specify static connections in a content page then the class used is  



              a) WebPartManager  

              b) ProxyWebPartManager (ANS)

              c) System.Activator 

              d) None of the Above



 7) The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called 



              a) Theme

              b) Cross Page Posting (ANS)

              c) Code-front

              d) None of the above





8) In ASP.NET if one uses Windows authentication the current request attaches an object called as



               a) Serialization

               b) WindowsPrincipal (ANS)

               c)  WindowDatset    

               d) None of the Above



9) The GridView control in ASP.NET has which of the following features



               a) Automatic data binding 

               b) Automatic paging

               c) Both A) and B) (ANS) 

               d) None of the above





10) If one uses ASP.NET configuration system to restrict access which of the following is TRUE?



               a) The access is restricted only to ASP.NET files (ANS) 

               b)The access is restricted only to static files and non-ASP.NET resources.

               c) Both A) and B)

               d) None of the Above



11) Which of the following denote page code model in ASP.NET?



              a) single-file 

              b) code-behind 

              c) Both A) and B) (ANS) 

              d) None of the above



12) Which of the following denote New Data-bound Controls used with ASP.NET



               a) GridView

               b) FormView

               c) SqlDataSource 

               d) Both A) and B)

               e) All the Above (ANS)



13) A developer wanted to achieve graphics in his display using ASP.NET. Which of the following web controls are available in ASP.NET to achieve the above?



               a) Both A) and B) 

               b) LinkButton

               c) AdRotator (ANS)   

               d) None of the Above



14) Forms based authentication is otherwise called in ASP.NET as Cookie Authentication because Forms authentication uses cookies to allow applications to track users throughout their visit. 



              a) Windows Authentication

              b) Passport Authentication 

              c) Cookie Authentication (ANS)

              d) None of the Above









15) Which of the following is true about session in ASP.NET?



               a) Programmers has to take care of delete sessions after configurable timeout interval

               b) ASP.NET automatically delete sessions after configurable timeout interval (ANS)



               c) The default time interval is 5 minutes    

               d) None of the Above



16) In ASP.NET what does the following return

< %

Response.Write(System.Environment.WorkingSet.ToString())

% >



               a) None of the Above

                 b) Gives Error

              c) Return Null value

              d) Gives the memory working set (ANS)



17) In ASP.NET if one wants to maintain session then which of the following is used?



               a) In-process storage

               b) Microsoft SQL Server 

               c) Session State Service 

               d) All the Above (ANS)



18) I have an ASP.NET application. I have a page loaded from server memory. At this instance which of the following methods gets fired



               a) Unload( )

               b) Load()(ANS)

               c) PreRender( )

               d) None of the Above 



19) Give one word: What model does ASP.NET request processing is based on



               a) Bottom-up

               b) Top-down 

               c) Waterfall 

               d) Pipeline   



20) If in an ASP.NET application one want to create http handlers which of the interface is used

  

              a) None of the above

              b) pipeline 

              c) Handler

              d) IHttpHandlerFactory (ANS)



21) To set page title dynamically in ASP.NET which of the following is used?



               a) None of the above



               b) < sheet > section

 

               c) < tail > section

 

               d) < head > section (ANS)





22) In ASP.NET application the Global.asax file lie in which directory



               a) Application

               b) System 

               c) ROOT (ANS)

               d) None of the Above



23) Which of the following can be used to debug .NET application?



               a) Systems.Diagnostics classes

 

               b) Runtime Debugger



               c) Visual Studio .NET

 

               d) All the Above (ANS)





24) Which of the following is used to write error message in event Log File?



               a) System.Data



               b) System.EnterpriseServices



               c) System.Diagnostics (ANS)

 

               d) None of the Above



 25) Setting the following properties for object in ASP.NET results in Response.Buffer = True Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)) Response.Expires = 0 Response.CacheControl = "no-cache"



              a) Avoid page to be cached (ANS)



              b) Clears the buffer area

 

              c) The session expires



              d) None of the Above



 26) Which of the following denote value that can be taken by Cache-Control of ASP.NET? 



              a) Public

 

              b) Private

 

              c) no-cache

 

              d) All the Above (ANS)



27) In ASP.NET page framework an automatic way to associate page events and methods is

  

              a) AutoEventWireup attribute of the Page directive is set to true



              b) AutoEventWireup attribute of the Page directive is set to False

 

              c) It is not possible to set automatically page events and methods

 

              d) None of the Above



28) In ASP.NET if one wants to set the focus on a particular control



              a) Call SETFOCUS



              b) Call SETCONTROL



              c) Call FOCUS method (ANS)

  

              d) None of the above



 29) The control used in ASP.NET to display information from data set but with better formatting and editing behavior is



               a) Panel



               b) Button

 

               c) DataList (ANS)

  

               d) None of the Above



 30) Which of the following languages can be used to write server side scripting in ASP.NET?



               a) C# (ANS)



               b) C

 

               c) Visual Basic 



31) The Following are the minimum requirement to run Asp.net pages

  

              a) Java Virtual Machine



              b) Common Language Runtime (ANS)

 

              c) Windows explorer





32) When a .aspx page is requested from the web server, the out put will be rendered to browser in following format. 



               a) HTML (ANS)

  

               b) XML

 

               c) WML

    

33) What executable unit gets created when we build an ASP.Net application?

  

              a) . DLL (ANS)

  

              b) . EXE



              c) . COM



34) The best way to delimit ASP.Net code from HTML code in your pages is by using --------------- tags.



               a) < Body >



               b) < Head >



               c) < Script > (ANS)



35) The Asp.net server control, which provides an alternative way of displaying text on web page, is

 

              a) < asp:label > (ANS)



               b) < asp:listitem >



               c) < asp:button >



36) asp:dropdownlist> tag replaces which of the HTML tags



               a) < Option >



               b) < Select > (ANS)



               c) < List >



37) < asp : listitem > tag replaces which of the following HTML tags



               a) < Option > (ANS)



               b) < UL >



               c) < List >



38) The first event to be triggered in an aspx page is  

               a) Page_Load()



               b) Page_Init()(ANS)

 

               c) Page_click()



39) Postback occurs in which of the following forms



               a) Winforms



               b) HTMLForms

 

               c) Webforms (ANS)



40) what namespace does the Web page belong in the .NET Framework class hierarchy?



               a) System.web.UI.Page (ANS)



               b) System.Windows.Page



               c) System.Web.page



41) Which method do you invoke on the Data Adapter control to load your generated dataset

 

              a) Fill ( ) (ANS)



               b) ExecuteQuery ( )

 

              c) Read ( )

                                             

42) How many configuration files can an ASP.NET projects have?



               a) More Than One



               b) One (ANS)

 

               c) None



43) How do you register a user control?



               a) Add Tag prefix, Tag name



               b) Add Source, Tag prefix



               c) Add Src, Tagprefix, Tagname (ANS)



44) 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 (ANS)



               c) User and Custom controls are displayed correctly in the Visual Studio .NET Designer



45) Can a dll run as stand alone application ?

  

              a) No (ANS)



               b) Yes

 

               c) Sometimes we can make it by introducing some code



46) 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)



47) Custom Controls are derived from which of the classes

  

              a) System.Web.UI.Customcontrols.Webcontrol

 

              b) System.Web.UI.Customcontrol

 

              c) System.Web.UI.Webcontrol (ANS)



48) A web application running on multiple servers is called as 



               a) Webfarm (ANS)

 

               b) WebForm



               c) Website



49) What is the transport protocol used to call a webservice

 

              a) HTTP



              b) SOAP (ANS)

 

              c) TCP

 

              d) SMTP



50) How ASP.Net Different from 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 (ANS)

  

              c) Code is separated from the HTML and interpreted Code is interpreted separately



51) 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 (ANS)



              d) Response.Output.Write() allows you to stream output









52) Why is Global.asax is used 



               a) Implement application and session level events (ANS)



               b) Declare Global variables

 

               c) No use



53) There can be more than 1 machine.config file in a system



               a) True (ANS)



               b) False



54) What is the extension of a web user control file ?



               a) .Asmx

               b) . Ascx (ANS)

               c) .Aspx



55) What is the default session out time



               a) 20 Sec



               b) 20 Min (ANS)

 

               c) 1 hr



56) 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)



57) It is possible to set Maximum length for a text box through code

 

              a) True (ANS)



              b) False



58) The number of forms that can be added to a aspx page is

 

              a) 2



              b) 3

 

              c) 1 (ANS)



              d) More than 3 



59) How do you manage states in asp.net application



               a) Session Objects

               b) application Objects

               c) Viewstate

               d) Cookies

               e) All of the above (ANS)



60) The interface used by ASP.Net to create Unique Id’s?



               a) AppDomainsetup

 

               b) System.UI.Naming.Container (ANS)



               c) IAsyncResult



               d) customFormatter



61) Which property of the session object is used to set the local identifier ?



               a) SessionId

 

              b) LCID (ANS)



              c) Item

 

              d) Key



62) Select the caching type supported by ASP.Net



               a) Output Caching



               b) DataCaching



               c) Both a & b (ANS)           



               d) None of the above



63) Where is the default Session data is stored in ASP.Net



               a) InProcess (ANS)



               b) StateServer 

               c) SQL Server

    d) All of the above



 64) How do you disable client side validation ?



               a) Set the language property to C#

               b) Set the Runat property to server

               c) Set the ClientTarget property to Downlevel (ANS)

               d) Set the inherits property to codeb



 65) Select the validation control used for “PatternMatching”



a)    FieldValidator

              b) RegularExpressionValidator (ANS)

              c) RangeValidator 

              d) PatternValidator



  66) How do you trace the application_End event on runtime?

 

              a) By Debugging

              b) By Tracing 

              c) Can not be done (ANS)



67) Who can access Session state variables



               a) All Users of an application



               b) A Single session (ANS)

 

              c) All users within a single tunnel



68) Select the type Processing model that asp.net simulate



              a) Event-driven (ANS)



              b) Static



              c) Linear

 

              d) TopDown



69) Does the “EnableViewState” allows the page to save the users input on a form

 

              a) Yes (ANS)



               b) No



70) Web Controls Supports CSS



               a) True (ANS)



               b) False



71) Session Object classes are defined in which of the following namespace?



               a) System.Web.UI



               b) System.Web.SessionState



               c) System.Web



72) Which DLL translate XML to SQL in IIS



               a) SQLISAPI.dll (ANS)



               b) SQLXML.dll



               c) LISXML.dll



               d) SQLIIS.dll



73) What is the default authentication mode for IIS



               a) Windows



               b) Anonymous (ANS)

 

               c) Basic Authentication



               d) None





74) Which of the following is not a valid state management tool?



              a) Querystate (ANS)



              b) Hidden Form Field



              c) Application State



              d) Cookies



75) What is the maximum number of cookies that can be allowed to a web site



               a) 1



b) 10



               c) 20

   

               d) 30

 

               e) More than 30



76) Select the control which does not have any visible interface



               a) Datalist

 

               b) DropdownList

 

               c) Repeater (ANS)

   

               d) Datagrid





77) How do you explicitly kill a user’s session ?



               a) Session.Close ( )



               b) Session.Discard ( )

 

              c) Session.Abandon (ANS)

 

              d) Session.End



78) Why do we use XMLSerializer class



               a) Remoting

 

               b) WebServices (ANS)

  

               c) Xml documentary Files



79) What does Response.End will do?



a)      It will stop the server process (ANS)



              b) It will stop the client process



              c) None of the above



80) Which control supports paging



               a) Repeater

 

               b) Datagrid (ANS)

  

               c) Both

 

               d) None



 81) Where do you store the information about the user locale



               a) System.user

 

               b) System.web

 

               c) System.Drawing



               d) System.Web.UI.Page.Culture (ANS)



  82) What is the purpose of code behind ?

 

              a) To separate different sections of a page in to different files



              b) To merge HTML layout and code in to One file

 

              c) To separate HTML Layout and code to different file (ANS)



              d) To ignore HTML usage





83) What is a satallite assembly ?



               a) Any DLL file used by an EXE file.

 

               b) An Assembly containing localized resources for another assembly (ANS)

 

               c) None of the above



 84) Which of the following is not a member of Response Object?

 

              a) Clear



              b) Write



              c) Execute (ANS)



              d) Flush



85) Which of the following is not a member of ADODBCommand object

 

              a) ExecuteReader 

              b) ExecuteScalar

              c) ExecuteStream 

              d) Open (ANS) 

              e) CommandText





86) Which method do you invoke on the DataAdapter control to load your generated dataset with data?



               a) Load



               b) Fill (ANS)

 

               c) GetAll

 

               d) None



87) How to open more than one datareader at a time

 

              a) Use different datareader variable

 

              b) Use different datareader and connection variable (ANS)

 

              c) Can not be done



88) What is the advantage of Disconnected mode of ADO.Net in ASP.Net



              a) Automatically dump data at client PC



              b) Not necessary to connect with server



              c) user data can update and retrieve in dataset and when connection connected, update values with server (ANS)



              d) All of the above



89) Which objects is used to create foreign key between tables?



              a) DataRelation (ANS)



              b) DataRelationship



              c) DataConstraint



              d) Datakey



90) Which one of the following namespaces contains the definition for IdbConnection



              a) System.Data.Interfaces



              b) System.Data.Common



              c) System.Data (ANS)



              d) System.Data.Connection



91) Select the Interface which provides Fast, connected forward-only access to data



              a) IdataRecord



              b) Idatabase

              c) IdataReader (ANS)



              d) Irecorder





92) How do we Delete, Update, Select data in a Dataset



              a) Using SQLDataAdapter (ANS)



              b) Using SQLDataReader



              c) Using SQLCommand



              d) None



93) Which of the following is not a member of ConnectionObject



              a) Execute (ANS)



              b) EndTransaction



              c) BeginTransaction



              d) Open



94) Is it Possible to Serialize HashTable with XMLSerializer



              a) Yes (ANS)



              b) No



95) What is the Full Form of WSDL



              a) Web System Description Language



              b) Web Services Detail Language



              c) Web Service Description Language (ANS)



              d) None



96) What is the difference between Server.Transfer & Response.Redirect



              a) No Difference



b)      Server.Transfer needs a roundtrip, Response.Redirect does not



              c) Response.Redirect needs roundtrip, Server.Transfer does not (ANS)



              d) Server.Transfer can transfer user between 2 applicaions



97) Which Language can Support SOAP



              a) VB



              b) JAVA



              c) COBOL



              d) All of the above (ANS)





98) What is the size of the session ID



              a) 32 bit long string

 

              b) 32 bit long double

 

              c) 32 bit long character



              d) 32 bit long integer (ANS)



99) Which of the following extension does a webservice file will have



               a) .Asmx (ANS)



               b) .Aspx



               c) .Ascx



               d) .Resx



100) What is a strong name?



               a) Public Key



               b) Private Key



               c) Combination Of both Public,Private key and digital signature (ANS)



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


ASP.NET QUESTIONS


1) On which of the operating system below ASP.NET can run?

            a)  Windows XP Professional
            b) Windows 2000 
            c) Both A) and B)-(ANS)       
            d) None of the Above

2) An organization has developed a web service in which the values of the forms are validated using ASP.NET application. Suppose this web service is got and used by a customer then in such a scenario which of the following is TRUE 

            a) Such a situation cannot happen at all  
            b) The customer must be having technology that run ASP.    
            c) The customer can run on any platform. (ANS)   
            d) None of the Above

3) Which of the following denote the web control associated with Table control function of ASP.NET? 

            a)  DataList
            b)  ListBox 
            c)  TableRow (ANS)  
            d)  All the Above

 4) ASP.NET separates the HTML output from program logic using a feature named as

              a) Exception
              b) Code-behind (ANS) 
              c) Code-front 
              d) None of the above

 5) If a developer of ASP.NET defines style information in a common location. Then that     location is called as  

             a) Master Page 
             b) Theme (ANS)
             c) Customization 
             d) None of the Above

6) In ASP.NET if you want to allows page developers a way to specify static connections in a content page then the class used is  

              a) WebPartManager  
              b) ProxyWebPartManager (ANS)
              c) System.Activator 
              d) None of the Above

 7) The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called 

              a) Theme
              b) Cross Page Posting (ANS)
              c) Code-front
              d) None of the above


8) In ASP.NET if one uses Windows authentication the current request attaches an object called as

               a) Serialization
               b) WindowsPrincipal (ANS)
               c)  WindowDatset    
               d) None of the Above

9) The GridView control in ASP.NET has which of the following features

               a) Automatic data binding 
               b) Automatic paging
               c) Both A) and B) (ANS) 
               d) None of the above


10) If one uses ASP.NET configuration system to restrict access which of the following is TRUE?

               a) The access is restricted only to ASP.NET files (ANS) 
               b)The access is restricted only to static files and non-ASP.NET resources.
               c) Both A) and B)
               d) None of the Above

11) Which of the following denote page code model in ASP.NET?

              a) single-file 
              b) code-behind 
              c) Both A) and B) (ANS) 
              d) None of the above

12) Which of the following denote New Data-bound Controls used with ASP.NET

               a) GridView
               b) FormView
               c) SqlDataSource 
               d) Both A) and B)
               e) All the Above (ANS)

13) A developer wanted to achieve graphics in his display using ASP.NET. Which of the following web controls are available in ASP.NET to achieve the above?

               a) Both A) and B) 
               b) LinkButton
               c) AdRotator (ANS)   
               d) None of the Above

14) Forms based authentication is otherwise called in ASP.NET as Cookie Authentication because Forms authentication uses cookies to allow applications to track users throughout their visit. 

              a) Windows Authentication
              b) Passport Authentication 
              c) Cookie Authentication (ANS)
              d) None of the Above




15) Which of the following is true about session in ASP.NET?

               a) Programmers has to take care of delete sessions after configurable timeout interval
               b) ASP.NET automatically delete sessions after configurable timeout interval (ANS)

               c) The default time interval is 5 minutes    
               d) None of the Above

16) In ASP.NET what does the following return
< %
Response.Write(System.Environment.WorkingSet.ToString())
% >

               a) None of the Above
                 b) Gives Error
              c) Return Null value
              d) Gives the memory working set (ANS)

17) In ASP.NET if one wants to maintain session then which of the following is used?

               a) In-process storage
               b) Microsoft SQL Server 
               c) Session State Service 
               d) All the Above (ANS)

18) I have an ASP.NET application. I have a page loaded from server memory. At this instance which of the following methods gets fired

               a) Unload( )
               b) Load()(ANS)
               c) PreRender( )
               d) None of the Above 

19) Give one word: What model does ASP.NET request processing is based on

               a) Bottom-up
               b) Top-down 
               c) Waterfall 
               d) Pipeline   

20) If in an ASP.NET application one want to create http handlers which of the interface is used
  
              a) None of the above
              b) pipeline 
              c) Handler
              d) IHttpHandlerFactory (ANS)

21) To set page title dynamically in ASP.NET which of the following is used?

               a) None of the above

               b) < sheet > section
 
               c) < tail > section
 
               d) < head > section (ANS)


22) In ASP.NET application the Global.asax file lie in which directory

               a) Application
               b) System 
               c) ROOT (ANS)
               d) None of the Above

23) Which of the following can be used to debug .NET application?

               a) Systems.Diagnostics classes
 
               b) Runtime Debugger

               c) Visual Studio .NET
 
               d) All the Above (ANS)


24) Which of the following is used to write error message in event Log File?

               a) System.Data

               b) System.EnterpriseServices

               c) System.Diagnostics (ANS)
 
               d) None of the Above

 25) Setting the following properties for object in ASP.NET results in Response.Buffer = True Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)) Response.Expires = 0 Response.CacheControl = "no-cache"


              a) Avoid page to be cached (ANS)

              b) Clears the buffer area
 
              c) The session expires

              d) None of the Above



 26) Which of the following denote value that can be taken by Cache-Control of ASP.NET? 

              a) Public
 
              b) Private
 
              c) no-cache
 
              d) All the Above (ANS)

27) In ASP.NET page framework an automatic way to associate page events and methods is
  
              a) AutoEventWireup attribute of the Page directive is set to true

              b) AutoEventWireup attribute of the Page directive is set to False
 
              c) It is not possible to set automatically page events and methods
 
              d) None of the Above

28) In ASP.NET if one wants to set the focus on a particular control

              a) Call SETFOCUS

              b) Call SETCONTROL

              c) Call FOCUS method (ANS)
  
              d) None of the above

 29) The control used in ASP.NET to display information from data set but with better formatting and editing behavior is

               a) Panel

               b) Button
 
               c) DataList (ANS)
  
               d) None of the Above

 30) Which of the following languages can be used to write server side scripting in ASP.NET?

               a) C# (ANS)

               b) C
 
               c) Visual Basic 

31) The Following are the minimum requirement to run Asp.net pages
  
              a) Java Virtual Machine

              b) Common Language Runtime (ANS)
 
              c) Windows explorer


32) When a .aspx page is requested from the web server, the out put will be rendered to browser in following format. 

               a) HTML (ANS)
  
               b) XML
 
               c) WML
    
33) What executable unit gets created when we build an ASP.Net application?
  
              a) . DLL (ANS)
  
              b) . EXE

              c) . COM

34) The best way to delimit ASP.Net code from HTML code in your pages is by using --------------- tags.

               a) < Body >

               b) < Head >

               c) < Script > (ANS)

35) The Asp.net server control, which provides an alternative way of displaying text on web page, is
 
              a) < asp:label > (ANS)

               b) < asp:listitem >

               c) < asp:button >

36) asp:dropdownlist> tag replaces which of the HTML tags

               a) < Option >

               b) < Select > (ANS)

               c) < List >

37) < asp : listitem > tag replaces which of the following HTML tags

               a) < Option > (ANS)

               b) < UL >

               c) < List >

38) The first event to be triggered in an aspx page is  
               a) Page_Load()

               b) Page_Init()(ANS)
 
               c) Page_click()

39) Postback occurs in which of the following forms

               a) Winforms

               b) HTMLForms
 
               c) Webforms (ANS)

40) what namespace does the Web page belong in the .NET Framework class hierarchy?

               a) System.web.UI.Page (ANS)

               b) System.Windows.Page

               c) System.Web.page

41) Which method do you invoke on the Data Adapter control to load your generated dataset
 
              a) Fill ( ) (ANS)

               b) ExecuteQuery ( )
 
              c) Read ( )
                                             
42) How many configuration files can an ASP.NET projects have?

               a) More Than One

               b) One (ANS)
 
               c) None

43) How do you register a user control?

               a) Add Tag prefix, Tag name

               b) Add Source, Tag prefix

               c) Add Src, Tagprefix, Tagname (ANS)

44) 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 (ANS)

               c) User and Custom controls are displayed correctly in the Visual Studio .NET Designer

45) Can a dll run as stand alone application ?
  
              a) No (ANS)

               b) Yes
 
               c) Sometimes we can make it by introducing some code

46) 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)

47) Custom Controls are derived from which of the classes
  
              a) System.Web.UI.Customcontrols.Webcontrol
 
              b) System.Web.UI.Customcontrol
 
              c) System.Web.UI.Webcontrol (ANS)

48) A web application running on multiple servers is called as 

               a) Webfarm (ANS)
 
               b) WebForm

               c) Website

49) What is the transport protocol used to call a webservice
 
              a) HTTP

              b) SOAP (ANS)
 
              c) TCP
 
              d) SMTP

50) How ASP.Net Different from 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 (ANS)
  
              c) Code is separated from the HTML and interpreted Code is interpreted separately

51) 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 (ANS)

              d) Response.Output.Write() allows you to stream output




52) Why is Global.asax is used 

               a) Implement application and session level events (ANS)

               b) Declare Global variables
 
               c) No use

53) There can be more than 1 machine.config file in a system

               a) True (ANS)

               b) False

54) What is the extension of a web user control file ?

               a) .Asmx
               b) . Ascx (ANS)
               c) .Aspx

55) What is the default session out time

               a) 20 Sec

               b) 20 Min (ANS)
 
               c) 1 hr

56) 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)

57) It is possible to set Maximum length for a text box through code
 
              a) True (ANS)

              b) False

58) The number of forms that can be added to a aspx page is
 
              a) 2

              b) 3
 
              c) 1 (ANS)

              d) More than 3 

59) How do you manage states in asp.net application

               a) Session Objects
               b) application Objects
               c) Viewstate
               d) Cookies
               e) All of the above (ANS)

60) The interface used by ASP.Net to create Unique Id’s?

               a) AppDomainsetup
 
               b) System.UI.Naming.Container (ANS)

               c) IAsyncResult

               d) customFormatter

61) Which property of the session object is used to set the local identifier ?

               a) SessionId
 
              b) LCID (ANS)

              c) Item
 
              d) Key

62) Select the caching type supported by ASP.Net

               a) Output Caching

               b) DataCaching

               c) Both a & b (ANS)           

               d) None of the above

63) Where is the default Session data is stored in ASP.Net

               a) InProcess (ANS)

               b) StateServer 
               c) SQL Server
    d) All of the above

 64) How do you disable client side validation ?

               a) Set the language property to C#
               b) Set the Runat property to server
               c) Set the ClientTarget property to Downlevel (ANS)
               d) Set the inherits property to codeb

 65) Select the validation control used for “PatternMatching”

a)    FieldValidator
              b) RegularExpressionValidator (ANS)
              c) RangeValidator 
              d) PatternValidator

  66) How do you trace the application_End event on runtime?
 
              a) By Debugging
              b) By Tracing 
              c) Can not be done (ANS)

67) Who can access Session state variables

               a) All Users of an application

               b) A Single session (ANS)
 
              c) All users within a single tunnel

68) Select the type Processing model that asp.net simulate

              a) Event-driven (ANS)

              b) Static

              c) Linear
 
              d) TopDown

69) Does the “EnableViewState” allows the page to save the users input on a form
 
              a) Yes (ANS)

               b) No

70) Web Controls Supports CSS

               a) True (ANS)

               b) False

71) Session Object classes are defined in which of the following namespace?

               a) System.Web.UI

               b) System.Web.SessionState

               c) System.Web

72) Which DLL translate XML to SQL in IIS

               a) SQLISAPI.dll (ANS)

               b) SQLXML.dll

               c) LISXML.dll

               d) SQLIIS.dll

73) What is the default authentication mode for IIS

               a) Windows

               b) Anonymous (ANS)
 
               c) Basic Authentication

               d) None


74) Which of the following is not a valid state management tool?

              a) Querystate (ANS)

              b) Hidden Form Field

              c) Application State

              d) Cookies

75) What is the maximum number of cookies that can be allowed to a web site

               a) 1

b) 10

               c) 20
   
               d) 30
 
               e) More than 30

76) Select the control which does not have any visible interface

               a) Datalist
 
               b) DropdownList
 
               c) Repeater (ANS)
   
               d) Datagrid


77) How do you explicitly kill a user’s session ?

               a) Session.Close ( )

               b) Session.Discard ( )
 
              c) Session.Abandon (ANS)
 
              d) Session.End

78) Why do we use XMLSerializer class

               a) Remoting
 
               b) WebServices (ANS)
  
               c) Xml documentary Files

79) What does Response.End will do?

a)      It will stop the server process (ANS)

              b) It will stop the client process

              c) None of the above

80) Which control supports paging

               a) Repeater
 
               b) Datagrid (ANS)
  
               c) Both
 
               d) None

 81) Where do you store the information about the user locale

               a) System.user
 
               b) System.web
 
               c) System.Drawing

               d) System.Web.UI.Page.Culture (ANS)

  82) What is the purpose of code behind ?
 
              a) To separate different sections of a page in to different files

              b) To merge HTML layout and code in to One file
 
              c) To separate HTML Layout and code to different file (ANS)

              d) To ignore HTML usage


83) What is a satallite assembly ?

               a) Any DLL file used by an EXE file.
 
               b) An Assembly containing localized resources for another assembly (ANS)
 
               c) None of the above

 84) Which of the following is not a member of Response Object?
 
              a) Clear

              b) Write

              c) Execute (ANS)

              d) Flush

85) Which of the following is not a member of ADODBCommand object
 
              a) ExecuteReader 
              b) ExecuteScalar
              c) ExecuteStream 
              d) Open (ANS) 
              e) CommandText


86) Which method do you invoke on the DataAdapter control to load your generated dataset with data?

               a) Load

               b) Fill (ANS)
 
               c) GetAll
 
               d) None

87) How to open more than one datareader at a time
 
              a) Use different datareader variable
 
              b) Use different datareader and connection variable (ANS)
 
              c) Can not be done

88) What is the advantage of Disconnected mode of ADO.Net in ASP.Net

              a) Automatically dump data at client PC

              b) Not necessary to connect with server

              c) user data can update and retrieve in dataset and when connection connected, update values with server (ANS)

              d) All of the above

89) Which objects is used to create foreign key between tables?

              a) DataRelation (ANS)

              b) DataRelationship

              c) DataConstraint

              d) Datakey

90) Which one of the following namespaces contains the definition for IdbConnection

              a) System.Data.Interfaces

              b) System.Data.Common

              c) System.Data (ANS)

              d) System.Data.Connection

91) Select the Interface which provides Fast, connected forward-only access to data

              a) IdataRecord

              b) Idatabase
              c) IdataReader (ANS)

              d) Irecorder


92) How do we Delete, Update, Select data in a Dataset

              a) Using SQLDataAdapter (ANS)

              b) Using SQLDataReader

              c) Using SQLCommand

              d) None

93) Which of the following is not a member of ConnectionObject

              a) Execute (ANS)

              b) EndTransaction

              c) BeginTransaction

              d) Open

94) Is it Possible to Serialize HashTable with XMLSerializer

              a) Yes (ANS)

              b) No

95) What is the Full Form of WSDL

              a) Web System Description Language

              b) Web Services Detail Language

              c) Web Service Description Language (ANS)

              d) None

96) What is the difference between Server.Transfer & Response.Redirect

              a) No Difference

b)      Server.Transfer needs a roundtrip, Response.Redirect does not

              c) Response.Redirect needs roundtrip, Server.Transfer does not (ANS)

              d) Server.Transfer can transfer user between 2 applicaions

97) Which Language can Support SOAP

              a) VB

              b) JAVA

              c) COBOL

              d) All of the above (ANS)


98) What is the size of the session ID

              a) 32 bit long string
 
              b) 32 bit long double
 
              c) 32 bit long character

              d) 32 bit long integer (ANS)

99) Which of the following extension does a webservice file will have

               a) .Asmx (ANS)

               b) .Aspx

               c) .Ascx

               d) .Resx

100) What is a strong name?

               a) Public Key

               b) Private Key

               c) Combination Of both Public,Private key and digital signature (ANS)

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: