State True or False: Static method cannot be overridden
True
False
The Equivalent HTML Control for the <input type=”button”> tag is
HtmlInput
HtmlButton
HtmlPushButton
HtmlInputButton
The Equivalent Html Control for the <input type=”checkbox”> tag is
HtmlCheckBox
HtmlInputChkBox
HtmlInputCheckBox
HtmlInputTypeChkBox
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>
State True or False: Events in Web forms are processed before the “Page Load” event
True
False
What namespaces are necessary to create a localized application?
System.Globalization
System.Globalization and System.Resources.
System.Resources.
System.Array
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
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
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
The RangeValidator control supports the following datatype
Integer and String
Integer, Float, String, XMLDatatypes
Integer, String and Date
Integer, Boolean, Short, 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.
State True or False: Any ODBC-compliant database can be accessed through ASP.NET
True
False
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
A set of tables are maintained in a Dataset as
TablesCollection object
DataTableCollection object
DataRowsCollection object
TableRowCollection 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
What are the different methods to access Database in .NET ?
OleDB,ODBC,SQLClient
OleDB, JDBC, SQLServer
ODBC-JDBC, DataSet, SQLClient
Datasource, DataSet, DSN
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”
Which one of the following objects is used to create a foreign key between two DataTables?
DataRelation
DataRelationship
DataConstraint
DataKey
The Syntax for data-binding expressions is
<%# property or collection %>
<%# property or collection #%>
<%$ property or collection %>
<%@ property or collection %>
The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
Bind()
Fill()
FillData()
SetData()
Which of the following operations can you NOT perform on an ADO.NET DataSet?
A DataSet can be synchronised with the database.
A DataSet can be synchronised with a RecordSet.
A DataSet can be converted to XML.
You can infer the schema from a DataSet
Which is the correct statement to set the alias name for namespace in C#?
WHAT IS THE DIFF B/W TRIGGER AND VIEWS AND THEIR IMPORTANCE IN DBMS
Trigers are doing some action, but views are holding some sql queries in the SQL Server or in another database server. And when you use Views, you just write some simple query instead of huge one, which is beeing hold in the View.
#10. Disables all DHTML events(including Validation controls)
If, for whatever reason, you want to disable client-side form validation, you can do so by adding the following directive at the top of your page -
#13. What is the difference between Convert.ToInt32 and int.Parse?
B. Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
1)select cast(get date() as text) returns
2)IDENT-current returns
3)following is not a valid method of HTTP server utility class
a)execute b)transfer c)mappath
3) the following cannot be declared using partial modifier
a)struct b)enum c)interface d)class
Which is the correct statement to set the alias name for namespace in C#?
using System Data.OracleClient = aliasName;
using aliasName = System.Data.OracleClient;
string aliasName = using.System.Data.OracleClient;
Both a & b
67 Comments on .NET WebDev interview questions - Part 2
The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
AllowSorting = “true†and AllowPaging = “trueâ€Â
Which one of the following objects is used to create a foreign key between two DataTables?
DataRelation
The Syntax for data-binding expressions is
The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
Fill()
Which one of the following objects is used to create a foreign key between two DataTables?
DataRelation
DataRelationship
DataConstraint
DataKey
Ans: DataConstraint
Correct answer for question
* Which one of the following objects is used to create a foreign key between two DataTables?
is a) DataRelation
WHAT IS THE DIFF B/W TRIGGER AND VIEWS AND THEIR IMPORTANCE IN DBMS
Trigers are doing some action, but views are holding some sql queries in the SQL Server or in another database server. And when you use Views, you just write some simple query instead of huge one, which is beeing hold in the View.
#10. Disables all DHTML events(including Validation controls)
If, for whatever reason, you want to disable client-side form validation, you can do so by adding the following directive at the top of your page -
OR
/* */
#13. What is the difference between Convert.ToInt32 and int.Parse?
B. Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
#17: The namespaces needed to use data mechanisms in ASP.NET pages are
A: System.Data, System.Data.OleDb or System.Data.SQL
#18. What are the different methods to access Database in .NET ?
A: OleDB,ODBC,SQLClient
Q22 Ans :- Fill()
Q23 Ans :- A DataSet can be synchronised with a RecordSet.
Q24 Ans :- using aliasName = System.Data.OracleClient;
NTS said,
Q22 Ans :- Fill()
Q23 Ans :- A DataSet can be synchronised with a RecordSet.
Q24 Ans :- using aliasName = System.Data.OracleClient;
1)select cast(get date() as text) returns
2)IDENT-current returns
3)following is not a valid method of HTTP server utility class
a)execute b)transfer c)mappath
3) the following cannot be declared using partial modifier
a)struct b)enum c)interface d)class
Which is the correct statement to set the alias name for namespace in C#?
using System Data.OracleClient = aliasName;
using aliasName = System.Data.OracleClient;
string aliasName = using.System.Data.OracleClient;
Both a & b
Ans:using System Data.OracleClient = aliasName;
what is the meaning of pipeline in asp.net
The Equivalent Html Control for the tag is
HtmlCheckBox
HtmlInputChkBox
HtmlInputCheckBox
HtmlInputTypeChkBox
Ans >> HtmlInputCheckBox
Which operator is used for connecting a event with a procedure in C#?
+=
=
both
none
Ans >> +=
The Equivalent Html Control for the tag is
* HtmlSelectInput
* HtmlSelect
* HtmlInputSelect
* HtmlSelectControl
Ans >> HtmlSelect
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
Ans: System.Web.UI.WebControls.WebControl