Quiz 2 Flashcards
True or False
Processes are dynamic whereas programs are static.
True
True or False:
Some processes will be created at system initialization.
True
A system call on_______________in Unix/Linux creates a process.
fork
True or False:
A process can be killed due to a fatal error such as divide by 0.
True
When a process is waiting for input/output, it comes into _________ state.
blocked
When a time slice of CPU is used up, a process comes into ___________ state.
ready
When a process is created, it comes into _______________ state.
ready
True or False:
Process swapping is needed when a CPU is shared by multiple processes.
True
True or False:
A process is an abstraction of a running program.
True
In an operating system, the _________________ selects a process to use the CPU.
scheduler
Given the following function definition in Python:
def greet(person):
print(“Hello”, person)
print (“How are you?”)
What output(s) do we get if the function is invoked by greet(Jimmy)?
An error
True or False:
In computer science, a queue is a last in first out data structure.
False
What symbol is used to denote comments in Python code?
#