Acs - Advance C# For Aptech Accp 2007

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Vietha
V
Vietha
Community Contributor
Quizzes Created: 11 | Total Attempts: 9,911
| Attempts: 770 | Questions: 71
Please wait...
Question 1 / 71
0 %
0/100
Score 0/100
1. The TextReader class represents a reader that can read a sequence of characters.

Explanation

The explanation for the given correct answer, which is True, is that the TextReader class in programming represents a reader that is capable of reading a sequence of characters. This class is commonly used for reading text files or other character-based input sources. Therefore, the statement is correct in stating that the TextReader class can indeed read a sequence of characters.

Submit
Please wait...
About This Quiz
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... see moreyour classmates. see less

Personalize your quiz and earn a certificate with your name on it!
2. The class named File is a member of System.IO namespace.

Explanation

The explanation for the correct answer is that the statement is true. The class named File does exist in the System.IO namespace. The System.IO namespace in .NET provides classes for performing input and output operations, including reading from and writing to files. The File class specifically provides static methods for creating, copying, deleting, moving, and opening files, among other file-related operations.

Submit
3. Priority retrieves or specifies a value which indicates the scheduling priority of a thread.

Explanation

The statement is true because the priority of a thread determines its importance and the order in which it is scheduled to run by the operating system. A higher priority thread will be given more CPU time and resources compared to a lower priority thread. The priority can be set or retrieved using the "Priority" function, allowing the programmer to control the scheduling behavior of the threads in their program.

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

Explanation

A DLL (Dynamic Link Library) is indeed a library that contains code and data that can be shared and used by multiple programs simultaneously. This allows for efficient code reuse and helps in reducing redundancy. DLLs are commonly used in various operating systems and programming languages to provide shared functionality to different applications. Therefore, the given answer "True" is correct.

Submit
5. This method obstructs the current thread for the specified time.

Explanation

The correct answer is "Sleep" because the method "Sleep" in programming is used to pause or delay the execution of the current thread for a specified amount of time. It allows other threads to execute while the current thread is sleeping, and it is commonly used for tasks such as creating delays or implementing timeouts in a program.

Submit
6. The default priority of a thread is:

Explanation

The default priority of a thread is "Normal." This means that the thread will have a standard level of priority in the execution order among other threads. It will not have the highest or lowest priority, but will instead be assigned a priority that is considered average or moderate.

Submit
7. Returns current working directory of the application.

Explanation

The GetCurrentDirectory function returns the current working directory of the application. This means it provides the path of the directory where the application is currently running. It is a useful function to retrieve the directory path for various file operations or to navigate within the file system.

Submit
8. Rises when a validation error occurs

Explanation

The correct answer is ValidationEventHandle. ValidationEventHandle is a variable or object that is used to handle validation events. When a validation error occurs, the ValidationEventHandle rises, indicating that there is an error in the validation process. This handle is used to capture and handle the validation error, allowing the appropriate actions to be taken in response to the error.

Submit
9. How to declare Attributes:

Explanation

This code snippet demonstrates how to declare attributes in a programming language. The attributes are declared using the syntax [AttributeName(parameters)]. After declaring the attributes, the code defines an element called Element_Name with a parameter. The implementation of the element is then provided within curly braces {}. This code snippet shows the correct way to declare attributes and define elements with parameters and their implementation.

Submit
10. XmlTextWriter is a class that is derived from XmlWriter

Explanation

XmlTextWriter is indeed a class that is derived from XmlWriter. XmlTextWriter is a specific implementation of the XmlWriter abstract class, which provides a fast, non-cached, forward-only way of generating XML data. By using XmlTextWriter, developers can easily create XML documents or fragments in a structured and efficient manner.

Submit
11. Compilers convert the source code into an intermediate language.

Explanation

Compilers convert the source code into MSIL Code, which stands for Microsoft Intermediate Language. MSIL Code is a low-level, platform-independent language that can be executed by the Common Language Runtime (CLR) in the .NET framework. It serves as an intermediate step between the source code and the machine code, allowing for portability and interoperability of .NET applications. Therefore, the correct answer is MSIL Code.

Submit
12. These are the building blocks used by the .Net Framework used to solve the versioning and deployment problems posed by the DLLs

Explanation

