DotNET Quiz: Can You Pass This Test?

22 Questions | Total Attempts: 87

SettingsSettingsSettings
Please wait...
DotNET Quiz: Can You Pass This Test?

This is a DotNet Quiz, can you pass this test? This application is perfect for ensuring just how much you know about this resource that helps you to create computer applications. Do give it a shot and get to find out just how much you understand this resource, all the best and keep a lookout for other tests that will be helpful to you. All the best!


Questions and Answers
  • 1. 
    _________ is the most important component of the  framework?
    • A. 

      ASP

    • B. 

      Common Language Runtime

    • C. 

      Java Virtual Machine

    • D. 

      JScript

  • 2. 
    What output would you expect from the following code?using System;class A{public virtual void F() { Console.Write("A"); }}class B: A{public override void F() { Console.Write("B"); }}class C: B {new public virtual void F() { Console.Write("C"); }}class D: C{public override void F() { Console.Write("D"); }}class Test{static void Main() {D d = new D();A a = d;B b = d;C c = d;a.F();b.F();c.F();d.F();}}
    • A. 

      BBDD

    • B. 

      BBCD

    • C. 

      ABCD

    • D. 

      ABBC

  • 3. 
    Which of the following is used to access the registry from C# code?
    • A. 

      System.MarshalByRefObject

    • B. 

      System.Environment

    • C. 

      Microsoft.Win32

    • D. 

      System.LocalDataStoreSlot

  • 4. 
    Where are Shared Assemblies stored?
    • A. 

      In a stack.

    • B. 

      In the Debug Folder

    • C. 

      In the Global Assembly Cache

    • D. 

      Queue.

  • 5. 
    When the 'Finally' block of c# code is executed?
    • A. 

      Only if 'Try' block was executed

    • B. 

      Only if 'Catch' block was executed

    • C. 

      Any one of 'Try'/'Catch' was executed

    • D. 

      Both a and b

  • 6. 
    What does the keyword virtual mean in the method definition?
    • A. 

      The method can be over-ridden.

    • B. 

      The method can be overloaded

    • C. 

      Method can be inherited

    • D. 

      Abstract class

  • 7. 
    What is a multicast delegate?
    • A. 

      Points to several events

    • B. 

      It’s a delegate that points to and eventually fires off several methods.

    • C. 

      Points to single method

    • D. 

      Delegate that can be casted

  • 8. 
    Which tools would be set to create the .snk(Strong Names) files to store the public/private keys in?
    • A. 

      Use the ilasm.exe utility

    • B. 

      Use the sn.exe utility

    • C. 

      Use the gacutil.exe utility

    • D. 

      Use the resgen.exe utility

  • 9. 
    If a method is declared as virtual, then any derived class
    • A. 

      May provide an alternative (overridden) version of it with exactly the same parameters

    • B. 

      Must provide an alternative (overridden) version of it with exactly the same parameters

    • C. 

      May provide an alternative (overridden) version of it with the same or different parameters

    • D. 

      May provide an alternative (overridden) version of it with the same or different parameters

  • 10. 
    Only one of the following statements is false. Which one?
    • A. 

      Arrays are of a fixed size, but ArrayLists can grow indefinitely

    • B. 

      There is a built-in method to sort arrays but not to sort ArrayLists.

    • C. 

      Indices for arrays must be integers, but for ArrayLists can be anything.

    • D. 

      Arrays can be multi-dimensional but ArrayLists have only one dimension.

  • 11. 
    In your program, you've included a ComboBox control that will hold a list of month names. The month names can be retrieved into a string array. Which flow control statement would best let you transfer the names into the ComboBox?
    • A. 

      For...Next

    • B. 

      For Each...Next

    • C. 

      Do...Loop

    • D. 

      If...Then...Else

  • 12. 
    The _________method commits all pending changes within the DataSet.
    • A. 

      Reject()

    • B. 

      AcceptChanges( )

    • C. 

      Rejectchanges()

    • D. 

      Commit()

  • 13. 
    _________ is the most important component of the  framework?
    • A. 

      ASP

    • B. 

      Common Language Runtime

    • C. 

      Java Virtual Machine

    • D. 

      JScript

  • 14. 
    The discovery document is the webservice address followed by ______________.
    • A. 

      DISCO

    • B. 

      WSDL

    • C. 

      Proxy

    • D. 

      UDDI

  • 15. 
    What is the name of the JavaScript function generated by ASP's    Page.RegisterClientScriptBlock method?
    • A. 

      __doPostBack

    • B. 

      __firePostBack

    • C. 

      __submitForm

    • D. 

      Postback

  • 16. 
    Which of the following is not a  Internet standard?
    • A. 

      HTTP

    • B. 

      XML

    • C. 

      SOAP

    • D. 

      PHP

  • 17. 
    What important standard is used to connect client browsers with web servers ?
    • A. 

      HTTP

    • B. 

      TCP/IP

    • C. 

      ASP.NET

    • D. 

      HTML

  • 18. 
    What ASP.NET object is used to get information about the web servers ?
    • A. 

      The Server object

    • B. 

      The Application object

    • C. 

      The Request object

    • D. 

      The Response object

  • 19. 
    What attribute must be set on a validator control for the validation to work ?
    • A. 

      Validate

    • B. 

      ValidateControl

    • C. 

      ControlToBind

    • D. 

      ControlToValidate

  • 20. 
    What HTML element is the asp:Label control rendered as when the target is Internet Explorer ?
    • A. 

    • B. 

    • C. 

    • D. 

  • 21. 
    Given an ASP.NET Web Form called WebForm1, what class does the WebForm1 class inherit from by default ?
    • A. 

      System.Web.Form

    • B. 

      System.Web.GUI.Page

    • C. 

      System.Web.UI.Page

    • D. 

      System.Web.UI.Form

  • 22. 
    What is the Web.config file used for ?
    • A. 

      To store the global information and variable definitions for the application

    • B. 

      Configures the time that the server-side codebehind module is called

    • C. 

      To configure the web server

    • D. 

      To configure the web browser

Related Topics
Back to Top Back to top