.NET WebDev interview questions - Part 2
1. A structure in C# can be derived from one or more
* class
* interface
* both
* none
2. State True or False: Static method cannot be overridden
* True
* False
3. The Equivalent HTML Control for the <input type=”button”> tag is
* HtmlInput
* HtmlButton
* HtmlPushButton
* HtmlInputButton
4. The Equivalent Html Control for the <input type=”checkbox”> tag is
* HtmlCheckBox
* HtmlInputChkBox
* HtmlInputCheckBox
* HtmlInputTypeChkBox
5. Which operator is used for connecting a event with a procedure in C#?
* +=
* =
* both
* none
6. The Equivalent Html Control for the <select> tag is
* <HtmlSelectInput>
* <HtmlSelect>
* <HtmlInputSelect>
* <HtmlSelectControl>
7. State True or False: Events in Web forms are processed before the “Page Load” event
* True
* False
8. What namespaces are necessary to create a localized application?
* System.Globalization
* System.Globalization and System.Resources.
* System.Resources.
* System.Array
9. 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
10. 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
11. 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
12. The RangeValidator control supports the following datatype
* Integer and String
* Integer, Float, String, XMLDatatypes
* Integer, String and Date
* Integer, Boolean, Short, String and Date
13. 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.
14. State True or False: Any ODBC-compliant database can be accessed through ASP.NET
* True
* False
15. 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
16. A set of tables are maintained in a Dataset as
* TablesCollection object
* DataTableCollection object
* DataRowsCollection object
* TableRowCollection object
17. 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
18. What are the different methods to access Database in .NET ?
* OleDB,ODBC,SQLClient
* OleDB, JDBC, SQLServer
* ODBC-JDBC, DataSet, SQLClient
* Datasource, DataSet, DSN
19. 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”
20. Which one of the following objects is used to create a foreign key between two DataTables?
* DataRelation
* DataRelationship
* DataConstraint
* DataKey
21. The Syntax for data-binding expressions is
* <%# property or collection %>
* <%# property or collection #%>
* <%$ property or collection %>
* <%@ property or collection %>
22. The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
* Bind()
* Fill()
* FillData()
* SetData()
23. 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
24. 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
25. The property that indicates whether existing database constraints should be observed when performing updates
* EnforceConstraints
* Constraints
* GetConstraints
* ConstraintsEnforce