Assemblies are the building blocks used by the .Net Framework to solve versioning and deployment problems posed by DLLs. Assemblies contain compiled code, metadata, and resources that are required to execute a program. They provide a way to organize and deploy code, ensuring that all the necessary components are available and properly versioned. Assemblies also enable features like side-by-side execution, where multiple versions of the same assembly can coexist on a system without conflicts.

Submit
13. File such as JPEG, text, XML and other types that are used in the application.

Explanation

The term "Resource" refers to files such as JPEG, text, XML, and other types that are used in an application. These files are typically included within the application's executable or assembly and can be accessed and utilized by the application during runtime. Resources can include images, strings, configuration files, and other data that the application needs to function properly. By including these resources within the application, it ensures that they are readily available and can be easily managed and distributed along with the application itself.

Submit
14. This feature prevents multiple threads from simultaneously modifying the state of the resource , by including various classes and data types.

Explanation

Thread synchronization is the correct answer because it refers to the process of coordinating multiple threads to ensure that they access shared resources in a controlled and orderly manner. By using synchronization techniques such as locks, semaphores, or monitors, multiple threads can be prevented from simultaneously modifying the state of a resource. This helps to avoid data corruption or inconsistent results that may occur when multiple threads access and modify the same resource concurrently.

Submit
15. This class reads primary data types as binary values in a specific encoding.

Explanation

BinaryReader is the correct answer because it is a class that is used to read binary values in a specific encoding. It is specifically designed to read primitive data types from a binary stream. The other options, TextReader and FileStream, are not specifically designed for reading binary values in a specific encoding. TextReader is used for reading characters from a text file, while FileStream is used for reading and writing bytes from a file.

Submit
16. Attribute ; prefix for an attribute name

Explanation

The "@" symbol is used as a prefix for an attribute name in various programming languages and markup languages, such as CSS and XML. It is used to select and style elements based on their attribute values. For example, in CSS, the "@" symbol is used to select elements with a specific attribute, while in XML, it is used to define attributes. Therefore, the correct answer is "@" as it is the symbol that is commonly used as a prefix for an attribute name.

Submit
17. Contains operating system-specific objects that wait for access to shared resources.

Explanation

WaitHandle is the correct answer because it is a class in .NET that represents operating system-specific objects used for synchronization. These objects allow threads to wait for access to shared resources and are used to coordinate the execution of multiple threads. The WaitHandle class provides methods for waiting, signaling, and releasing the wait for these resources, making it a suitable choice for this scenario.

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

Explanation

XPath is a language that is used to navigate through elements and attributes in an XML document. It provides a way to locate specific elements or data within an XML structure. XPath expressions can be used to select nodes based on their element names, attributes, or other criteria. This makes XPath a powerful tool for retrieving information from XML documents.

Submit
19. A namespace can contain one or more assemblies and an assembly can contain one or more namespaces.

Explanation

This statement is true because a namespace is a way to organize and group related classes, interfaces, and other types. An assembly, on the other hand, is a compiled unit of code that can contain multiple namespaces. Therefore, it is possible for a namespace to contain one or more assemblies, and conversely, an assembly can contain one or more namespaces.

Submit
20. The System.IO namespace in .Net does not support stream handling.

Explanation

The System.IO namespace in .Net actually does support stream handling. It provides classes and methods for working with streams, such as reading from and writing to files, network connections, and memory. This namespace is commonly used for tasks involving input/output operations in .Net applications.

Submit
21. Code developed outsite the .net framework.

Explanation

The given answer "Unmanaged Code" is correct because when code is developed outside of the .NET framework, it is considered unmanaged code. Unmanaged code refers to code that is written in languages like C or C++ and does not run within the common language runtime (CLR) of the .NET framework. This code does not benefit from the memory management and other features provided by the CLR and must be manually managed. The use of DLLImport and System.Diagnostics also suggests the integration of external libraries and the need to interact with low-level system resources, further indicating the presence of unmanaged code.

Submit
22. This is deployed with an application and is available only for the application.

Explanation

A private assembly is a type of assembly that is deployed with an application and is only available for that specific application. It is not accessible or usable by other applications or components. This type of assembly provides a level of isolation and security, as it ensures that the functionality and resources contained within the assembly are only accessible within the context of the application it is associated with.

