. Advantages of WCF over Web Services? (Windows communication Foundation)
1.WCF can create services similar in concept to ASMX
2.WCF is implemented on pipeline
3.WCF is more secure, reliable
4.All the above
. what is its lifetime of a Static variable?
1.Can Be accessed even Outside of the Program
2.Throughout the execution of a program
3.Inside a function
4.none of the above
After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be?
1.The AutoEventWireup attribute is set to False
2.The AutoPostBack attribute is set to False
3.The codebehind module is not properly compiled
4.. The ListBox must be defined WithEvents
An abstract class is one in which methods are defined but an object of this class cannot be instantiated. This type of a class can only be derived but cannot be instantiated.
1.true
2.False
3.all of the above
4.None of the mentioned
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
1.The customer must be having technology that run ASP.
2.Such a situation cannot happen at all
3.The customer can run on any platform.
4.none of the above
Application domain is a way in CLR to maintain a boundary between various applications to ensure that they do not interfere in working of any other application.
1.True
2.False
3.all of the above
4.None of the mentioned
Can We Pass parameter to Crystal Report (.rpt) File ?
1.Yes
2.No
3.None of the above
4.All of the Mentioned
Can you edit data in the Repeater control?
1. True
2.False
3.all of the above
4. none of the mentioned
Can you prevent your class from being inherited by another class?
1. Yes
2.no
3.all of the above
4.None of the mentioned
Difference between response.redirect and server.transfer.
1.response.redirect will take you to another page with out round trip
2.server.transfer will take the round trip from server to client
3.all the above
4.None of these
How do you explicitly kill a user’s session ?
1.Session.Close()
2.Session.Discard()
3.Session.Abandon()
4.Session.End()
How many types of cookies are there?
1.1
2.2
3.3
4.4
If cookies are not enabled at browser end does form Authentication work?
1.. Yes
2.No
3.Both Yes And NO
4.none of the above
In Which Page Cycle All Controls Are Fully Loaded?
1.Page_Load()
2.Page_Init()
3.Page_Render()
4.Page_Unload()
Singleton architecture is to be used when all the applications have to use or share same data.
1.True
2. False
3.all of the above
4.None of the mentioned
Team foundation is a ________ tier architecture
1.One
2.Two
3.Three
4.None
The process in which a web page sends data back to the same page on the server is called?
1.PostBack
2.Session
3. Query strings
4.All the above
The public methods and properties of a master page can be accessed in a content page by assigning a class name to the master page. Which directive can be used to assign a class name to the master page?
1.<%@ Control %>
2.<%@ Master %>
3.<%@ MasterType %>
4.<%@ Page %>
Viewstate is the mechanism that automatically saves the values of the page's items just after rendering the page. It stores items added to a page’s ViewState property as hidden fields on the page.
1.True
2.False
3.all of the above
4.None of the mentioned
What are WebMethod attribute properties
1. [WebMethod(EnableSession ="true")]
2.[WebMethod(MessageName = "SinInt")]
3.[WebMethod(TransactionOption = "Supported")]
4.All The About
What attribute must be set on a validator control for the validation to work?
1.Validate
2.. ValidateControl
3.ControlToBind
4.ControlToValidate
What base class do all Web Forms inherit from?
1.The Page class.
2.The Form class
3.The Session
4. All of the mentioned
What DataType is return in IsPostback property?
1.bit
2.Boolean
3.int
4.Strings
What is a Managed Data ?
1.Memory allocation/de-allocation is done by user
2.Memory allocation/ de-allocetion is done by CLR itself
3.all of the above
4.None of the mentioned
What is default time of expire session?
1.20 minute
2.40 minute
3.100 minute
4.1200 hours
What is the event that is fired when an unhandled exception is encountered within the application?
1.Page_Error
2. Application_Error
3.Application_Disposed
4. System_Error
What is the root namespace for all types?
1. Root
2.. System
3. Parent
4.Web
What is the Web.config file used for?
1.To store the global information and variable definitions for the application
2.Configures the time that the server-side codebehind module is called
3.To configure the web server
4.To configure the web browser
What’s the .NET collection class that allows an element to be accessed using a unique key?
1.List
2.HashTable
3. ArrayList
4.Arry
What’s the difference between Response.Write() and Response.Output.Write()?
1.Both are Same
2..Write Formatted Output
3.Write data to a file
4.None of these
What’s the top .NET class that everything is derived from?
1.System.Object
2. System
3. System.Data
4.System.net
When the page processing cycle of ViewState is available?
1.Before init and After Page_Load() / OnLoad()
2.Before Page_Load() / OnLoad() and Before Init()
3.After Init() and Before Page_Load() / OnLoad()
4.After Init() and After Page_Load() / OnLoad()
When will a session be started in an application?
1. Before Application Started
2. After Application Started
3.When the Client first sends a request to browser
4.While closing the application
Which are the two properties of a Datagrid that has to be specified to turn on sorting and paging respectively?
1. EnableSorting=â€true†and EnablePaging=â€trueâ€
2.. DisableSorting=â€false†and DisablePaging=â€falseâ€
3.. AllowSoring=â€true†and allowPaging=â€trueâ€
4. EnableSorting=â€true†and allowPaging=â€trueâ€
Which control is used to sort the data and allow paging?
1.. Datalist
2.Repeater Control
3.DataGrid
4.None of these
Which control would you use if you needed to make sure the values in two different controls matched?
1.Required Field Validator
2.Custom Validator control
3.. CompareValidator control
4. Regular expression validator Control
Which data control does not exist in asp.net
1. GridView
2.DataList
3.Repeater
4.tableView
Which is not a validation control?
1.Required Field Validator
2.Compare Validator
3.Error Validator
4.Regular Expression Validator
Which method do you invoke on the Data Adapter control to load your generated dataset?
1.Fill( )
2.Read( )
3.ExecuteQuery( )
4.None of these
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
1.DataBind()
2. Populate()
3. Bind
4.Fill()
Which namespace is used when we connect our asp.net page to sql server
1.System.data.sqlclient
2. System.data.sql
3.System.sqlserver
4.System.url
Which of the following contains web application settings?
1. app.config
2. web.config
3. assembly.config
4.machine.config
Which of the following is not a valid statement in ASP.Net?
1.Server.Transfer(“SomePage.aspxâ€);
2.Response.Redirect(“SomePage.aspxâ€);
3.Server.Redirect(“SomePage.aspxâ€);
4.Server.Execute(“SomePage.aspxâ€);
Which of the following is not supported for IIS?
1.Windows XP Professional
2.Windows XP Home
3.Windows 2003 Server
4.Windows 2000 Server
Which property common in every validation control?
1.ValueToCompare
2.ValidationExpression
3.ControlToValidate
4.. InitialValue
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
1.DataTextField property.
2.DataValueField Property
3.DataMember
4.None of these
Which statements are correct about asp.net AJAX ?
1.. ASP.NET AJAX is the name of Microsoft’s AJAX solution
2.AJAX refers to a set of client and server technologies that focus on improving web development with Visual Studio.
3.Microsoft AJAX Library is a JavaScript library that works on a variety of browsers and serves to simplify JavaScript development.
4. all the above
Which template must you provide, in order to display data in a Repeater control?
1.EditItemTemplate
2.ItemTemplate
3.all of the above
4.None of the above.
You are developing an asp.net page for www.abc.com , in that page you need to provide an option to redirect to a web page that is in www.def.com. Which method you should use to perform the task
1.Server.Transfer()
2.Response.Redirect()
3.Response.Transfer()
4.Request.Redirect()
You have created a new ASP.Net web application. You build the solution in Visual Studio .Net. You notice that there is a /bin directory under the virtual directory. Which type of files should you place in this location?
1.Assemblies that are used on only this one web application
2.Assemblies that are used on web sites on only this web server machine.
3.. Assemblies that are used by web applications anywhere on the network
4. Assemblies that are XCOPY’d to the location.