0% found this document useful (0 votes)
14 views5 pages

Lecture 5

Uploaded by

baglannurkasym6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

Lecture 5

Uploaded by

baglannurkasym6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Test Variant 1

1. What is a process in the context of operating systems?


 A) A file stored on disk.
 B) An abstraction of a running program.
 C) A type of user interface.
 Correct Answer: B
2. What is pseudo-concurrency in operating systems?
 A) Running multiple processes on multiple CPUs.
 B) The illusion of running processes simultaneously on a single CPU.
 C) Processes running without any CPU usage.
 Correct Answer: B
3. How is the process abstraction beneficial in computing?
 A) It allows multiple programs to run without the need for a CPU.
 B) It simplifies user interaction with the computer.
 C) It enables a single CPU to manage multiple virtual CPUs.
 Correct Answer: C
4. What initiates the creation of processes during system boot?
 A) User login.
 B) System initialization.
 C) External network signals.
 Correct Answer: B
5. Which event does NOT typically trigger the creation of a process?
 A) System initialization.
 B) Execution of a user command.
 C) Automatic timeout every 5 minutes.
 Correct Answer: C
6. What is the main purpose of a daemon process?
 A) To interact directly with user inputs.
 B) To perform background system functions without user interaction.
 C) To provide security checks on user activities.
 Correct Answer: B
7. Which system call is used in UNIX to create a new process?
 A) execve
 B) fork
 C) kill
 Correct Answer: B
8. What does the fork system call do?
 A) It terminates a process.
 B) It creates an exact clone of the calling process.
 C) It sends a signal to another process.
 Correct Answer: B
9. How do UNIX and Windows differ in their process creation models?
 A) UNIX uses a single function, while Windows uses multiple.
 B) UNIX uses multiple functions, while Windows uses a single function.
 C) Both use the same number of functions with the same parameters.
 Correct Answer: B
10. What is the result of a process executing an error exit?
 A) The process continues execution after logging the error.
 B) The process terminates voluntarily due to an error.
 C) The process is suspended until the error is corrected.
 Correct Answer: B
11. What happens when a process is killed by another process?
 A) It immediately starts another instance of itself.
 B) It continues to run in a restricted mode.
 C) It terminates involuntarily.
 Correct Answer: C
12. What does the 'Ready' state of a process indicate?
 A) The process is running.
 B) The process is runnable but temporarily stopped.
 C) The process is waiting for an external event.
 Correct Answer: B
13. What occurs in the 'Blocked' state of a process?
 A) The process is running more slowly than usual.
 B) The process cannot run until some external event happens.
 C) The process is performing computations.
 Correct Answer: B
14. Why might a process enter a 'Blocked' state?
 A) Due to user inactivity.
 B) Waiting for I/O operations to complete.
 C) When the process is using too much CPU time.
 Correct Answer: B
15. What is a process group in UNIX?
 A) A collection of user interfaces.
 B) A set of processes that are running the same program.
 C) A collection of related processes that can be managed together.
 Correct Answer: C
16. How does the system handle multiple processes in terms of CPU assignment?
 A) Each process is assigned a dedicated CPU.
 B) Processes share the CPU, switching rapidly to give an illusion of parallelism.
 C) Each process must request CPU time in advance.
 Correct Answer: B
17. What allows for the illusion of parallelism on single-CPU systems?
 A) The operating system only allows one process to run at a time.
 B) The CPU switches rapidly among processes, running each for a short
time.
 C) All processes are run in the background without user interaction.
 Correct Answer: B
18. What is the primary purpose of multiprogramming?
 A) To allow each user to run multiple applications simultaneously.
 B) To keep the CPU busy by rapidly switching between processes.
 C) To limit the number of processes running on a system.
 Correct Answer: B
19. What is a daemon process?
 A) A process that interacts directly with the user.
 B) A background process performing specific functions without user
interaction.
 C) A process that manages user logins exclusively.
 Correct Answer: B
