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,

A

Start

25
Q

use blank to execute the code when the thread started.

A

ThreadStart

26
Q

A blank delegate represents a method that runs in the Thread class

A

ThreadStart

27
Q

When the blank object is created, the delegate will be used to initialize the thread object.

A

thread

28
Q

A new thread begins its life cycle in the blank state

A

Unstarted

29
Q

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

A

thread

30
Q

A thread enters the blank state when the thread issues an input/output (I/O) request.

A

Blocked

31
Q

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.

A

WaitSleepJoin

32
Q

The blank method moves all waiting threads back to the
Started state.

A

PulseAll

33
Q

it calls the other thread’s blank method to
join the two (2) threads.

A

Join

34
Q

A thread is ready to run and is waiting for the CPU time.

A

Ready

35
Q

The highest priority Started thread enters the blank state

A

Running

36
Q

A thread is created within the Common Language Runtime (CLR) but has not started.

A

Unstarted

37
Q

When using the Thread class, the first thread to be performed in a process is known as the blank.

A

main thread

38
Q

A suspended thread resumes to Started state when the conditions for which is it was suspended are
no longer valid.

A

Started

39
Q

A thread is in running mode after invoking its Start method.

A

Running

40
Q

A running thread is suspended temporarily by invoking either the Sleep method or the
monitor’s Wait method.

A

WaitSleepJoin

41
Q

A thread is blocked when it is waiting for a resource or I/O operations.

A

Blocked

42
Q

A thread has finished its task.

A

Stopped

43
Q

If the thread is aborted, an
exception will be thrown named blank.

A

ThreadAbortException

44
Q

The blank method moves
the next waiting thread back to the Started state.

A

Pulse

45
Q

It returns the current thread that is running.

A

CurrentThread

46
Q

It returns a Boolean value indicating the execution status of the recent thread.

A

IsAlive

47
Q

It is used to get or set a value that indicates whether the thread is a background thread or not.

A

sBackground

48
Q

It is used to get or set the name of the thread.

A

Name

49
Q

It is used to get or set a value that represents the priority of a thread.

A

Priority

50
Q

From the WaitSleepJoin state, a thread returns to the
Started state when another thread invokes the Monitor method.

A

Pulse or PulseAll

51
Q

It is used to get the value that contains the states of the recent thread

A

ThreadState

52
Q

It terminates the thread when calling this method and raises
ThreadAbortException in the thread.

A

public void Abort()

53
Q

It interrupts the thread that is in the state of WaitSleepJoin.

A

public void Interrupt()

54
Q

It is used to stop the calling thread until a thread terminates.

A

public void Join()

55
Q

It is used to start a thread.

A

public void Start()

56
Q

It is used to withdraw an abort request for the ongoing thread.

A

public static void ResetAbort()

57
Q
  • public static void Sleep() – It is used to pause a thread for the stated number in milliseconds.
A

public static void Sleep()