CECS 326 quiz 1

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 438

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

439 Terms

1

A process is a ___

New cards
2

a. A program saved on disk

New cards
3

b. A program downloaded from the internet

New cards
4

c.A program saved in memory

New cards
5

d. None of the above

d. None of the above (it is a process in execution)

New cards
6

A process is made up of these parts:

New cards
7

a. Data section

New cards
8

b. Stack

New cards
9

c. Text section

New cards
10

d. All of the above

d. All of the above

New cards
11

The heap is one part of a process that:

New cards
12

a. Contains the executable binary

New cards
13

b. Stores memory allocated dynamically

New cards
14

c. Contains pointer variables declared in the program

New cards
15

d. None of the above

b. Stores memory allocated dynamically

New cards
16

A child process begins in the:

New cards
17

a. New state

New cards
18

b. Ready state

New cards
19

c. Running state

New cards
20

d. None of the above

a. New state

New cards
21

What is the state of a child process at the moment it is spawned?

New cards
22

a. New state

New cards
23

b. Ready state

New cards
24

c. Running state

New cards
25

d. None of the above

a. New state

New cards
26

When a message in the message queue is copied to the memory of a process, i.e., msgrcv completed and returned:

New cards
27

a. The process enters the Ready state

New cards
28

b. The process enters the Running state

New cards
29

c. The process enters the Blocked (waiting) state

New cards
30

d. The process enters the Terminated state

a. The process enters the Ready state

New cards
31

When a process is downloading a new webpage:

New cards
32

a. The process enters the New state

New cards
33

b. The process enters the Ready state

New cards
34

c. The process enters the Running state

New cards
35

d. The process enters the Blocked state

d. The process enters the Blocked state

New cards
36

At the moment a process is executing 'cin' to read data from the keyboard:

New cards
37

a. The process is in the Ready state

New cards
38

b. The process is in the Running state

New cards
39

c. The process is in the Blocked state

New cards
40

d. The process is in the Terminated state

b. The process is in the Running state

New cards
41

When a process executes a system call to close (& save data) to a file on a USB thumb drive:

New cards
42

a. The process enters the New state

New cards
43

b. The process enters the Ready state

New cards
44

c. The process enters the Running state

New cards
45

d. The process enters the Blocked state

d. The process enters the Blocked state

New cards
46

Which statement best describes the context of a process?

New cards
47

a. It encapsulates the activity of a process at the moment the process loses its turn on the CPU

New cards
48

b. It records the speed of a process while the process is executing

New cards
49

c. It records the size of memory that a process is currently using

a. It encapsulates the activity of a process at the moment the process loses its turn on the CPU

New cards
50

When a process loses its turn on the CPU, its context is restored (to CPU):

New cards
51

a. True

New cards
52

b. False

b. False

New cards
53

Where may the PCB of a process be found?

New cards
54

a. Message queues

New cards
55

b. Device queues

New cards
56

c. Priority queues

New cards
57

d. None of the above

b. Device queues

New cards
58

A process that spends most of its time reading data from an input device is known as

New cards
59

a. A child process

New cards
60

b. A parent process

New cards
61

c. An I/O bound processes

New cards
62

d. None of the above

c. An I/O bound processes

New cards
63

The OS separates each (user level) thread physically in RAM

New cards
64

a. True

New cards
65

b. False

b. False

New cards
66

A (user level) thread uses resources allocated to its process

New cards
67

a. True

New cards
68

b. False

a. True

New cards
69

A multi-threaded process can leverage its threads to

New cards
70

a. Speed up its computation

New cards
71

b. Use a larger share of its CPU allocation

New cards
72

c. Be more responsive & minimize execution delays

New cards
73

d. All of the above

d. All of the above

New cards
74

T/F: By caching, the OS may minimize delays that a software needs to wait for input data from an I/O device

True

New cards
75

T/F: When some input data is needed from an I/O device, the OS looks for a copy of this data in its buffer, hoping to avoid reading from the slow I/O device.

False

New cards
76

In the file inode: The most likely item to find in cache is:

New cards
77

a) the first data block of the file

New cards
78

b) the last data block of the file

New cards
79

c) the pointer block of the single indirect pointer

c) the pointer block of the single indirect pointer

New cards
80

A system call executes in

New cards
81

a) user mode

New cards
82

b) priority mode

New cards
83

c) kernel mode

New cards
84

d) none of the above

c) kernel mode

New cards
85

T/F: A system call allows an application software to request the OS to execute a task that the application is not permitted to execute directly, as a protective measure.

True

New cards
86

A trap instruction changes the CPU

New cards
87

a) from user mode to priority mode

New cards
88

b) from user mode to kernel mode

New cards
89

c) from kernel mode to user mode

New cards
90

d) none of the above

b) from user mode to kernel mode

New cards
91

T/F: A trap table is used during execution of a hardware interrupt.

False

New cards
92

T/F: Using the dual mode of operations, the OS can classify some instructions as privileged.

True

New cards
93

A priviliged instruction executes successfully in

New cards
94

a) user mode

New cards
95

b) priority mode

New cards
96

c) kernel mode

New cards
97

d) none of the above

c) kernel mode

New cards
98

Which is NOT a service provided by the OS?

New cards
99

a) communications

New cards
100

b) I/O operations

New cards

Explore top notes

note Note
studied byStudied by 14 people
1005 days ago
4.0(1)
note Note
studied byStudied by 162 people
624 days ago
5.0(1)
note Note
studied byStudied by 16 people
122 days ago
5.0(1)
note Note
studied byStudied by 22 people
743 days ago
5.0(1)
note Note
studied byStudied by 61 people
882 days ago
4.0(1)
note Note
studied byStudied by 8 people
176 days ago
5.0(1)
note Note
studied byStudied by 10 people
898 days ago
5.0(1)
note Note
studied byStudied by 255 people
686 days ago
4.8(9)

Explore top flashcards

flashcards Flashcard (127)
studied byStudied by 31 people
911 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 19 people
266 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 8 people
784 days ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 29 people
737 days ago
5.0(2)
flashcards Flashcard (67)
studied byStudied by 9 people
837 days ago
5.0(1)
flashcards Flashcard (315)
studied byStudied by 51 people
763 days ago
5.0(4)
flashcards Flashcard (29)
studied byStudied by 15 people
379 days ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 84 people
17 days ago
5.0(1)
robot