CECS 326 quiz 1

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/438

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.

439 Terms

1
New cards

A process is a ___

2
New cards

a. A program saved on disk

3
New cards

b. A program downloaded from the internet

4
New cards

c.A program saved in memory

5
New cards

d. None of the above

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

6
New cards

A process is made up of these parts:

7
New cards

a. Data section

8
New cards

b. Stack

9
New cards

c. Text section

10
New cards

d. All of the above

d. All of the above

11
New cards

The heap is one part of a process that:

12
New cards

a. Contains the executable binary

13
New cards

b. Stores memory allocated dynamically

14
New cards

c. Contains pointer variables declared in the program

15
New cards

d. None of the above

b. Stores memory allocated dynamically

16
New cards

A child process begins in the:

17
New cards

a. New state

18
New cards

b. Ready state

19
New cards

c. Running state

20
New cards

d. None of the above

a. New state

21
New cards

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

22
New cards

a. New state

23
New cards

b. Ready state

24
New cards

c. Running state

25
New cards

d. None of the above

a. New state

26
New cards

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

27
New cards

a. The process enters the Ready state

28
New cards

b. The process enters the Running state

29
New cards

c. The process enters the Blocked (waiting) state

30
New cards

d. The process enters the Terminated state

a. The process enters the Ready state

31
New cards

When a process is downloading a new webpage:

32
New cards

a. The process enters the New state

33
New cards

b. The process enters the Ready state

34
New cards

c. The process enters the Running state

35
New cards

d. The process enters the Blocked state

d. The process enters the Blocked state

36
New cards

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

37
New cards

a. The process is in the Ready state

38
New cards

b. The process is in the Running state

39
New cards

c. The process is in the Blocked state

40
New cards

d. The process is in the Terminated state

b. The process is in the Running state

41
New cards

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

42
New cards

a. The process enters the New state

43
New cards

b. The process enters the Ready state

44
New cards

c. The process enters the Running state

45
New cards

d. The process enters the Blocked state

d. The process enters the Blocked state

46
New cards

Which statement best describes the context of a process?

47
New cards

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

48
New cards

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

49
New cards

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

50
New cards

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

51
New cards

a. True

52
New cards

b. False

b. False

53
New cards

Where may the PCB of a process be found?

54
New cards

a. Message queues

55
New cards

b. Device queues

56
New cards

c. Priority queues

57
New cards

d. None of the above

b. Device queues

58
New cards

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

59
New cards

a. A child process

60
New cards

b. A parent process

61
New cards

c. An I/O bound processes

62
New cards

d. None of the above

c. An I/O bound processes

63
New cards

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

64
New cards

a. True

65
New cards

b. False

b. False

66
New cards

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

67
New cards

a. True

68
New cards

b. False

a. True

69
New cards

A multi-threaded process can leverage its threads to

70
New cards

a. Speed up its computation

71
New cards

b. Use a larger share of its CPU allocation

72
New cards

c. Be more responsive & minimize execution delays

73
New cards

d. All of the above

d. All of the above

74
New cards

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

True

75
New cards

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

76
New cards

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

77
New cards

a) the first data block of the file

78
New cards

b) the last data block of the file

79
New cards

c) the pointer block of the single indirect pointer

c) the pointer block of the single indirect pointer

80
New cards

A system call executes in

81
New cards

a) user mode

82
New cards

b) priority mode

83
New cards

c) kernel mode

84
New cards

d) none of the above

c) kernel mode

85
New cards

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

86
New cards

A trap instruction changes the CPU

87
New cards

a) from user mode to priority mode

88
New cards

b) from user mode to kernel mode

89
New cards

c) from kernel mode to user mode

90
New cards

d) none of the above

b) from user mode to kernel mode

91
New cards

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

False

92
New cards

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

True

93
New cards

A priviliged instruction executes successfully in

94
New cards

a) user mode

95
New cards

b) priority mode

96
New cards

c) kernel mode

97
New cards

d) none of the above

c) kernel mode

98
New cards

Which is NOT a service provided by the OS?

99
New cards

a) communications

100
New cards

b) I/O operations