Submit
23. A standard that helps in processing xml

Explanation

The correct answer is the System.Xml namespace. The System.Xml namespace in .NET provides classes and methods for processing XML documents. It includes classes like XmlReader, XmlWriter, and XmlDocument, which can be used to read, write, and manipulate XML data. These classes provide a standardized way to work with XML in a .NET environment, making it easier to parse and process XML documents.

Submit
24. Synchronizes access to objects

Explanation

Monitor is a mechanism that synchronizes access to objects in multithreaded environments. It allows only one thread to enter a synchronized block of code at a time, ensuring that the shared resources are accessed in a thread-safe manner. By using monitors, concurrent access to objects can be controlled, preventing race conditions and ensuring data consistency. Monitors are commonly used in programming languages like Java and C# to provide mutual exclusion and coordination between threads.

Submit
25. A Thread must be in the Running state before the operating System can schedule it.

Explanation

Before the operating system can schedule a thread, it must be in the Running state. This means that the thread is eligible to be executed by the CPU. If a thread is not in the Running state, it cannot be scheduled by the operating system and therefore cannot be executed. Thus, the statement is true.

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

Explanation

DLL Hell refers to the complications that arise when working with dynamic link libraries (DLLs). It is a term used to describe the problems that occur when different applications or versions of the same application require different versions of a DLL. This can result in conflicts, errors, and instability within the system. DLL Hell can be a challenging issue to resolve and often requires careful management and compatibility testing to ensure that all applications can coexist harmoniously.

Submit
27. Data present in the assembly and its type.

Explanation

The correct answer is Type Metadata. This is because the given information mentions "Data present in the assembly and its type." This suggests that the data being referred to is related to the type of metadata. Assembly Metadata refers to information about the assembly as a whole, while Type Metadata specifically pertains to the data associated with the types defined within the assembly. Therefore, Type Metadata is the most appropriate answer based on the given context.

Submit
28. This class is not part of the system.IO namsepace, It resides within the System.security.

Explanation

The given answer, "CryptoStream," is correct because the question states that the class mentioned is not part of the "system.IO" namespace but resides within the "System.security" namespace. Among the options provided, only "CryptoStream" belongs to the "System.security" namespace, making it the correct answer.

Submit
29. Namespace is mandatory for using the Conditional attribute

Explanation

The System.Diagnostics namespace is mandatory for using the Conditional attribute. This attribute allows developers to specify that a method should only be called under certain conditions, such as when a specific compilation symbol is defined. The Conditional attribute is commonly used for conditional compilation and debugging purposes. By placing this attribute in the System.Diagnostics namespace, it ensures that the attribute can be accessed and used in the appropriate context.

Submit
30. This class provides instance methods for creating, moving and enumerating directories and sub-directories.

Explanation

The correct answer is "DirectoryInfor" because it is a class that provides instance methods for creating, moving, and enumerating directories and sub-directories. This class is specifically designed for working with directories and sub-directories, whereas "Directory" and "File" are classes that deal with individual files.

Submit
31. This is an abstract class that provides a cursor model for navigating and editing XMl data.

Explanation

XPathNavigator is the correct answer because it is an abstract class that provides a cursor model for navigating and editing XML data. XPathNavigator allows users to traverse through XML documents using XPath expressions and perform various operations like selecting nodes, editing node values, and navigating through the XML structure. It provides a convenient way to interact with XML data and is commonly used in XML processing and manipulation tasks.

Submit
32. Namespace is mandatory for using DLLImport attribute

Explanation

The correct answer is System.Runtime.InteropServices. The System.Runtime.InteropServices namespace provides the DLLImport attribute, which is used to indicate that a method is implemented in an external DLL (Dynamic Link Library). This attribute allows the program to call functions from the DLL. Therefore, in order to use the DLLImport attribute, the System.Runtime.InteropServices namespace is mandatory.

Submit
33. This object that does not change its state after it is create.

Explanation

An immutable object is an object that does not change its state after it is created. Once the initial state of an immutable object is set, it cannot be modified. This makes it safe to share and use in concurrent environments like multithreaded applications. Immutable objects are often used for representing values that should not be changed, such as constants or configuration settings.

Submit
34. This attribute can be used as debugging aid in the C# code.

