Acs - Advance C# For Aptech Accp 2007

71 Questions | Total Attempts: 731

SettingsSettingsSettings
Please wait...
Acs - Advance C# For Aptech Accp 2007

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

  • 26. 
    This is a phrase for complications which arise when working with dynamic link libraries.
    • A. 

      DLLs

    • B. 

      DLL Hell

    • C. 

      DLLImport

  • 27. 
    These are the building blocks used by the .Net Framework used to solve the versioning and deployment problems posed by the DLLs
    • A. 

      Assemblies

    • B. 

      Attributes

    • C. 

      XPath

    • D. 

      Custom Attributes

  • 28. 
    This is a collection of information required by the runtime to execute an application.
    • A. 

      Collection

    • B. 

      Attribute

    • C. 

      DLLs

    • D. 

      Assembly

  • 29. 
    This is deployed with an application and is available only for the application.
    • A. 

      A public assembly

    • B. 

      A private assembly

    • C. 

      A Shared assembly

    • D. 

      A protected assembly

  • 30. 
    A assembly consists of parts: - 3 choices
    • A. 

      DLLs

    • B. 

      Assembly Metadata

    • C. 

      Type Metadata

    • D. 

      Dll Hell

    • E. 

      MSIL Code & Resources

  • 31. 
    A namespace can contain one or more assemblies and an assembly can contain one or more namespaces.
    • A. 

      True

    • B. 

      False

  • 32. 
    Which statements are true with assembly.- 3 choices
    • A. 

      Multiple applications can not implement the same DLL file due to versioning problem

    • B. 

      DLLs use fewer resource

    • C. 

      Modular programs cannot be built using Dynamic Link Library

    • D. 

      Applications must be self describing so that they are no longer dependent of the registry entries.

  • 33. 
    Collection of information existing in binary form in a Portable Executable file or a .Net assembly.
    • A. 

      Type metadata

    • B. 

      Assembly metadata

    • C. 

      MSIL Code

  • 34. 
    File such as JPEG, text, XML and other types that are used in the application.
    • A. 

      MSIL Code

    • B. 

      Resource

    • C. 

      Multifle Assembly

  • 35. 
    Data present in the assembly and its type.
    • A. 

      Assembly Metadata

    • B. 

      Type Metadata

  • 36. 
    Compilers convert the source code into an intermediate language.
    • A. 

      Assembly

    • B. 

      MSIL Code

    • C. 

      Resource

  • 37. 
    The System.IO namespace in .Net does not support stream handling.
    • A. 

      True

    • B. 

      False

  • 38. 
    The class named File is a member of System.IO namespace.
    • A. 

      True

    • B. 

      False

  • 39. 
    This class reads primary data types as binary values in a specific encoding.
    • A. 

      TextReader

    • B. 

      BinaryReader

    • C. 

      FileStream

  • 40. 
    This class provides methods for creating, moving and enumerating through directories and sub-directories.
    • A. 

      DirectoryInfor

    • B. 

      Directory

    • C. 

      MemberInfor

  • 41. 
    This class provides instance methods for creating, moving and enumerating directories and sub-directories.
    • A. 

      DirectoryInfor

    • B. 

      Directory

    • C. 

      File

  • 42. 
    This class provides static methods for creating and manipulating files.
    • A. 

      FileStream

    • B. 

      File

    • C. 

      FileInfor

    • D. 

      FileSystemInfor

  • 43. 
    This class contains methods that are common to file and directory manipulation.
    • A. 

      Stream

    • B. 

      FileSystemInfor

    • C. 

      FileInfor

    • D. 

      File

  • 44. 
    The TextReader class represents a reader that can read a sequence of characters.
    • A. 

      True

    • B. 

      False

  • 45. 
    This class is not part of the system.IO namsepace, It resides within the System.security.
    • A. 

      NetWorkStream

    • B. 

      CryptoStream

  • 46. 
    These classes are not part of the System.IO namspace.
    • A. 

      NetWorkStream

    • B. 

      CryptoStream

    • C. 

      BufferStream

    • D. 

      MemoryStream

  • 47. 
    This class can be used for operations such as creating, copying, moving, deleting and appending to files.
    • A. 

      FileStream

    • B. 

      FileInfor

    • C. 

      File

    • D. 

      FileManipulate

  • 48. 
    The FileInfor class is used to create FileStream Object.
    • A. 

      True

    • B. 

      Fasle

  • 49. 
    In Directory class, this method returns a DirectoryInfor object which can be used to work with the newly created directory.
    • A. 

      CreateDirectoryInfor();

    • B. 

      CreateDir();

    • C. 

      CreateDirectory()

  • 50. 
    This method of Directory class is also used to rename the directory.
    • A. 

      Rename();

    • B. 

      Move();

    • C. 

      Delete();

    • D. 

      ReMove();

  • 51. 
    Get the names of sub-directories in a specified directory.
    • A. 

      GetDirectories

    • B. 

      GetDirectory

    • C. 

      GetCurrentDirectory

  • 52. 
    Returns current working directory of the application.
    • A. 

      GetDirectoties

    • B. 

      GetCurrentDirectory

    • C. 

      SetCurrentDirectory

  • 53. 
    Which the terms do they belong to Directoryinfo class?- 3 choices
    • A. 

      FullName

    • B. 

      CreateDirectory()

    • C. 

      Move()

    • D. 

      MoveTo()

    • E. 

      Create()

  • 54. 
    Re-order steps of creating a thread in C#. 1.Define a method inside class. 2. Create constructor. 3. Define a class 4. Create one or more objects of the class in the new class 5.Create one or more Thread objects in the new class 6. Start the execution of the thread.
    • A. 

      1-2-3-4-5-6

    • B. 

      2-4-5-6-1-3

    • C. 

      3-2-1-4-5-6

    • D. 

      3-1-4-5-6

  • 55. 
    Only the Thread class can be used to create a thread object.
    • A. 

      True

    • B. 

      False

  • 56. 
    A portion of thread which is accessed by multiple threads at the same time.
    • A. 

      Locking

    • B. 

      Reentrant

    • C. 

      Critical Section

    • D. 

      Thread Pooling

  • 57. 
    This object that does not change its state after it is create.
    • A. 

      Thread object

    • B. 

      Immutable object

    • C. 

      Pool object

  • 58. 
    This method which id thread - safe
    • A. 

      Locking

    • B. 

      Interrupt

    • C. 

      Reentrant

  • 59. 
    This performs operations like joins, ordering and sorting
    • A. 

      XmlReader and XmlWriter

    • B. 

      XPath

    • C. 

      XQuery

  • 60. 
    A standard that helps in processing xml
    • A. 

      XmlReader

    • B. 

      System.Xml namespace

    • C. 

      XQuery

  • 61. 
    A class that has the ability to accept or reject changes in the document.
    • A. 

      XmlDocument

    • B. 

      APathDocument

    • C. 

      XPathEdittableNavigator

  • 62. 
    XmlTextWriter is a class that is derived from XmlWriter
    • A. 

      True

    • B. 

      False

  • 63. 
    WriteString() method flushes the buffer and writes whatever data is left in the buffer to the stream.
    • A. 

      True

    • B. 

      False

  • 64. 
    Read the next node from the stream.
    • A. 

      XmlTextReader

    • B. 

      Read method

  • 65. 
    Rises when a validation error occurs
    • A. 

      ValidationEventHandle

    • B. 

      ValidationType

  • 66. 
    Child operator ; selects immediate children of the left-site collection
    • A. 

      //

    • B. 

      /

    • C. 

      ..

    • D. 

      *

  • 67. 
    Recursive descent ; searches for the specified element at any depth
    • A. 

      //

    • B. 

      ..

    • C. 

      @

    • D. 

      *

  • 68. 
    The parent of the current context node
    • A. 

      //

    • B. 

      ..

    • C. 

      @

    • D. 

      *

  • 69. 
    Attribute ; prefix for an attribute name
    • A. 

      @

    • B. 

      *

    • C. 

      -

    • D. 

      //

  • 70. 
    Wildcard; selects all elements regardless of the element name.
    • A. 

      **

    • B. 

      &

    • C. 

      #

    • D. 

      *

    • E. 

      //

  • 71. 
    Which characters do not belong to XPath expression.
    • A. 

      *

    • B. 

      ;

    • C. 

      .

    • D. 

      ?

    • E. 

      #