Acs - Advance C# For Aptech Accp 2007

71 Questions | Attempts: 742
Share

SettingsSettingsSettings
Acs - Advance C# For Aptech Accp 2007 - Quiz

As you aim at getting the certification for computer operation there is need to be on your toes before the exam is due. Take up the quiz below and see what you need to polish up to get your practicing ticket. All the best and do share the quiz with your classmates.


Questions and Answers
  • 1. 
    This feature prevents multiple threads from simultaneously modifying the state of the resource , by including various classes and data types.
    • A. 

      Parallel execution of code.

    • B. 

      Thread interruption

    • C. 

      Thread Synchronization

    • D. 

      Mutual Exclusion

    • E. 

      Thread Waiting

  • 2. 
    This feature is the mechanism of blocking a thread util some condition becomes true
    • A. 

      Thread Synchronization

    • B. 

      Join

    • C. 

      Thread Waiting

  • 3. 
    Synchronizes access to objects
    • A. 

      Monitor

    • B. 

      Timer

    • C. 

      ThreadPool

  • 4. 
    Contains operating system-specific objects that wait for access to shared resources.
    • A. 

      TimeOut

    • B. 

      WaitHandle

    • C. 

      Thread

  • 5. 
    This retrieves a value which indicates whether a thread belongs to the managed thread pool.
    • A. 

      IsAlive

    • B. 

      ManagedThreadId

    • C. 

      IsThreadPoolThread

    • D. 

      ThreadState

  • 6. 
    Retrieves the value of execution status of the current thread.
    • A. 

      IsAlive

    • B. 

      CurrentThread

    • C. 

      ThreadState

  • 7. 
    Retrieves a value which contains the state of the current thread.
    • A. 

      CurrentThread

    • B. 

      ThreadState

    • C. 

      IsAlive

  • 8. 
    Priority retrieves or specifies a value which indicates the scheduling priority of a thread.
    • A. 

      True

    • B. 

      False

  • 9. 
    This method blocks the calling thread till the thread ends.
    • A. 

      Sleep

    • B. 

      Start

    • C. 

      Join

    • D. 

      Interrupt

  • 10. 
    This method obstructs the current thread for the specified time.
    • A. 

      Join

    • B. 

      Sleep

    • C. 

      Abort

  • 11. 
    A Thread must be in the Running state before the operating System can schedule it.
    • A. 

      True

    • B. 

      False

  • 12. 
    The default priority of a thread is:
    • A. 

      Highest

    • B. 

      Normal

    • C. 

      AboveNormal

    • D. 

      Lowest

  • 13. 
    This is a language for retrieving information from a XML Document. is used to navigate through elements and attributes in an xml document.
    • A. 

      XQuery

    • B. 

      XPath

    • C. 

      SXLT

    • D. 

      SLT

  • 14. 
    An XPath expression are returns: - 3 choices
    • A. 

      A node set

    • B. 

      A integer value

    • C. 

      A boolean

    • D. 

      A String and a number

  • 15. 
    Steps to add data into an existing XML file.    1. Create a Method to create new element    2. add the element after the last child node.    3. write value to the element.    4. Declare the objects    5.Save the file.
    • A. 

      1-2-3-4-5

    • B. 

      3-1-2-4-5

    • C. 

      4-1-2-3-5

    • D. 

      4-1-3-2-5

  • 16. 
    This is an abstract class that provides a cursor model for navigating and editing XMl data.
    • A. 

      XPath

    • B. 

      XQuery

    • C. 

      XEdit

    • D. 

      XPathNavigator

  • 17. 
    How to declare Attributes:
    • A. 

      [AttributeName(parameters)] Element_Name(parameter){//Implementation}

    • B. 

      [AttributeName(parameters)]; Element_Name(parameter){//Implementation}

  • 18. 
    This attribute can be used as debugging aid in the C# code.
    • A. 

      DLLImport

    • B. 

      Conditional

    • C. 

      Obsolete

  • 19. 
    Which statements are true? - 3 choices
    • A. 

      Custom attributes cannot be applied to more than one programming element

    • B. 

      Attributes are a mechanism of adding metadata to a programming element

    • C. 

      Attribute information can not be retrieved from custom attributes

    • D. 

      Descriptive information in the metadata can be extracted using runtime reflection services.

    • E. 

      Attributes are stored with the metadata of the element they are associated with.

  • 20. 
    Code developed outsite the .net framework.
    • A. 

      DLLImport

    • B. 

      System.Diagnostics

    • C. 

      Unmanaged Code

  • 21. 
    Namespace is mandatory for using DLLImport attribute
    • A. 

      System.DLLImport

    • B. 

      System.Runtime.InteropServices

    • C. 

      System.Diagnostics

  • 22. 
    Used to invoke unmanaged code in a C#  program.
    • A. 

      Unmanaged Code

    • B. 

      Conditional Attribute

    • C. 

      DLLImport Attribute

  • 23. 
    Use as debugging aid in the C# code.
    • A. 

      Conditional Attribute

    • B. 

      System.Debug

    • C. 

      System.Diagnostics

  • 24. 
    Namespace is mandatory for using the Conditional attribute
    • A. 

      Conditional Attribute.

    • B. 

      System.Diagnostics

    • C. 

      System.Runtime.InteropServices

  • 25. 
    A DLL is a library that contains code and data that can be used by more than one program at the same time.
    • A. 

      True

    • B. 

      False

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.