Explanation

The correct answer is Conditional. The Conditional attribute in C# is used as a debugging aid. It allows you to specify that a method should only be called if a specific compilation symbol is defined. This can be useful for including or excluding certain code blocks during debugging or testing.

Submit
35. This class provides methods for creating, moving and enumerating through directories and sub-directories.

Explanation

The correct answer is "Directory" because it is the class that provides methods for creating, moving, and enumerating through directories and sub-directories.

Submit
36. The FileInfor class is used to create FileStream Object.

Explanation

The FileInfor class is indeed used to create a FileStream object. This class provides information about a specific file, such as its name, size, and path. By using the FileInfor class, developers can easily access and manipulate files using a FileStream object, which allows for reading from and writing to the file. Therefore, the statement "The FileInfor class is used to create a FileStream Object" is true.

Submit
37. This feature is the mechanism of blocking a thread util some condition becomes true

Explanation

Thread Waiting is the correct answer because it refers to the mechanism of blocking a thread until some condition becomes true. When a thread is in a waiting state, it is paused and does not consume any CPU resources. It remains in this state until it is notified by another thread that the condition it was waiting for has been met. This mechanism is commonly used in multi-threaded programming to ensure that threads synchronize their actions and wait for specific conditions before proceeding.

Submit
38. Retrieves the value of execution status of the current thread.

Explanation

The IsAlive method is used to retrieve the value of the execution status of the current thread. It returns a boolean value indicating whether the thread is still alive or has terminated. This method can be useful in scenarios where we need to check if a thread is still running before proceeding with further actions or logic. By using IsAlive, we can make decisions based on the current state of the thread and ensure that our program behaves as expected.

Submit
39. This retrieves a value which indicates whether a thread belongs to the managed thread pool.

Explanation

The correct answer is IsThreadPoolThread. This property retrieves a value that indicates whether a thread belongs to the managed thread pool. It can be used to determine if a thread is a worker thread from the thread pool or not.

Submit
40. This method blocks the calling thread till the thread ends.

Explanation

The correct answer is "Join". The Join method is used to block the calling thread until the thread it is called on ends. This means that the calling thread will wait for the specified thread to complete its execution before continuing. The other options, Sleep, Start, and Interrupt, do not have this blocking behavior.

Submit
41. 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.

Explanation

The correct order of steps to add data into an existing XML file is as follows:

1. Declare the objects

2. Create a Method to create a new element

3. Write value to the element

4. Add the element after the last child node

5. Save the file.

This order ensures that the necessary objects are declared, a new element is created, the value is written to the element, the element is added in the correct position, and finally, the file is saved with the new data.

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

Explanation

The method CreateDirectory() in the Directory class is used to create a new directory. It returns a DirectoryInfo object which can be used to perform operations on the newly created directory, such as getting information about the directory or deleting it. This method is commonly used when you need to create a directory in your code.

Submit
43. Wildcard; selects all elements regardless of the element name.

Explanation

The asterisk (*) is a wildcard character that selects all elements regardless of the element name. It is commonly used in CSS selectors and XPath expressions to target and style or retrieve data from multiple elements at once. In this context, the asterisk represents a universal selector that matches any element in the document.

Submit
44. Get the names of sub-directories in a specified directory.

Explanation

The correct answer is "GetDirectories" because this method is used to retrieve the names of sub-directories within a specified directory. It allows you to access and work with the sub-directories in the given directory by returning an array of strings representing their names.

Submit
45. Which statements are true?
- 3 choices

Explanation

Custom attributes cannot be applied to more than one programming element - This statement is false. Custom attributes can be applied to multiple programming elements.

Attributes are a mechanism of adding metadata to a programming element - This statement is true. Attributes provide additional information or metadata about a programming element.

Attribute information can not be retrieved from custom attributes - This statement is false. Attribute information can be retrieved using reflection services.

Descriptive information in the metadata can be extracted using runtime reflection services - This statement is true. Reflection services allow access to the metadata, including descriptive information, of a programming element.

Attributes are stored with the metadata of the element they are associated with - This statement is true. Attributes are stored along with the metadata of the programming element they are applied to.

Submit
46. This class provides static methods for creating and manipulating files.

Explanation

