cs452 midterm

0.0(0)
Studied by 2 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/154

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:29 PM on 10/13/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

155 Terms

1
New cards

____ operating systems are designed primarily to maximize resource utilization.

PC

Handheld computer

Mainframe

Network

mainframe

2
New cards

Which of the following programs runs all the time on the computer?

compiler

assembler

text editor

kernel

kernel

3
New cards

There is no universally accepted definition of an operating system.

True

False

true

4
New cards

Which of the following is NOT secondary storage device?

random access memory

solid state disks

optical disk

magnetic tape

random access memory

5
New cards

Which of the following is nonvolatile?

register

cache

main memory

hard-disk drive

hard-disk drive

6
New cards

Which of the following is tertiary storage medium?

register

magnetic tapes

main memory

hard-disk drive

magnetic tapes

7
New cards

The CPU catches the interrupt and ____ it to the interrupt handler

raises

catches

dispatches

clears

dispatches

8
New cards

The device controller _____ an interrupt by asserting a signal on the interrupt request line.

raises

catches

dispatches

clears

raises

9
New cards

Which of the following storage medium is the slowest regarding access speed?

cache

solid state drive

register

main memory

solid state drive

10
New cards

solid state disks are considered volatile storage.

True

False

false

11
New cards

Which of the following is the definition of processor?

the hardware that executes instructions

a physical chip that contains one or more CPUs

the basic computation unit of the CPU

including multiple computing cores on the same CPU

a physical chip that contains one or more CPUs

12
New cards

Where is the location of L1 cache?

inside CPU core

inside processor but outside CPU core

inside main memory

inside registers

inside CPU core

13
New cards

Virtually all modern operating systems provide support for SMP

True

False

true

14
New cards

A system call runs in kernel mode only.

True

False

true

15
New cards

The two separate modes of operating in a system are

supervisor mode and system mode

kernel mode and privileged mode

physical mode and logical mode

user mode and kernel mode

user mode and kernel mode

16
New cards

Solid state disks are generally faster than magnetic disks.

True

False

true

17
New cards

A system call is triggered by hardware.

True

False

False

18
New cards

Which of the following are used by Linux kernel as data structures?

Lists, Stacks, and Queues

Trees

Hash Functions and Maps

Bitmaps

All of the above

All of the above

19
New cards

Which of the following principles is used for adding and removing items from a queue?

first in first out (FIFO)

last in first out (LIFO)

random order

round robin

FIFO

20
New cards

Which of the following principles is used for adding and removing items from a stack?

first in first out (FIFO)

last in first out (LIFO)

random order

round robin

LIFO

21
New cards

VMware is a virtual machine manager when it manages guest operating systems.

True

False

True

22
New cards

Which of the following technology reduces the overhead for bulk data movement?

Direct Memory Access (DMA)

Non-uniform Memory Access (NUMA)

Symmetric Multiprocessing (SMP)

Storage Area Network (SAN)

Direct Memory Access (DMA)

23
New cards

Which of the following will trigger an interrupt?

kernel function

software execution

CPU execution

I/O completion

I/O completion

24
New cards

Which of the following components of a computer system defines the ways to use system resources to solve computing problems?

application programs

operating system

computer hardware

computer logo

application programs

25
New cards

Which of the following contains the addresses of all the service routines?

page table

interrupt vector

system call table

file descriptor table

interrupt vector

26
New cards

Which of the following is an inter-process communication that requires two processes share memory?

message passing

shared memory

socket communication

all of the above

shared memory

27
New cards

Which of the following is not a type of command interpreter?

Bourne shell

C shell

Korn shell

KDE or GNOME

KDE or GNOME

28
New cards

Which of the following is a user interface where human fingers slide across the screen or press buttons to select choices?

touch screen

graphical user interface

command line

voice control

touch screen

29
New cards

Which of the following is not an operating system service?

program execution

I/O operation

protection and security

graphical user interface

graphical user interface

30
New cards

Which of the following is the only gateway between user space and kernel space?

user interface

system call

operating system

hardware drivers

system call

31
New cards

What is the relationship between library call open() and open() system call?

open() system call is part of open()

open() system call in an alternate version of open()

open() is a predecessor version of open() system call

open() invokes open() system call to get service from operating system

open() invokes open() system call to get service from operating system

32
New cards

What category of system call includes the ones for process creation of and termination?

process control

file management

device management

protection

process control

33
New cards

The ________ provides a portion of the system call interface for UNIX and Linux.

