.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
This entry was posted in .NET, Web dev. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

67 Comments on .NET WebDev interview questions - Part 2

  1. renuga
    Posted 1/23/2007 at 11:47 am | Permalink

    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()

  2. Thiru
    Posted 3/10/2007 at 1:35 am | Permalink

    Which one of the following objects is used to create a foreign key between two DataTables?
    DataRelation
    DataRelationship
    DataConstraint
    DataKey

    Ans: DataConstraint

  3. Manju
    Posted 3/24/2007 at 1:50 pm | Permalink

    Correct answer for question
    * Which one of the following objects is used to create a foreign key between two DataTables?
    is a) DataRelation

  4. Hrach Gyulzadyan
    Posted 3/27/2007 at 3:01 pm | Permalink

    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.

  5. Manju
    Posted 4/12/2007 at 4:00 am | Permalink

    #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

  6. Manju
    Posted 4/12/2007 at 4:02 am | Permalink

    /* */

  7. Manju
    Posted 4/12/2007 at 4:08 am | Permalink

    #13. What is the difference between Convert.ToInt32 and int.Parse?
    B. Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.

  8. Manju
    Posted 4/12/2007 at 4:12 am | Permalink

    #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

  9. NTS
    Posted 6/25/2007 at 4:42 am | Permalink

    Q22 Ans :- Fill()
    Q23 Ans :- A DataSet can be synchronised with a RecordSet.
    Q24 Ans :- using aliasName = System.Data.OracleClient;

  10. as
    Posted 8/16/2007 at 12:12 am | Permalink

    NTS said,
    Q22 Ans :- Fill()
    Q23 Ans :- A DataSet can be synchronised with a RecordSet.
    Q24 Ans :- using aliasName = System.Data.OracleClient;

  11. laxman
    Posted 8/16/2007 at 1:30 pm | Permalink

    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

  12. Veera Venkata
    Posted 11/29/2007 at 7:17 am | Permalink

    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;

  13. sujith
    Posted 1/8/2008 at 6:10 am | Permalink

    what is the meaning of pipeline in asp.net

  14. Archana
    Posted 7/30/2008 at 7:55 am | Permalink

    The Equivalent Html Control for the tag is
    HtmlCheckBox
    HtmlInputChkBox
    HtmlInputCheckBox
    HtmlInputTypeChkBox

    Ans >> HtmlInputCheckBox

  15. Archana
    Posted 7/30/2008 at 7:57 am | Permalink

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

    Ans >> +=

  16. Archana
    Posted 7/30/2008 at 7:59 am | Permalink

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

    Ans >> HtmlSelect

  17. nivas
    Posted 10/15/2008 at 7:59 am | Permalink

    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

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*