The correct answer is "File" because the given statement suggests that the class is used for creating and manipulating files, and the "File" class in many programming languages provides static methods for performing such operations.

Submit
47. This performs operations like joins, ordering and sorting

Explanation

XQuery is the correct answer because it is a query language designed to extract and manipulate data from XML documents. It allows for operations like joins, ordering, and sorting, making it suitable for performing complex operations on XML data. XmlReader and XmlWriter are classes in the .NET framework for reading and writing XML, while XPath is a language used to navigate and select elements in an XML document. However, XQuery is specifically designed for performing operations like joins, ordering, and sorting on XML data.

Submit
48. The parent of the current context node

Explanation

The ".." symbol represents the parent of the current context node. It is used in XPath to navigate to the parent node of the current node. This allows you to access and retrieve information from the parent node of the current context node.

Submit
49. A assembly consists of parts:
- 3 choices

Explanation

An assembly consists of various components, including assembly metadata, type metadata, and MSIL code & resources. Assembly metadata contains information about the assembly such as its version, culture, and strong name. Type metadata describes the types (classes, interfaces, etc.) defined within the assembly, including their structure, members, and relationships. MSIL code & resources are the actual executable code and additional resources (such as images or text files) contained within the assembly. These components together make up the assembly and allow it to be executed by the .NET runtime environment.

Submit
50. Child operator ; selects immediate children of the left-site collection

Explanation

The forward slash "/" is used as the child operator in XPath to select immediate children of the left-side collection. It allows you to navigate through the XML or HTML structure and select elements that are direct children of a particular parent element. This is useful when you want to target specific elements within a larger structure and perform actions or retrieve information related to those elements only.

Submit
51. This is a collection of information required by the runtime to execute an application.

Explanation

An assembly is a collection of information required by the runtime to execute an application. It contains the compiled code, metadata, and resources needed for the application to run. Assemblies are self-describing, meaning they contain information about the types and members within them. They can be stored in DLLs or EXE files.

Submit
52. Use as debugging aid in the C# code.

Explanation

The Conditional Attribute is used as a debugging aid in C# code. It allows developers to specify that a method or attribute should only be executed or included in the compiled code if a specified compilation symbol is defined. This means that certain code or debugging statements can be selectively included or excluded based on the defined symbols, making it easier to debug and test specific sections of code without affecting the overall functionality of the program. The Conditional Attribute is part of the System.Diagnostics namespace, which provides classes for interacting with the debugging and tracing features of the .NET framework.

Submit
53. Read the next node from the stream.

Explanation

The correct answer is "Read method" because the question is asking for the method that should be used to read the next node from the stream. The XmlTextReader class is commonly used for reading XML data, and the Read method is specifically designed to advance to the next node in the XML stream.

Submit
54. Used to invoke unmanaged code in a C#  program.

Explanation

The DLLImport Attribute is used in C# programs to invoke unmanaged code. Unmanaged code refers to code that is written in a language other than C# and does not run under the control of the .NET runtime. The DLLImport Attribute allows C# programs to call functions and use data structures defined in unmanaged code libraries, such as DLLs. By using this attribute, C# programs can leverage the functionality provided by unmanaged code, allowing for interoperability between different programming languages and systems.

Submit
55. 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.

Explanation

First, we need to define a class (step 3). Then, we define a method inside the class (step 1). After that, we create one or more objects of the class in the new class (step 4). Next, we create one or more Thread objects in the new class (step 5). Finally, we start the execution of the thread (step 6). Therefore, the correct order is 3-1-4-5-6.

Submit
56. Recursive descent ; searches for the specified element at any depth

Explanation

The correct answer is "//". This is because the given explanation states that recursive descent searches for the specified element at any depth. The "//" symbol in programming languages is commonly used to indicate a comment, which is a piece of code that is ignored by the compiler or interpreter. Therefore, the "//" symbol does not have any depth or specific meaning in relation to searching for elements.

Submit
57. Collection of information existing in binary form in a Portable Executable file or a .Net assembly.

Explanation

Assembly metadata refers to the collection of information that exists in binary form in a Portable Executable file or a .Net assembly. This metadata includes details about the assembly, such as its version, name, culture, public key, and other information that helps in identifying and describing the assembly. It also includes information about the types defined within the assembly, their members, and their relationships. Assembly metadata is essential for the runtime environment to understand and load the assembly correctly.

