EDP Flashcards

1
Q

is represented by classes

A

Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

All the exceptions are subclassesin the built-in exception class named blank,
wherein it is a part of namespace System.

A

Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

These exceptions are user program-generated.

A

ApplicationException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

These exceptions are generated by Common Language Runtime (CLR).

A

SystemException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This is at the top of the standards’ exceptions hierarchy. The runtime system in C#
generates all the exceptions.

A

System.Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Errors in arithmetic or conversion operation will be thrown in this exception

A

System.ArithmeticException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When an overflow occurs in a checked operation, it will be thrown in
OverflowException.

A

System.OverflowException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Any invalid argument in a method will be thrown in this exception.

A

System.ArgumentException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If there is an unacceptable argument passed to a method, it will be thrown
in blank.

A

System.ArgumentNullException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Throw in this exception when attempting to index an array through an
index that is either less than zero or greater than the maximum length of index.

A

System.IndexOutOfRangeException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The exception StackOverflowException is called when the
execution stack is exhausted by having too many pending method calls.

A

System.StackOverflowException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If the available memory becomes too low to accommodate a memory
allocation request, it will be thrown in OutOfMemoryException.

A

System.OutOfMemoryException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

This keyword is used to check for the occurrence of any exceptions enclosed to it.

A

try

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This keyword catches the exception that is thrown on the occurrence of exception in a try block.

A

catch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

, it requires or inheritsthose exceptions in blank or one of its standard derived
classes.

A

System.Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

This keyword executes a given statement even if the exception is thrown or not thrown. This block
cannot transfer control by using break, continue, return, or goto.

A

finally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

It is used to throw an exception manually.

A

throw

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

This is a class in C#.net that can be found in the System.Threading namespace

A

Thread

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The blank operator is used to create a
new object.

A

new

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The blank an instance of a class derived from the Exception class.

A

exception_Objectis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Listing 1 shows how blank is thrown manually.

A

DivideByZeroException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

a Running thread can be forced to the
Stopped state by calling the blank method.

A

Abort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

This exception checks the format of the string or argument if it is invalid.

A

System.FormatException –

24
Q

The thread remains in the Unstarted state until the Thread method blank is called,

25
use blank to execute the code when the thread started.
ThreadStart
26
A blank delegate represents a method that runs in the Thread class
ThreadStart
27
When the blank object is created, the delegate will be used to initialize the thread object.
thread
28
A new thread begins its life cycle in the blank state
Unstarted
29
This is a class in C#.net that can be found in the System.Threading namespace
thread
30
A thread enters the blank state when the thread issues an input/output (I/O) request.
Blocked
31
A Running thread may enter the blank state either when it is asked to sleep for the specified number of milliseconds or when the Monitor method Wait is called.
WaitSleepJoin
32
The blank method moves all waiting threads back to the Started state.
PulseAll
33
it calls the other thread’s blank method to join the two (2) threads.
Join
34
A thread is ready to run and is waiting for the CPU time.
Ready
35
The highest priority Started thread enters the blank state
Running
36
A thread is created within the Common Language Runtime (CLR) but has not started.
Unstarted
37
When using the Thread class, the first thread to be performed in a process is known as the blank.
main thread
38
A suspended thread resumes to Started state when the conditions for which is it was suspended are no longer valid.
Started
39
A thread is in running mode after invoking its Start method.
Running
40
A running thread is suspended temporarily by invoking either the Sleep method or the monitor’s Wait method.
WaitSleepJoin
41
A thread is blocked when it is waiting for a resource or I/O operations.
Blocked
42
A thread has finished its task.
Stopped
43
If the thread is aborted, an exception will be thrown named blank.
ThreadAbortException
44
The blank method moves the next waiting thread back to the Started state.
Pulse
45
It returns the current thread that is running.
CurrentThread
46
It returns a Boolean value indicating the execution status of the recent thread.
IsAlive
47
It is used to get or set a value that indicates whether the thread is a background thread or not.
sBackground
48
It is used to get or set the name of the thread.
Name
49
It is used to get or set a value that represents the priority of a thread.
Priority
50
From the WaitSleepJoin state, a thread returns to the Started state when another thread invokes the Monitor method.
Pulse or PulseAll
51
It is used to get the value that contains the states of the recent thread
ThreadState
52
It terminates the thread when calling this method and raises ThreadAbortException in the thread.
public void Abort()
53
It interrupts the thread that is in the state of WaitSleepJoin.
public void Interrupt()
54
It is used to stop the calling thread until a thread terminates.
public void Join()
55
It is used to start a thread.
public void Start()
56
It is used to withdraw an abort request for the ongoing thread.
public static void ResetAbort()
57
* public static void Sleep() – It is used to pause a thread for the stated number in milliseconds.
public static void Sleep()