1. This feature prevents multiple threads from
simultaneously modifying the state of the resource , by including various
classes and data types.
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
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.
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.
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.
current thread.
A. IsAlive
B. CurrentThread
C. ThreadState
7. Retrieves a value which contains the state of the
current thread
current thread
A. CurrentThread
B. ThreadState
C. IsAlive
8.
Priority retrieves or specifies a value which indicates the scheduling
priority of a thread.
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.
thread ends.
A. Sleep
B. Start
C. Join
10. This method obstructs the current thread for the
specified time.
specified time.
A. Join
B. Sleep
C. Abort
11. A Thread must be in the Running state before the
operating System can schedule it.
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.
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
- 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.
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.
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}
Element_Name(parameter){//Implementation}
B. [AttributeName(parameters)];
Element_Name(parameter){//Implementation}
Element_Name(parameter){//Implementation}
18. This attribute can be used as debugging aid in the
C# code.
C# code.
A. DLLImport
B. Conditional
C. Obsolete
19. Which statements are true?
- 3 choices
- 3 choices
A. Custom attributes cannot be applied to more than one programming
element
element
B. Attributes are a mechanism of adding metadata to a programming
element
element
C. Attribute information can not be retrieved from custom
attributes
attributes
D. Descriptive information in the metadata can be extracted using
runtime reflection services.
runtime reflection services.
E. Attributes are stored with the metadata of the element they are
associated with.
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
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.
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.
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
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.
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.
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
- 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.
an assembly can contain one or more namespaces.
A. True
B. False
32. Which statements are true with assembly.
- 3 choices
- 3 choices
A. Multiple applications can not implement the same DLL file due to
versioning problem
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.
dependent of the registry entries.
33. Collection of information existing in binary form in
a Portable Executable file or a .Net assembly.
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.
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.
language.
A. Assembly
B. MSIL Code
C. Resource
37. The System.IO namespace in .Net does not support
stream handling.
stream handling.
A. True
B. False
38. The class named File is a member of System.IO
namespace.
namespace.
A. True
B. False
39. This class reads primary data types as binary values
in a specific encoding
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.
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.
moving and enumerating directories and sub-directories.
A. DirectoryInfor
B. Directory
C. File
42. This class provides static methods for creating and
manipulating files.
manipulating files.
A. FileStream
B. File
C. FileInfor
D. FileSystemInfor
43. This class contains methods that are common to file
and directory manipulation.
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.
read a sequence of characters.
A. True
B. False
45. This class is used to read and write data to memory
instead of a disk.
instead of a disk.
A. BufferedStream
B. MemoryStream
C. FileStream
D. CrypttoStream
46. This class is not part of the system.IO namsepace,
It resides within the System.security.
It resides within the System.security.
A. NetWorkStream
B. CryptoStream
47. These classes are not part of the System.IO
namspace.
namspace.
A. NetWorkStream
B. CryptoStream
C. BufferStream
D. MemoryStream
48. This class can be used for operations such as
creating, copying, moving, deleting and appending to files.
creating, copying, moving, deleting and appending to files.
A. FileStream
B. FileInfor
C. File
D. FileManipulate
49. The FileInfor class is used to create FileStream
Object.
Object.
A. True
B. False
50. In Directory class, this method returns a
DirectoryInfor object which can be used to work with the newly created
directory.
DirectoryInfor object which can be used to work with the newly created
directory.
A. CreateDirectoryInfor();
B. CreateDir();
C. CreateDirectory()
51. This method of Directory class is also used to
rename the directory.
rename the directory.
A. Rename();
B. Move();
C. Delete();
D. ReMove();
52. Get the names of sub-directories in a specified
directory.
directory.
A. GetDirectories
B. GetDirectory
C. GetCurrentDirectory
53. Returns current working directory of the
application.
application.
A. GetDirectoties
B. GetCurrentDirectory
C. SetCurrentDirectory
54. Which the terms do they belong to Directoryinfo
class?
- 3 choices
class?
- 3 choices
A. FullName
B. CreateDirectory()
C. Move()
D. MoveTo()
E. Create()
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.
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
56. Only the Thread class can be used to create a thread
object.
object.
A. True
B. False
57. A portion of thread which is accessed by multiple
threads at the same time.
threads at the same time.
A. Locking
B. Reentrant
C. Critical Section
D. Thread Pooling
58. This object that does not change its state after it is create.
A. Thread
object
object
B. Immutable
object
object
C. pool
object
object
59. This method which id thread – safe
A. Locking
B. Interrupt
C. Reentrant
60. Which statements are true?
A. COM has only DCOM as its technology
B. COM permits reuse of code across different environments.
C. GUID is referred when COM or DCOM object is registered
D. COM combines subsystems to form one large system.
E. COM uses com-capable tool during the implementation of each
subsystem.
subsystem.
61. This performs operations like joins, ordering and
sorting
sorting
A. XmlReader and XmlWriter
B. Xpath
C.
Xquery
Xquery
62. Which statements are true?
A. XML deals with the arranging of data
B. XMLDocument class enables navigation and editing
63. A standard that helps in processing xml
A. XmlReader
B.
System.Xml namespace
System.Xml namespace
C. Xquery
64. A class that has the ability to accept or reject
changes in the document.
changes in the document.
A. XmlDocument
B.
ApathDocument
ApathDocument
C. XpathEdittableNavigator
65. XmlTextWriter is a class that is derived from
XmlWriter
XmlWriter
A.
True
True
B. False
66. WriteString() method flushes the buffer and writes
whatever data is left in the buffer to the stream.
whatever data is left in the buffer to the stream.
A. True
B.
False
False
67. Read the next node from the stream.
A. XmlTextReader
B. Read method
68. Rises when a validation error occurs
A. ValidationEventHandle
B. validationType
69. Child operator ; selects immediate children of the
left-site collection
left-site collection
A. //
B.
/
/
C. ..
D. *
70. Recursive descent ; searches for the specified
element at any depth
element at any depth
A.
//
//
B. ..
C. @
D. *
71. Indicates the current context.
A. ..
B.
.
.
C. ,
D. //
72. The parent of the current context node
A. //
B. ..
C. @
D. *
73. Attribute ; prefix for an attribute name
A.
@
@
B. *
C. –
D. //
74. wildcard; selects all elements regardless of the
element name
element name
A. **
B. &
C. #
D.
*
*
E. //
75. Which characters do not belong to XPath expression.
A. *
B. ;
C. .
D. ?
E.
#
#
Responses
0 Respones to "Đề ôn tập Advanced C#"
Đăng nhận xét