Submit
58. An XPath expression are returns:
- 3 choices

Explanation

An XPath expression can return a node set, which is a collection of nodes that match the given criteria. It can also return a boolean value, which is either true or false, indicating whether the condition specified in the expression is satisfied or not. Additionally, an XPath expression can return a string, which is a sequence of characters, and a number, which can be either an integer or a decimal value.

Submit
59. Which statements are true with assembly.
- 3 choices

Explanation

Multiple applications cannot implement the same DLL file due to versioning problem. This is because different applications may require different versions of the DLL, and conflicts may arise if multiple applications try to use the same DLL file with different versions. DLLs use fewer resources compared to static libraries because they are loaded into memory only when needed, reducing memory usage. Applications must be self-describing so that they are no longer dependent on registry entries. This allows the applications to function independently without relying on specific registry settings or configurations.

Submit
60. This method of Directory class is also used to rename the directory.

Explanation

The correct answer is Move(). The Move() method of the Directory class is used to rename the directory.

Submit
61. Retrieves a value which contains the state of the current thread.

Explanation

The IsAlive property is used to retrieve a value that indicates whether the current thread is still running or has terminated. It returns true if the thread is still alive and false if it has completed its execution. This property is useful in scenarios where the program needs to check the status of a thread and take appropriate actions based on whether it is still running or not.

Submit
62. WriteString() method flushes the buffer and writes whatever data is left in the buffer to the stream.

Explanation

The statement is incorrect. The WriteString() method does not flush the buffer and write whatever data is left in the buffer to the stream. It simply writes the specified string to the stream without any buffer flushing.

Submit
63. This class contains methods that are common to file and directory manipulation.

Explanation

The correct answer is FileSystemInfor. This class is the most suitable choice because it contains methods that are common to both file and directory manipulation. It provides functionality for accessing and manipulating file and directory information, making it a versatile option for handling file and directory operations.

Submit
64. Only the Thread class can be used to create a thread object.

Explanation

The statement "Only the Thread class can be used to create a thread object" is false. In addition to the Thread class, other classes such as the Runnable interface can also be used to create thread objects in Java. The Runnable interface allows a class to be executed as a thread by implementing the run() method. By implementing the Runnable interface and passing an instance of the class to a Thread object, a new thread can be created and started.

Submit
65. These classes are not part of the System.IO namspace.

Explanation

The classes NetWorkStream and CryptoStream are not part of the System.IO namespace. The System.IO namespace contains classes for performing input and output operations, such as reading from or writing to files. However, the classes NetWorkStream and CryptoStream are part of the System.Net.Sockets and System.Security.Cryptography namespaces respectively, not System.IO. Therefore, they are not part of the System.IO namespace. The BufferStream and MemoryStream classes, on the other hand, are part of the System.IO namespace.

Submit
66. A portion of thread which is accessed by multiple threads at the same time.

Explanation

A critical section refers to a portion of code that is accessed by multiple threads simultaneously. It is a section where shared resources or data are accessed, and it needs to be protected to prevent race conditions and ensure thread safety. Various synchronization techniques, such as locking, can be used to control access to the critical section and ensure that only one thread can access it at a time.

Submit
67. This method which id thread - safe

Explanation

Reentrant refers to a method or code that can be safely called multiple times by the same thread without causing any issues. It allows a thread to reenter a method that it is already executing, without having to wait or acquire any additional locks. This ensures that the method can be executed concurrently by multiple threads without any conflicts or race conditions. Therefore, the given correct answer suggests that the method mentioned is thread-safe and can be called multiple times by the same thread without any problems.

Submit
68. This class can be used for operations such as creating, copying, moving, deleting and appending to files.

Explanation

FileInfor is the correct answer because it is a class that can be used for operations such as creating, copying, moving, deleting, and appending to files. It is specifically designed for handling file-related operations and provides methods and properties to perform these tasks efficiently. FileStream is a class used for reading and writing to files, but it does not provide the same level of functionality as FileInfor. FileManipulate is not a valid class and File is a general term that does not represent a specific class for file operations.

Submit
69. Which the terms do they belong to Directoryinfo class?
- 3 choices

Explanation

