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.
1.Disable View State and don’t use session state
2.Use View State
3.Use URL munging
4.Disable ViewState and use Session State
Does MVC 6 was introduced new JSON project-based structure?
1.Yes
2.No
3.Both A & B
4.None
What are the various types of filters in an ASP.NET MVC application?
1.Authorization filters
2.Action filters
3.Result filters
4.All of these
What is/are the predefined TraceListener(s) in ASP.Net
1.TextWriterTraceListener
2.EventLogTraceListener
3.DefaultTraceListener
4.All the above 1, 2,3
Which Kind Of data we can store in viewstate
1.Viewstate can store only serilizable object
2.Viewstate can store anything
3.Viewstate can store onlys string
4.None
Which namespace is used for ASPX View Engine?
1.System.Web.Razor
2.System.Web.Mvc.WebFormViewEngine
3.Both A & B
4.None
Which of the followings are Actionselectors?
1. ActionName
2.NonAction
3.ActionVerbs
4.All of the above
Which of these classes maps to the tag <input type=”checkbox”/>
1.HtmlCheckBox
2.HtlmInputCheckBox
3.HtmlControl
4.None
. Which of the following operations can you NOT perform on an ADO.NET DataSet?
1.A DataSet can be synchronised with the database
2.A DataSet can be synchronised with a RecordSet.
3.A DataSet can be converted to XML.
4.You can infer the schema from a DataSet.
. You have a TextBox control and a Help button that the user can press to get help on allowable values. You validate the data entered by the user in the TextBox control. If the user enters an invalid value, you set the focus back in the control using the Cancel property of the CancelEventArgs. A user reports that once he enters invalid data in the text box, he cannot click the Help button. What should you do to correct the problem?
1.Set the CausesValidation property of the text box to false.
2.Set the CausesValidation property of the text box to true.
3. Set the CausesValidation property of the Help button to false.
4.Set the CausesValidation property of the Help button to true.
A project on which you are working calls for you to store small amount of frequently changing information about a page on the client.For this project, security is not a worry. Which is the best method to use?
1.A cookie
2.A query string
3.A URL
4.A hidden form field
A __________ control defaults to displaying the files in the current directory?
1.List Box
2.Drive List Box
3.Dir List Box
4.File List Box
By default, ASP.NET store SessionIDs in ____
1.Cookies
2. Cache
3. Database
4.Global variable
Can you call SQL Trigger from ASP.NET application explicitly?
1.Yes
2.No
3.None of them
4. All of the mentioned
Do I need IIS to develop a Web application in ASP.NET 2.0?
1.Yes
2.no
3.all of the above
4. none of the mentioned
For separating server-side code from client-side code on a ASP.NET page, what programming model should you use?
1.Separation model
2.Code-Behind model
3.In-Line model
4.ClientServer model
How can you come out from the c# windows Forms Application?
1.Application.Exit();
2. Application.close();
3.Form.Exit();
4.Form.Close();
How can you get the ColumnName,DataType ColumnSize, IsKeyColumn,IsAutoIncrement of the table from the dataset?
1.GetSchemaTable method of the DataReader
2.Fill method of data adaptor
3.GetTableDetails method
4.Dataset.GetDataTable()
How does ASP.NET store SessionIDs by default?
1.In cache
2.In cookies
3.In a global variable
4.In URL strings or in a database
How to find out what version of ASP.NET I am using on my machine?
1. Response.Write(System.Environment.Version.ToString() );
2.Response.Write(Version.ToString() );
3.Response.Write(System.Version.ToString() );
4.Not possible
How will you specify the Cache Location?
1.You can use browser settings to specify where a page is cached.
2.You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached.
3.You can use the Location attribute in QueryString to specify where a page is cached.
4.None of the above.
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?
1. Maintain the login state security through a database.
2. Maintain the login state security through a Session.
3.Maintain the login state security through a View State.
4.All of the above
In order for hidden-field values to be available during page processing, you must submit the page using an HTTP POST command.
1.True
2.False
3.all of the above
4.None of the above.
In order for query string values to be available during page processing, you must submit the page using an HTTP GET command.
1.True
2.False
3.all of the above
4. none of the mentioned
The model is a ____
1.Shape of data
2.Html content
3.Collection of data
4.Type of data
We have defined one page_load event in aspx page and same page_load event in code behind who will run first?
1. page_laod event in aspx page
2. page_load event in code-behind
3.both will run simultaneously
4.None
what are the Activation modes for .NET Remoting?
1.Singleton
2.Singlecall
3. Both
4.None
What debugging tools come with the .NET SDK?
1.CorDBG – command-line debugger
2.Dbg CLR – graphic debugger
3.Both A and B
4.none of the above
What is ActionResult()?
1. It is an abstract Class
2. It is a Concrete Class
3.Both A and B
4.None
What is the last stage of the Web forms lifecycle?
1.Event Handling
2.Page_Load
3.Validate
4.Page_Unload
What is the name of the configuration files that the App_Start folder contains?
1.BundleConfig.cs
2.FilterConfig.cs
3.RouteConfig.cs
4.All of these
What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to the server?
1.IsCallback
2.IsReusable
3.IsValid
4.IsPostBack
What is the name of the property of ASP.NET page that you can query to determine that a ASP.NET page is being requested not data being submitted to web server?
1.FirstGet
2.Initialized
3.IncludesData
4.IsPostBack
What namespace does the Web page belong in the .NET Framework class hierarchy?
1.System.Web.Control
2.System.Web.RootBuilder
3.System.Web.UserControl
4.System.Web.UI.Page
What Request Processing technique follows ASP.Net?
1. Top-Down
2.Down-Up
3.Pipeline
4.Waterfall
What’s the difference between Response.Write() and Response.Output.Write()?
1.The First one allows you to write formatted output.
2.The latter one allows you to write formatted output.
3.No Difference
4.The latter one allows you to write unformatted output.
Where we can assign value to Static read only member variable of a static class?
1. Default constructor
2.Parameterized constructor
3.Global.asax
4.On click of button
Where would you define application and session level events?
1.Global.asax
2.Default.aspx
3.Web.Config
4.General.aspx
Which file you should write for the connection string so that you can access it in all the web pages for the same application?
1.In App_Data folder
2.In Web.config file
3.In MasterPage file
4.none of the above
Which of the following events will fire when the Insert key is pressed?
1.KeyDown
2.KeyPress
3.KeyUp
4.KeyDown,KeyPress
Which of the following is a requirement when merging modified data into a DataSet?
1.A primary key must be defined on the DataTable objects
2.The DataSet schemas must match in order to merge
3.The destination DataSet must be empty prior to merging
4.A DataSet must be merged into the same DataSet that created it.
Which of the following represents the best use of the Table, TableRow, and Table-Cell controls?
1. To create and populate a Table in Design view
2.To create a customized control that needs to display data in a tabular fashion
3.To create and populate a Table with images
4.To display a tabular result set
Which of the function is used to check textbox only contain number?
1.char.IsDigit
2.char.IsLetter
3.char.IsNumber
4.char.IsLetterOrDigit
Which of these files takes the web application in offline mode?
1. app_offline.html
2.app_offline.htm
3.appoffline.html
4.None of these
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?
1.HTTP
2.File
3. FTP
4.All of the above
WIF enables you to create a custom token. To be able to use the token, you must create a custom token handler by overriding which of the following?
1.SecurityToken
2. SecurityTokenHandler
3. SWTToken
4.Saml2SecurityTokenHandler
You are creating an order-tracking application using a Visual C# .NET Windows application. When you are unable to track a particular order number entered by the user, you need to raise an exception. Which of the following options will help you to raise an exception?
1.try block
2.catch block
3. finally block
4.throw statement
You are designing a Windows Form that enables you to add a new product to the product catalog of your company. You need to validate the controls as the user enters the data. If incorrect data is entered in the field, you should set the focus back to the control and ask the user to enter the correct data. Which of the following events will you use to validate user input?
1.LostFocus
2.Validating
3.Leave
4.Validated
You have designed a logon form with two TextBox controls named txtUserName and txtpassword. You want to ensure that the user can enter only lowercase characters in the controls. Which of the following solutions will fulfill this requirement using the simplest method?
1.Program the KeyPress event of the TextBox controls to convert uppercase letters to lowercase letters
2.Create a single event handler that is attached to the KeyPress event of the form. Program this event handler to convert the uppercase letters to lowercase ones.
3.Set the CharacterCasing property of the Textbox controls to Lower.
4.Use the CharacterCasing method of the controls to convert the letters to lowercase letters
___ attributes can be used for data validation in MVC.
1.DataAnnotations
2.Fluent API
3.DataModel
4.HtmlHelper