Event Driven Midterms

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/57

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

58 Terms

1
New cards

Exception

is represented by classes

2
New cards

System

All the exceptions are subclasses in the built-in exception class named Exception, wherein it is a part of namespace ___

3
New cards

ApplicationException

These exceptions are user program-generated.

4
New cards

SystemException

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

5
New cards

System.Exception

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

6
New cards

System.ArithmeticException

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

7
New cards

System.OverflowException

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

8
New cards

System.ArgumentException

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

9
New cards

System.ArgumentNullException

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

10
New cards

System.IndexOutOfRangeException

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.

11
New cards

System.OutOfMemoryException

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

12
New cards

System.StackOverflowException

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

13
New cards

System.FormatException

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

14
New cards

try

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

15
New cards

catch

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

16
New cards

throw

It is used to throw an exception manually

17
New cards

finally

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

18
New cards

new

The __ operator is used to create a new object.

19
New cards

System.Exception

In a customized exception, it requires or inherits those exceptions in ___

20
New cards

Thread

This is an independent execution unit containing a piece of code.

21
New cards

System.Threading

Thread is a class in C#.net that can be found in the ___ namespace

22
New cards

Main Thread

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

23
New cards

Child Thread

The other threads that are made using the Thread class are known as the __

24
New cards

delegate

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

25
New cards

ThreadStart

To define a callback method in the delegate, use ___ to execute the code when the thread started.

26
New cards

ThreadStart delegate

represents a method that runs in the Thread class.

27
New cards

Unstarted State

A new thread begins its life cycle in the

28
New cards

Start State

The thread remains in the Unstarted state until the Thread method __ is called, which places the thread in the Started

29
New cards

Running State

The highest priority Started thread enters the

30
New cards

Stopped State

A Running thread enters the ___ when its job or task is over.

31
New cards

Abort Method

Also, a Running thread can be forced to the Stopped state by calling the __

32
New cards

ThreadAbortException

The Abort method throws a ___ in the thread, normally causing the thread to terminate.

33
New cards

Blocked State

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

34
New cards

WaitSleepJoin State

A Running thread may enter the either when it is asked to sleep for the specified number of milliseconds or when the Monitor method Wait is called.

35
New cards

Pulse Method

moves the next waiting thread back to the Started state.

36
New cards

PulseAll Method

moves all waiting threads back to the Started state.

37
New cards

Join Method

If a thread cannot continue executing unless another thread terminates, it calls the other thread’s ___ to join the two (2) threads

38
New cards

Unstarted

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

39
New cards

Ready

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

40
New cards

Running

A thread is in running mode after invoking its Start method

41
New cards

WaitSleepJoin

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

42
New cards

Started

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

43
New cards

Blocked

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

44
New cards

Stopped

A thread has finished its task.

45
New cards

CurrentThread

It returns the current thread that is running.

46
New cards

IsAlive

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

47
New cards

IsBackground

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

48
New cards

Name

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

49
New cards

Priority

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

50
New cards

ThreadState

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

51
New cards

public void Abort()

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

52
New cards

public void Interrupt()

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

53
New cards

public void Join()

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

54
New cards

public static void ResetAbort()

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

55
New cards

public void Start()

It is used to start a thread.

56
New cards

public static void Sleep()

It is used to pause a thread for the stated number in milliseconds.

57
New cards

Multithreading

a common feature that allows your application to have more than one (1) execution path at the same time.

58
New cards

Round Robin

In multithreading, the CPU is assigned to each thread for a time slice before moving on to the next thread. In other words, the CPU serves each thread or a given time interval in a __

Explore top flashcards

Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)
Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)