1/381
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
C. Main Thread
This is the first thread to be performed in a process.
A. Parent Thread
B. Child Thread
C. Main Thread
D. Start Thread#B. ApplicationException
Which basic type of exception is user program-
generated?
A. ArithmeticException
B. ApplicationException
C. SystemException
D. ThreadException#B. Unstarted
In this thread state, the thread is created within the
CLR but is not in progress.
A. Ready
B. Unstarted
C. WaitSleepJoin
D. Blocked#B. ThreadState
What property is used to get the value that contains
the states of the recent thread?
A. Priority
B. ThreadState
C. CurrentThread
D. IsAlive#B. System.Threading
Which namespace Includes the Thread class?
A. System.Multithread
B. System.Threading
C. System.Multithread.Thread
D. System.Threaded#D. OutOfMemoryException
Which exception is thrown when the available
memory is too low to accommodate?
A. LowMemoryException
B. OverflowException
C. IndexOutOfRangeException
D. OutOfMemoryException#B. Running
This thread state indicates that a thread is at the
time of execution after invoking its Start method.
A. Ready
B. Running
C. Started
D. WaitSleepJoin#B. Common Language Runtime
What does CLR stand for?
A. Computer Language Running
B. Common Language Runtime
C. Common Languages Running
D. Computer Languages Runtime#D. Stopped
This is the state when the thread has completed its
task.
A. Blocked
B. Started
C. Unstarted
D. Stopped#C. FormatException
This exception occurs when the format of the
argument is invalid.
A. InvalidFormatException
B. StackOverflowException
C. FormatException
D. OutOfFormatException#B. ArgumentException
Which of the following exceptions is thrown when an
argument inside the method is invalid?
A. InvalidException
B. ArgumentException
C. InvalidMethodException
D. InvalidArgumentException#A. IndexOutOfRangeException
This exception occurs when attempting to index an
array through an index that is greater than the
maximum length of the index.
A. IndexOutOfRangeException
B. IndexRangeException
C. ArgumentRangeException
D. FormatRangeException#C. Name
This property is used to set the name of the thread.
A. IsName
B. ThreadName
C. Name
D. SetName#C. StackOverflowException
This exception occurs when the execution stack is
exhausted by having too many pending method
calls.
A. OutOfMemoryException
B. IndexOutOfRangeException
C. StackOverflowException
D. ArgumentException#A. CurrentThread
This is used to retum the currently executing thread.
A. CurrentThread
B. Running
C. IsBackground
D. Name#B.
try
{
Console.Write(x + " ");
Thread.Sleep(1000);
}
catch(ThreadAbortException ex)
{
if((int)ex.ExceptionState == 0)
{
Thread.ResetAbort();
}
}
withdraw an abort request for the ongoing thread?
A.
try
{
Console.Write(x + “ “ );
Thread.Sleep(1000);
}
catch(ThreadAbortException ex)
{
if((int)ex.ExceptionState == 0)
{
Thread.Reset():
}
}
B.