Monday, March 24, 2008

.NET WebDev interview questions - Part 1 @ Tech Interviews.com

.NET WebDev interview questions - Part 1 @ Tech Interviews.com

  1. Which of the following languages is NOT included in the default .NET Framework installation?
  2. What are the different types of serialization supported in .NET Framework
    • XmlSerializer
    • SoapFormatter
    • XPathNavigator
    • HttpFormatter
  3. The CLR uses which format for assembly version numbers
    • Major:Minor:Revision:Build
    • Major:Build:Minor:Revision
    • Major:Revision:Minor:Build
    • Major:Minor:Build:Revision
  4. What tool is used to manage the GAC?
    • GacMgr.exe
    • GacSvr32.exe
    • GacUtil.exe
    • RegSvr.exe
  5. State True or False: A single .NET dll can contain unlimited classes
    • True
    • False
  6. State True or False: ASP.NET can currently run only on Windows Platform
    • True
    • False
  7. Which one of the following best describes “Type-Safe”
    • It ensures that the data type are safely handled
    • It ensures that types are not mismatched when they are called so uses a typecasting before referencing any data object
    • It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types
    • All of the above
  8. The number of objects in ASP.NET is
    • 6
    • 7
    • 9
    • 10
  9. The code used to turn off buffering is
    • Buffering = false
    • OutputBuffer = false
    • BufferOutput = false
    • Buffer = Off
  10. Can you have two applications on the same machine one which is using .NET Framework 1.1 and the other using 2.0 ?
    • Yes
    • No
    • Depends on System configuration
  11. Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
    • sn.exe
    • certnet.exe
    • certmgr.exe
    • gacutil.exe
  12. You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used?
    • certmgr.exe
    • gacutil.exe
    • sn.exe
    • resgen.exe
  13. The object that contains all the properties and methods for every ASP.NET page, that is built is
    • Page Object
    • HTTPPage Object
    • WebPage Object
    • System.Web.UI.Page
  14. In C#, which character is used to indicate a verbatim string literal?
    • @
    • !
    • "
    • #
  15. Which of the following operators has the highest precedence?
    • Pre Increment (++x)
    • Shift bits left: <<
    • Bitwise Or: |
    • Post Increment (x++)
  16. The uniqueId that gets generated at the start of the Session is stored in
    • Client computer as a cookie
    • Server machine
    • Passed to and fro on each and every request and response
    • Both a and b are correct
  17. State True or False: C# supports multiple-inheritance
    • True
    • False
  18. Bitwise AND operator in C# is
    • &
    • &&
    • AND
    • XAND
  19. Bitwise OR operator in C# is
    • OR
    • ||
    • |
    • XOR
  20. What’s the .NET datatype that allows the retrieval of data by a unique key?
    • Primary
    • Integer
    • Unique Identifier
    • HashTable
  21. The keyword ‘int’ maps to one of the following .NET types
    • System.Int16
    • System.Int32
    • System.Int64
    • System.Int128
  22. 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
  23. 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
  24. The process that ASP.NET uses to keep track of Sessions without cookies is
    • Cookie Munging
    • Cookie Monking
    • Cookie Mocking
    • Cookie Munching
  25. 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()

