.NET Web Interview Questions - Part 2

Started by VelMurugan, Mar 25, 2008, 05:44 PM

Previous topic - Next topic

VelMurugan

.NET Web Interview Questions

The keyword 'int' maps to one of the following .NET types
* System.Int16
* System.Int32
* System.Int64
* System.Int128

System.Int32

What can be achieved in IL which is not possible in C# ?
* Creation of an ArrayList
* Creation of a Dictionary
* Creation of a two dimensional array
* Creation of a non-zero based array

Answer1 : Creation of a dictionary

Answer2 : Creation of a non-zero based array


Which of the following is the correct code for setting a Session timeout of 30 minutes
* Session.Timeout = 108000
* Session.Timeout = 1800
* Session.Timeout = 300
* Session.Timeout = 30

Answer1 : Session.Timeout = 1800

Answer2 : Session.Timeout = 30


The process that ASP.NET uses to keep track of Sessions without cookies is
* Cookie Munging
* Cookie Monking
* Cookie Mocking
* Cookie Munching

Cookie munging

The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is
* Server.Transfer()
* Server.Redirect()
* Server.Execute()
* Server.Return()

Answer1 : Server.Redirect()

Answer2 : Server.Execute()


A structure in C# can be derived from one or more
* class
* interface
* both
* none

interface.

State True or False: Static method cannot be overridden
* True
* False

True

The Equivalent HTML Control for the <input type="button"> tag is
* HtmlInput
* HtmlButton
* HtmlPushButton
* HtmlInputButton

HtmlInputButton

The Equivalent Html Control for the <input type="checkbox"> tag is
* HtmlCheckBox
* HtmlInputChkBox
* HtmlInputCheckBox
* HtmlInputTypeChkBox

HtmlInputCheckBox

Which operator is used for connecting a event with a procedure in C#?
* +=
* =
* both
* none

+=

The Equivalent Html Control for the <select> tag is
* <HtmlSelectInput>
* <HtmlSelect>
* <HtmlInputSelect>
* <HtmlSelectControl>

<HtmlSelect>

State True or False: Events in Web forms are processed before the "Page Load" event
* True
* False

True

What namespaces are necessary to create a localized application?
* System.Globalization
* System.Globalization and System.Resources.
* System.Resources.
* System.Array

System.Resources

A new server-side control can be created by implementing the class
* System.Web.WebControl
* System.Web.UI.WebControl
* System.Web.UI.WebControls.WebControl
* Any one of the above

System.Web.UI.WebControls.WebControl

The parameter "clienttarget = downlevel" does one of the following
* Adds aliases for specific user agents to an internal collection of user agent aliases
* Indicates the useragents level of validating the controls
* Disables all DHTML events(including Validation controls)
* None of the above

None of the above

The methods in C# can be overloaded in which of the following ways
* By having the same method name and specifying different number of parameters
* By giving different method names and same number of parameters
* By having the same method name and specifying different types of parameters
* By giving different method names and same types of parameters

By having the same method name and specifying different types of parameters

The RangeValidator control supports the following datatype
* Integer and String
* Integer, Float, String, XMLDatatypes
* Integer, String and Date
* Integer, Boolean, Short, String and Date

Integer, String and Date

What is the difference between Convert.ToInt32 and int.Parse?
* Both are same and both can handle null value.
* Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
* int.Parse can handle null value but Convert.ToInt32 throws ArgumentNullException error.
* Both Convert.ToInt32 and int.Parse cannot handle null value.

Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.

State True or False: Any ODBC-compliant database can be accessed through ASP.NET
* True
* False

True

You need to select a .NET language that has auto-documenting features built into the source code and compiler. Given the scenario above what language compiler should be selected?
* vbc.exe
* cl.exe
* ilasm.exe
* cs.exe

cs.exe

A set of tables are maintained in a Dataset as
* TablesCollection object
* DataTableCollection object
* DataRowsCollection object
* TableRowCollection object

TablesCollection object

The namespaces needed to use data mechanisms in ASP.NET pages are
* System.Data, System.Data.OleDb or System.Data.SQL
* System.Data, System.Data.ODBC
* System.Data, System.Data.DataRow
* System.Data.DataRowCollection, System.Data.DbType

System.Data, System.Data.OleDb or System.Data.SQL

What are the different methods to access Database in .NET ?
* OleDB,ODBC,SQLClient
* OleDB, JDBC, SQLServer
* ODBC-JDBC, DataSet, SQLClient
* Datasource, DataSet, DSN

OleDB,ODBC,SQLClient

The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
* EnableSorting = "true" and EnablePaging = "true"
* DisableSorting = "false" and DisablePaging = "false"
* AllowSorting = "true" and AllowPaging = "true"
* Sorting = "true" and Paging = "true"

AllowSorting = "true" and AllowPaging = "true"