POSIX

Java

Standard C library

Standard API

Standard C library

34
New cards

A message-passing model is ____.

easier to implement than a shared memory model for intercomputer communication

faster than the shared memory model

a network protocol, and does not apply to operating systems

only useful for small simple operating systems

easier to implement than a shared memory model for intercomputer communication

35
New cards

Application programmers typically use an API rather than directory invoking system calls.

True

False

true

36
New cards

Which of the following defines the view of the operating system seen by most users?

application and system programs

system calls

device drivers

library calls

application and system programs

37
New cards

In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter, less descriptive names.

True

False

true

38
New cards

Applications compiled on one operating system can be directly executable on other operating systems due to common structure.

True

False

false

39
New cards

One important principle is the separation of policy from mechanism.

True

False

True

40
New cards

Which of the following operating system structure is the one for Mach OS?

monolithic structure

layered structure

microkernel

modular approach

microkernel

41
New cards

Which of the following operating system structure involves using loadable kernel module in design?

monolithic structure

layered structure

microkernel

modular approach

modular approach

42
New cards

Mac OS X is a hybrid system consisting of both the Mach microkernel and BSD UNIX.

True

False

True

43
New cards

Which of the following is the correct program type for GRUB in Linux and Unix systems?

bootstrap program

compiler program

binder program

system utility

bootstrap program

44
New cards

When a process fails, the operating system takes a ________ which can then be probed by a debugger for failure analysis?

core dump

crash dump

capture of network statistic information

capture of CPU usage information

core dump

45
New cards

iOS is open source, Android is closed source.

True

False

false

46
New cards

Which of the following inter-process communication is used in microkernel?

message passing

shared memory

socket communication

all of the above

message passing

47
New cards

Many operating system merge I/O devices and files into a combined file because of the similarity of system calls for each.

True

False

True

48
New cards

The Windows CreateProcess() system call creates a new process

NTCreateProcess()

process()

fork()

getpid()

fork()

49
New cards

_____ provide(s) an interface to the services provided by an operating system.

Shared memory

System calls

Simulators

Communication

System calls

50
New cards

Which of the following statements is incorrect?

An operating system provides an environment for the execution of programs.

An operating system manages system resources.

Operating systems provide both command line as well as graphical user interfaces.

Operating systems must provide both protection and security.

Operating systems provide both command line as well as graphical user interfaces.

51
New cards

Which of the following contains dynamically allocated data during program run time?

text section

data section

heap section

stack section

heap section

52
New cards

Which of the following contains the executable code?

text section

data section

heap section

stack section

text section

53
New cards

Which of the following contains global data?

text section

data section

heap section

stack section

data section

54
New cards

Which of the following contains memory allocated by malloc()?

text section

data section

heap section

stack section

heap section

55
New cards

Which of the following process state will be switched from "running" state when an interrupt occurs?

ready

terminated

waiting

new

ready

56
New cards

Which of the following process state will be switched from "running" state when an I/O event occurs?

ready

terminated

waiting

new

waiting

57
New cards

Which of the following process state will be switched from "ready" state?

ready

terminated

waiting

running

running

58
New cards

The difference between a program and a process is that a program is an active entity while a process is a passive entity.

True

False

False

59
New cards

For a single-processor system, there will never be more than one process in the Running state.

True

False

True

60
New cards

Which of the following memory space dynamically grows from high memory to low memory?

text section

data section

heap section

stack section

stack section

61
New cards

Which of the following data structure is used to manage the processes in Linux?

tree

linked list

hash map

stack

linked list

62
New cards

Which of the following structures defines the process control block for Linux system?

task_struct

files_struct

mm_struct

schedu_entity

task_struct

63
New cards

What is the degree of multiprogramming for a single-processor system?

0

1

2

3

1

64
New cards

Which of the following is true?

An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations

An I/O-bound process is one that spends more of its time doing computations than it spends doing I/O

Both A and B

None of the above

An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations

65
New cards

Which of the following cases could force a process removed from the CPU?

I/O request

fork a child

interrupt or time slice expired

all of the above

All of the above

66
New cards

The list of processes waiting to execute on a CPU is called a(n) ____.

standby queue

device queue

ready queue

interrupt queue

ready queue

67
New cards

Which of the following selects from among the processes that are in the ready queue to execute and allocate the CPU to one of them?

CPU scheduler

context switch

swapping

job scheduler

CPU scheduler

68
New cards

Which of the following system calls is used to let the parent process create a child process?