43 Responses to “.NET WebDev interview questions - Part 1”

  1. webdeveloper Says:

    Q1 vbscript.net
    Q2 xmlserializer
    Q3 Major minor build revision

  2. webdeveloper Says:

    Q4 GacUtil.exe
    Q5 true
    Q6 TRUE
    q7All

  3. webdeveloper Says:

    Q 9 Buffer=true
    Q10 Yes
    Q 11 Certmgr.exe
    Q12 SN.EXE
    Q13 Page Object

  4. webdeveloper Says:

    q 15 Shift bits left
    Q 16 a and b
    q 17 false
    q 18 &&
    q 19 ||
    q20 Hashtable
    q21 System.Int32
    Q22 Creation of a dictionary
    q23 Session.Timeout = 1800

    q25 Server.Redirect()

  5. pavan Says:

    24)The process that ASP.NET uses to keep track of Sessions without cookies is
    Cookie Munging
    Cookie Monking
    Cookie Mocking
    Cookie Munching
    ans:actualyy all answers are wrong..the answer is cookie mangling or url mangling…

  6. Stephany Says:

    1. Which of the following languages is NOT included in the default .NET Framework installation?
    o C#
    o VB.NET
    o JScript.NET
    o VBScript.NET
    Answer:
    VBScript.NET

  7. Stephany Says:

    2. What are the different types of serialization supported in .NET Framework
    o XmlSerializer
    o SoapFormatter
    o XPathNavigator
    o HttpFormatter
    Answer:
    XmlSerializer
    SoapFormatter

  8. Stephany Says:

    3 The CLR uses which format for assembly version numbers
    o Major:Minor:Revision:Build
    o Major:Build:Minor:Revision
    o Major:Revision:Minor:Build
    o Major:Minor:Build:Revision
    Answer:
    Major:Minor:Build:Revision

  9. Stephany Says:

    4 What tool is used to manage the GAC?
    o GacMgr.exe
    o GacSvr32.exe
    o GacUtil.exe
    o RegSvr.exe
    Answer:
    GacUtil.exe

  10. Stephany Says:

    5 State True or False: A single .NET dll can contain unlimited classes
    • True
    • False
    Answer:
    True

  11. Stephany Says:

    6 State True or False: ASP.NET can currently run only on Windows Platform
    o True
    o False
    Answer:
    True

  12. Stephany Says:

    7 Which one of the following best describes “Type-Safe”
    o It ensures that the data type are safely handled
    o It ensures that types are not mismatched when they are called so uses a typecasting before referencing any data object
    o It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types
    o All of the above
    Answer:
    It ensures that an object only references memory locations that it’s allowed to, preventing data corruption and the accidental misuse of object types

  13. Stephany Says:

    8 The number of objects in ASP.NET is
    6
    7
    9
    10
    Answer:
    7

  14. Stephany Says:

    9 The code used to turn off buffering is
    o Buffering = false
    o OutputBuffer = false
    o BufferOutput = false
    o Buffer = Off
    Answer:
    Buffer=false

  15. Stephany Says:

    10 Can you have two applications on the same machine one which is using .NET Framework 1.1 and the other using 2.0 ?
    o Yes
    o No
    o Depends on System configuration
    Answer:
    Yes

  16. Stephany Says:

    11 Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
    o sn.exe
    o certnet.exe
    o certmgr.exe
    o gacutil.exe
    Answer:
    certmgr.exe

  17. Stephany Says:

    12 You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used?
    o certmgr.exe
    o gacutil.exe
    o sn.exe
    o resgen.exe
    Answer:
    sn.exe

  18. Stephany Says:

    13 The object that contains all the properties and methods for every ASP.NET page, that is built is
    o Page Object
    o HTTPPage Object
    o WebPage Object
    o System.Web.UI.Page
    Answer:
    Page Object

  19. Stephany Says:

    14 In C#, which character is used to indicate a verbatim string literal?
    o @
    o !
    o ”
    o #
    Answer:
    @

  20. Stephany Says:

    15 Which of the following operators has the highest precedence?
    o Pre Increment (++x)
    o Shift bits left:

  21. Stephany Says:

    16 The uniqueId that gets generated at the start of the Session is stored in
    o Client computer as a cookie
    o Server machine
    o Passed to and fro on each and every request and response
    o Both a and b are correct
    Answer:
    Both a and b are correct

  22. Stephany Says:

    17 State True or False: C# supports multiple-inheritance
    o True
    o False
    Answer:
    False

  23. Stephany Says:

    18 Bitwise AND operator in C# is
    o &
    o &&
    o AND
    o XAND
    Answer:
    &

  24. Stephany Says:

    19 Bitwise OR operator in C# is
    o OR
    o ||
    o |
    o XOR
    Answer:
    |

  25. Stephany Says:

    20 What’s the .NET datatype that allows the retrieval of data by a unique key?
    o Primary
    o Integer
    o Unique Identifier
    o HashTable
    Answer:
    HashTable

  26. Stephany Says:

    21 The keyword ‘int’ maps to one of the following .NET types
    System.Int16
    System.Int32
    System.Int64
    System.Int128
    Answer:
    System.Int32

  27. Stephany Says:

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

  28. Stephany Says:

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

  29. Stephany Says:

    15 Which of the following operators has the highest precedence?
    Pre Increment (++x)
    Shift bits left:

  30. Stephany Says:

    15 Which of the following operators has the highest precedence?
    Pre Increment (++x)
    Shift bits left:
    Bitwise Or: |
    Post Increment (x++)
    Answer:
    Post Increment (x++)

  31. Stephany Says:

    24 The process that ASP.NET uses to keep track of Sessions without cookies is
    o Cookie Munging
    o Cookie Monking
    o Cookie Mocking
    o Cookie Munching
    Answer:
    Cookie munging

  32. Stephany Says:

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

  33. Rana Ranjeet Singh Says:

    8 The number of objects in ASP.NET is
    6
    7
    9
    10
    Answer:
    7

    Tech Interviews comment by Stephany

    The answer written above is wrong.

    The correct answer is 10

  34. Rana Ranjeet Singh Says:

    Actually in classic ASP , there are 07 objects

  35. Babu Says:

    how can ii convert asp code to asp.net code…
    or is it possible

  36. Reena Says:

    what is the difference b/w server.transfer() and server.Execute

  37. Nagaraja Says:

    There are only 6 objects in ASP.net

    Server
    Session
    Application
    ObjectContext
    Response
    Request

  38. Ram Says:

    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

    Ans: d
    u can create an array which can start from 1 rather starting from 0 as generally happens in c#.
    In IL, u can do a array of lengh starting from 1 or the number u specify to 10 numbers from that.

  39. surya Says:

    what is main difference between ComboBox and DropDownLIst ?

  40. Biswaprakash Nayak Says:

    3 The CLR uses which format for assembly version numbers
    o Major:Minor:Revision:Build
    o Major:Build:Minor:Revision
    o Major:Revision:Minor:Build
    o Major:Minor:Build:Revision
    Answer:
    Major:Minor:Build:Revision

    go through http://www.dotnet247.com/247reference/msgs/45/225355.aspx

  41. Biswaprakash Nayak Says:

    9 The code used to turn off buffering is
    o Buffering = false
    o OutputBuffer = false
    o BufferOutput = false
    o Buffer = Off
    Answer:
    Buffer=false
    In the page directive u can set that Buffer=”false”

  42. Biswaprakash Nayak Says:

    11 Which of the following DOT.NET tools manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs)?
    o sn.exe
    o certnet.exe
    o certmgr.exe
    o gacutil.exe
    Answer:
    certmgr.exe

    this s Certificate Manager tool manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs).

  43. Eldar Says:

    Regarding question #22, you can create a non-zero based array in c# by using System.Array’s static method: CreateInstance. See http://www.angrycoder.com/article.aspx?ArticleID=253.

No comments:

如何发掘出更多退休的钱?

如何发掘出更多退休的钱? http://bbs.wenxuecity.com/bbs/tzlc/1328415.html 按照常规的说法,退休的收入必须得有退休前的80%,或者是4% withdrawal rule,而且每年还得要加2-3%对付通胀,这是一个很大...