Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Multiple Choice Questions

Q781: When using a simple flag system to control access to a printer, what does a set flag indicate?
  • A: The printer is available
  • B: The printer is currently allocated
  • C: The printer is out of order
  • D: The printer is under maintenance
View Answer
B

Q782: What problem can occur with a simple flag system in a time-sharing system?
  • A: The flag value is always correct
  • B: The flag may not be updated in time
  • C: The flag is never checked
  • D: The flag value is ignored
View Answer
B

Q783: Which instruction can be used to prevent interruptions during flag testing and setting?
  • A: Disable interrupt instruction
  • B: Enable interrupt instruction
  • C: Read instruction
  • D: Write instruction
View Answer
A

Q784: What is the purpose of the test-and-set instruction in semaphore operations?
  • A: It retrieves and sets the flag value atomically
  • B: It retrieves the flag value only
  • C: It sets the flag value only
  • D: It clears the flag value only
View Answer
A

Q785: In the semaphore system, what is the critical region?
  • A: A section of code executed by multiple processes
  • B: A section of code executed by a single process at a time
  • C: A memory location that holds the semaphore value
  • D: A hardware device controlled by the semaphore
View Answer
B

Q786: What does mutual exclusion ensure in semaphore-based synchronization?
  • A: Only one process can execute a critical region at a time
  • B: Multiple processes can access the critical region simultaneously
  • C: The semaphore is always set
  • D: The semaphore is always clear
View Answer
A

Q787: What might happen if two processes access the printer simultaneously using a simple flag system?
  • A: The printer produces correct results for both processes
  • B: One process will always be denied access
  • C: Both processes will get correct results
  • D: Both processes will interfere with each other
View Answer
D

Q788: How is a semaphore implemented to avoid interruption issues?
  • A: By using an interrupt enable instruction
  • B: By using a test-and-set instruction
  • C: By using a standard read instruction
  • D: By using a standard write instruction
View Answer
B

Q789: What is the analogy used to describe a semaphore in the provided content?
  • A: Railroad signals controlling train access
  • B: A traffic light controlling vehicle flow
  • C: A gate controlling access to a building
  • D: A security badge controlling entry to a room
View Answer
A

Q790: What is a deadlock in the context of operating systems?
  • A: A condition where processes are blocked from progressing due to resource allocation
  • B: A situation where processes run without any issue
  • C: A condition where processes are executed in parallel
  • D: A situation where all processes terminate unexpectedly
View Answer
A

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now