abort();

wait();

fork();

exec().

fork();

69
New cards

Which of the following system calls is used to have a new program loaded into the new process's memory space?

fork()

exec()

wait()

exit()

exec()

70
New cards

The exec() system call creates a new process.

True

False

False

71
New cards

All processes in UNIX first translate to a zombie process upon termination.

True

False

True

72
New cards

Child processes inherit UNIX ordinary pipes from their parent process because:

The pipe is part of the code and children inherit code from their parents.

A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.

The STARTUPINFO structure establishes this sharing.

All IPC facilities are shared between the parent and child processes.

A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.

73
New cards

The communication with named pipes requires parent-child relationship.

True

False

False

74
New cards

Ordinary pipes are unidirectional, allowing only one-way communication.

True

False

True

75
New cards

The Mach operating system treats system calls with message passing.

True

False

True

76
New cards

Which of the following items are shared across multiple threads belonging to the same process?

code, data, files

registers

stack

all of the above

code, data, files

77
New cards

In a multithreaded server architecture, which of the following is used to service a new user request?

a new created thread

a new created process

the same process for prior users

none of the above

a new created thread

78
New cards

Which of the following benefits go to multithreaded programming?

responsiveness

resource sharing

economy

scalability

all of the above

all of the above

79
New cards

Virtually all contemporary operating systems support kernel threads.

True

False

True

80
New cards

Which of the following refers to the capability to allow multiple tasks make progress on a single processor system?

concurrency

parallelism

data parallelism

task parallelism

concurrency

81
New cards

Parallelism can be achieved on single-processor systems.

True

False

False

82
New cards

Concurrency is inherently equivalent to parallelism.

True

False

False

83
New cards

Which of the following models are possible for the relationship between the user threads and kernel threads?

many-to-one model

one-to-one model

many-to-many model

two-level model

all of the above

all of the above

84
New cards

The _____ model maps each user-level thread to one kernel thread.

many-to-many

two-level

one-to-one

many-to-one

one-to-one

85
New cards

One-to-one model provides more concurrency than the many-to-one model by allowing another thread to run when a thread makes a blocking system call.

True

False

True

86
New cards

Which of the following is a function that can be provided by Pthreads API for constructing a multithreaded program?

pthread attr init

pthread_create

pthread_join

all of the above

all of the above

87
New cards

Which of the following is an asynchronous signal?

illegal memory access

division by zero

terminating a process with specific keystrokes

none of the above

terminating a process with specific keystrokes

88
New cards

Which of the following is a synchronous signal?

illegal memory access

terminating a process with specific keystrokes

having a timer expire

none of the above

illegal memory access

89
New cards

Which of the following options exist to deliver signals in multithreaded program?

deliver the signal to the thread to which the signal applies

deliver the signal to every thread in the process

deliver the signal to certain threads in the process

assign a specific thread to receive all signals for the process

all of the above

all of the above

90
New cards

To associate each thread created using an implicit technique such as a thread pool, with its unique transaction identifier, we could use ____?

global variable

local variable

static data

thread-local storage

thread-local storage

91
New cards

The default signal handler can be overridden by a user-defined signal handler.

True

False

True

92
New cards

Thread-local storage is inherently equivalent to local variables.

True

False

False

93
New cards

Which are included in the context of a thread?

register set

stacks

private storage area

all of the above

all of the above

94
New cards

When fork() is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.

True

False

False

95
New cards

Deferred cancellation is preferred over asynchronous cancellation.

True

False

True

96
New cards

The ready queue can be implemented as a _______________.

unordered linked list

priority queue

all of the above

FIFO queue

tree

all of the above

97
New cards

Which of the following circumstances can cooperative scheduling take place?

when a process switches from the running state to the waiting state

when a process switches from the waiting state to the ready state

when a process switches from the running state to the ready state

none of the above

when a process switches from the running state to the waiting state

98
New cards

Which of the following circumstances can preemptive scheduling take place?

when a process terminates

none of the above

when a process switches from the waiting state to the ready state

when a process switches from the running state to the waiting state

when a process switches from the waiting state to the ready state

99
New cards

Which of the following items does not belong to the function of a dispatcher?

switching to user mode

switching context from one process to another

jumping to the proper location in the user program to resume that program

selecting a process among the available ones in the ready queue

selecting a process among the available ones in the ready queue

100
New cards

Which of the following criteria is more important for an interactive system?

Throughput

Response time

Turnaround time

CPU utilization

Response time