Title | CS 2301 Self Quiz Unit 2 - CS 2301 |
---|---|
Author | Kute Face |
Course | Operating Systems 1 (proctored course) |
Institution | University of the People |
Pages | 14 |
File Size | 820.3 KB |
File Type | |
Total Downloads | 84 |
Total Views | 141 |
CS 2301...
Home ► My courses ► CS 2301 - AY2019-T5 ► 27 June - 3 July ► Self-Quiz Unit 2
Started on State Completed on Time taken Grade
Sunday, 30 June 2019, 4:19 PM Finished Sunday, 30 June 2019, 4:25 PM 6 mins 28 secs 10.00 out of 10.00 (100%)
Correct
True or False: Application programmers typically use an API rather than directory invoking system calls.
Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
The process states include all of the following except: Correct Mark 1.00 out of 1.00
Select one: a. Blocked b. Stopped c. Ready d. Running
Your answer is correct. The correct answer is: Stopped
Correct
The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX:
Mark 1.00 out of 1.00
Select one: a. NTCreateProcess() b. process() c. fork() d. getpid()
Your answer is correct. The correct answer is: fork()
All of the following are Machine States except: Correct Mark 1.00 out of 1.00
Select one: a. Address space b. Registers c. Memory d. API
Your answer is correct. The correct answer is: API
True or False: A running program is not a process. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'False'.
Correct
True or False: MenuMeters (from Raging Menace software) runs on our PC toolbars.
Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'False'.
Correct
What system call is used to send signals to a process, including directives to go to sleep, or die:
Mark 1.00 out of 1.00
Select one: a. API b. fork() c. kill () d. wait ()
Your answer is correct. The correct answer is: kill ()
Which of the following statements is incorrect? Correct Mark 1.00 out of 1.00
Select one: a. An operating system provides an environment for the execution of programs. b. An operating system manages system resources. c. Operating systems provide both command line as well as graphical user interfaces. d. Operating systems must provide both protection and security.
Your answer is correct. The correct answer is: Operating systems provide both command line as well as graphical user interfaces.
Correct
A parent can be made to wait for a child process to nish what it has been doing by which command?
Mark 1.00 out of 1.00
Select one: a. PID b. Hello World c. Prompt > d. wait() system call
Your answer is correct. The correct answer is: wait() system call
True or False: The process list is a data structure. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
◄ Learning Journal Unit 2 Jump to... Learning Guide Unit 3 ►
https://my.uopeople.edu/mod/quiz/review.php?attempt=1958065&cmid=177636
5/5
Home ► My courses ► CS 2301 - AY2019-T5 ► 27 June - 3 July ► Self-Quiz Unit 2
Started on State Completed on Time taken Grade
Sunday, 30 June 2019, 4:25 PM Finished Sunday, 30 June 2019, 4:29 PM 3 mins 28 secs 10.00 out of 10.00 (100%)
True or False: PIDS are used to name processes in the UNIX O/S. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
In early (or simple) operating systems, the loading process is done: Correct Mark 1.00 out of 1.00
Select one: a. One at a time b. Eagerly c. In groups d. At compile time
Your answer is correct. The correct answer is: Eagerly
Correct
A process may transition to the Ready state by which of the following actions?
Mark 1.00 out of 1.00
Select one: a. Completion of an I/O event b. Awaiting its turn on the CPU c. Newly-admitted process d. All of the above
Your answer is correct. The correct answer is: All of the above
Correct
What technique uses the OS to create an illusion by virtualizing the CPU and running one process, then stopping it and running another?
Mark 1.00 out of 1.00
Select one: a. Virtualization b. Context switch c. Scheduling d. Time sharing
Your answer is correct. The correct answer is: Time sharing
Correct Mark 1.00 out of 1.00
True or False: UNIX pipes are implemented with the execvp() system call. This is where the output of one process seamlessly is used as input to the next, and long and useful chains of commands can be strung together. Select one: True False
The correct answer is 'False'.
True or False: The register context will not hold the contents of its registers. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'False'.
True or False: The shell is just a user program. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
Correct
True or False: The natural counterpart of time sharing is space sharing, where a resource is divided (in space) among those who wish to use it.
Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
Correct
This system call is useful when you want to run a program that is dierent from the calling program:
Mark 1.00 out of 1.00
Select one: a. API b. fork() c. exec() System Call d. wait ()
Your answer is correct. The correct answer is: exec() System Call
Correct
_____ provide(s) an interface to the services provided by an operating system.
Mark 1.00 out of 1.00
Select one: a. Shared memory b. System calls c. Simulators d. Communication
Your answer is correct. The correct answer is: System calls
◄ Learning Journal Unit 2 Jump to... Learning Guide Unit 3 ►
https://my.uopeople.edu/mod/quiz/review.php?attempt=1958070&cmid=177636
5/5
Home ► My courses ► CS 2301 - AY2019-T5 ► 27 June - 3 July ► Self-Quiz Unit 2
Started on State Completed on Time taken Grade
Sunday, 30 June 2019, 4:29 PM Finished Sunday, 30 June 2019, 4:31 PM 1 min 46 secs 10.00 out of 10.00 (100%)
True or False: PIDS are used to name processes in the UNIX O/S. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
Correct
This system call is useful when you want to run a program that is dierent from the calling program:
Mark 1.00 out of 1.00
Select one: a. API b. fork() c. exec() System Call d. wait ()
Your answer is correct. The correct answer is: exec() System Call
Correct
A process may transition to the Ready state by which of the following actions?
Mark 1.00 out of 1.00
Select one: a. Completion of an I/O event b. Awaiting its turn on the CPU c. Newly-admitted process d. All of the above
Your answer is correct. The correct answer is: All of the above
True or False: The process list is a data structure. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
Correct
The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX:
Mark 1.00 out of 1.00
Select one: a. NTCreateProcess() b. process() c. fork() d. getpid()
Your answer is correct. The correct answer is: fork()
True or False: The shell is just a user program. Correct Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
_____ provide(s) an interface to the services provided by an operating Correct
system.
Mark 1.00 out of 1.00
Select one: a. Shared memory b. System calls c. Simulators d. Communication
Your answer is correct. The correct answer is: System calls
Correct
True or False: The natural counterpart of time sharing is space sharing, where a resource is divided (in space) among those who wish to use it.
Mark 1.00 out of 1.00
Select one: True False
The correct answer is 'True'.
Correct Mark 1.00 out of 1.00
True or False: UNIX pipes are implemented with the execvp() system call. This is where the output of one process seamlessly is used as input to the next, and long and useful chains of commands can be strung together. Select one: True False
The correct answer is 'False'.
Which of the following statements is incorrect? Correct Mark 1.00 out of 1.00
Select one: a. An operating system provides an environment for the execution of programs. b. An operating system manages system resources. c. Operating systems provide both command line as well as graphical user interfaces. d. Operating systems must provide both protection and security.
Your answer is correct. The correct answer is: Operating systems provide both command line as well as graphical user interfaces.
◄ Learning Journal Unit 2 Jump to... Learning Guide Unit 3 ►
https://my.uopeople.edu/mod/quiz/review.php?attempt=1958073&cmid=177636
4/4...