20. What mechanism do modern operating systems use to handle multiple
active processes?
 A) Each process is given a dedicated CPU.
 B) Processes are only allowed to run sequentially.
 C) Processes are given timeslices to simulate concurrent execution.
 Correct Answer: C

Test Variant 2

1. What is the definition of a process in operating systems?


 A) A sequence of instructions.
 B) An abstraction of a running program.
 C) A collection of files on the disk.
 Correct Answer: B
2. How does the system handle multiple processes in terms of CPU usage?
 A) By allowing them to run simultaneously on the same CPU.
 B) By dedicating one CPU per process.
 C) By time-sharing the CPU among different processes.
 Correct Answer: C
3. What does the 'Blocked' state signify for a process?
 A) The process is running.
 B) The process is ready but not running.
 C) The process cannot proceed until an external event occurs.
 Correct Answer: C
4. What event can create a new process in an operating system?
 A) System shutdown.
 B) Execution of a process creation system call.
 C) Low memory conditions.
 Correct Answer: B
5. What are daemon processes typically used for?
 A) Interactive user tasks.
 B) Background services without user intervention.
 C) Managing hardware devices directly.
 Correct Answer: B
6. What UNIX system call is used to create a new process?
 A) create()
 B) fork()
 C) start()
 Correct Answer: B
7. What is true about the process state 'Ready'?
 A) It indicates the process is currently using the CPU.
 B) It means the process is running but performing no useful work.
 C) It signifies the process is prepared to use the CPU when available.
 Correct Answer: C
8. How do processes typically communicate in a multiprocess environment?
 A) By altering the CPU's clock speed.
 B) Through shared memory and message passing.
 C) By stopping other processes from running.
 Correct Answer: B
9. What occurs during process termination?
 A) The process moves to the ready state.
 B) The process releases all resources and informs the operating system.
 C) The process immediately restarts.
 Correct Answer: B
10. Why might a process be created during system operation?
 A) To increase the load on the CPU.
 B) In response to a user request or system requirement.
 C) To decrease system security.
 Correct Answer: B
11. What is the effect of a process executing a 'fork' system call in UNIX?
 A) The process is terminated.
 B) The process creates an exact clone of itself.
 C) The process enters an infinite loop.
 Correct Answer: B
12. How is a new process started in Windows compared to UNIX?
 A) Windows uses multiple function calls, while UNIX uses a single function call.
 B) Windows uses a single function call, while UNIX uses multiple steps.
 C) Both use exactly the same methods and system calls.
 Correct Answer: B
13. What describes the relationship between parent and child processes in terms of
memory space?
 A) They share the same memory space.
 B) They have separate memory spaces.
 C) They use shared memory for communication.
 Correct Answer: B
14. What mechanism allows a UNIX process to handle specific errors itself rather than
being terminated?
 A) System override.
 B) Signal handling.
 C) Exception management.
 Correct Answer: B
15. What describes a process group in UNIX?
 A) A collection of processes that can only run sequentially.
 B) A set of processes that share the same system resources.
 C) Processes and their descendants that are grouped together.
 Correct Answer: C
16. How does the concept of process creation differ between batch systems and
interactive systems?
 A) Batch systems do not allow for user interaction during process creation.
 B) Interactive systems do not use processes.
 C) Batch systems create processes only during system initialization.
 Correct Answer: A
17. What is the typical behavior of a process when it encounters a fatal error?
 A) It fixes itself automatically.
 B) It continues execution until manually stopped.
 C) It terminates to prevent further errors.
 Correct Answer: C
18. Which process state is not directly involved in CPU utilization?
 A) Running
 B) Ready
 C) Blocked
 Correct Answer: C
19. What action is taken when a process needs to execute a new program?
 A) It uses the 'exec' system call to replace its memory space with the new program.
 B) It deletes its memory space and shuts down.
 C) It creates a new process to run the new program.
 Correct Answer: A
20. What is the result of the Win32 'CreateProcess' function?
 A) It checks the validity of a program before execution.
 B) It creates a new process and loads the specified program into it.
 C) It terminates the existing process before starting a new one.
 Correct Answer: B

You might also like