The terms FullName, MoveTo(), and Create() belong to the DirectoryInfo class. FullName is a property that returns the full path of the directory, MoveTo() is a method that moves a directory to a new location, and Create() is a method that creates a new directory.

Submit
70. A class that has the ability to accept or reject changes in the document.

Explanation

APathDocument is the correct answer because it is a class that has the ability to accept or reject changes in the document. XmlDocument is a class that represents an XML document, but it does not have the specific ability to accept or reject changes. XPathEditableNavigator is not a class that exists in the .NET framework, so it cannot be the correct answer.

Submit
71. Which characters do not belong to XPath expression.

Explanation

The characters ";", "?", and "#" do not belong to an XPath expression. XPath is a language used to navigate XML documents and does not use these characters for any specific purpose. The "*" character is used in XPath as a wildcard to match any element node, while the "." character is used to represent the current node in the XPath expression.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 18, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 18, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 13, 2009
    Quiz Created by
    Vietha
Cancel
  • All
    All (71)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The TextReader class represents a reader that can read a sequence of...
The class named File is a member of System.IO namespace.
Priority retrieves or specifies a value which indicates the scheduling...
A DLL is a library that contains code and data that can be used by...
This method obstructs the current thread for the specified time.
The default priority of a thread is:
Returns current working directory of the application.
Rises when a validation error occurs
How to declare Attributes:
XmlTextWriter is a class that is derived from XmlWriter
Compilers convert the source code into an intermediate language.
These are the building blocks used by the .Net Framework used to solve...
File such as JPEG, text, XML and other types that are used in the...
This feature prevents multiple threads from simultaneously modifying...
This class reads primary data types as binary values in a specific...
Attribute ; prefix for an attribute name
Contains operating system-specific objects that wait for access to...
This is a language for retrieving information from a XML Document. is...
A namespace can contain one or more assemblies and an assembly can...
The System.IO namespace in .Net does not support stream handling.
Code developed outsite the .net framework.
This is deployed with an application and is available only for the...
A standard that helps in processing xml
Synchronizes access to objects
A Thread must be in the Running state before the operating System can...
This is a phrase for complications which arise when working with...
Data present in the assembly and its type.
This class is not part of the system.IO namsepace, It resides within...
Namespace is mandatory for using the Conditional attribute
This class provides instance methods for creating, moving and...
This is an abstract class that provides a cursor model for navigating...
Namespace is mandatory for using DLLImport attribute
This object that does not change its state after it is create.
This attribute can be used as debugging aid in the C# code.
This class provides methods for creating, moving and enumerating...
The FileInfor class is used to create FileStream Object.
This feature is the mechanism of blocking a thread util some condition...
Retrieves the value of execution status of the current thread.
This retrieves a value which indicates whether a thread belongs to the...
This method blocks the calling thread till the thread ends.
Steps to add data into an existing XML file.    1....
In Directory class, this method returns a DirectoryInfor object which...
Wildcard; selects all elements regardless of the element name.
Get the names of sub-directories in a specified directory.
Which statements are true? - 3 choices
This class provides static methods for creating and manipulating...
This performs operations like joins, ordering and sorting
The parent of the current context node
A assembly consists of parts: - 3 choices
Child operator ; selects immediate children of the left-site...
This is a collection of information required by the runtime to execute...
Use as debugging aid in the C# code.
Read the next node from the stream.
Used to invoke unmanaged code in a C#  program.
Re-order steps of creating a thread in C#. 1.Define a method...
Recursive descent ; searches for the specified element at any depth
Collection of information existing in binary form in a Portable...
An XPath expression are returns: - 3 choices
Which statements are true with assembly.- 3 choices
This method of Directory class is also used to rename the directory.
Retrieves a value which contains the state of the current thread.
WriteString() method flushes the buffer and writes whatever data is...
This class contains methods that are common to file and directory...
Only the Thread class can be used to create a thread object.
These classes are not part of the System.IO namspace.
A portion of thread which is accessed by multiple threads at the same...
This method which id thread - safe
This class can be used for operations such as creating, copying,...
Which the terms do they belong to Directoryinfo class?- 3 choices
A class that has the ability to accept or reject changes in the...
Which characters do not belong to XPath expression.
Alert!

Advertisement