Review question 1.pdf
Document Details

Uploaded by RaptQuasimodo
KTH Royal Institute of Technology
Tags
Full Transcript
Ques%on: What are the three main purposes of an opera%ng system? A) Data storage, user interface design, and network management. B) Program execu%on, error handling, and hardware interac%on. C) Resource alloca%on, control program func%ons, and user program execu%on. D) SoFware installa%on, user auth...
Ques%on: What are the three main purposes of an opera%ng system? A) Data storage, user interface design, and network management. B) Program execu%on, error handling, and hardware interac%on. C) Resource alloca%on, control program func%ons, and user program execu%on. D) SoFware installa%on, user authen%ca%on, and file encryp%on. Correct Answer: C) Resource alloca%on, control program func%ons, and user program execu%on. Ques%on: When is it appropriate for the opera%ng system to forsake efficient use of compu%ng hardware? A) When the system is idle. B) In mul%-user systems for fairness. C) In single-user systems to op%mize user interac%on. D) Never, as it always leads to inefficiencies. Correct Answer: C) In single-user systems to op%mize user interac%on. Ques%on: What is the main difficulty in wri%ng an opera%ng system for a real-%me environment? A) Managing user permissions. B) Keeping the opera%ng system within fixed %me constraints. C) Ensuring compa%bility with various hardware. D) Balancing system load efficiently. Correct Answer: B) Keeping the opera%ng system within fixed %me constraints. Ques%on: How does the dis%nc%on between kernel mode and user mode func%on as a form of protec%on? A) By encryp%ng data transferred between modes. B) By allowing users to customize their interface. C) By limi%ng the capability of the CPU in user mode. D) By segrega%ng network and local opera%ons. Correct Answer: C) By limi%ng the capability of the CPU in user mode. Ques%on: Which of the following instruc%ons should be privileged? A) Read the clock. B) Set value of %mer. C) Issue a trap instruc%on. D) Switch from kernel to user mode. Correct Answer: B) Set value of %mer. Ques%on: What is the primary func%on of the command interpreter in an opera%ng system? A) Managing hardware resources. B) Execu%ng applica%on soFware. C) Interpre%ng and execu%ng user commands. D) Encryp%ng data for security purposes. Correct Answer: C) Interpre%ng and execu%ng user commands. Ques%on: Which of the following is a characteris%c of distributed opera%ng systems? A) They are easier to manage than single-user opera%ng systems. B) Resources are shared among mul%ple computers. C) They require less memory and processing power. D) They are mainly used in personal compu%ng. Correct Answer: B) Resources are shared among mul%ple computers. Ques%on: What does a microkernel approach in opera%ng systems emphasize? A) Large, comprehensive kernels for robust func%onality. B) Minimalist kernel func%onality, with addi%onal services running in user space. C) Priority on graphical user interface development. D) Focus on networking capabili%es only. Correct Answer: B) Minimalist kernel func%onality, with addi%onal services running in user space. Ques%on: In the context of an opera%ng system, what is 'thrashing'? A) Rapidly switching between user and kernel mode. B) A high rate of page swapping, leading to reduced performance. C) Temporary loss of data due to power failure. D) Unauthorized access to system memory. Correct Answer: B) A high rate of page swapping, leading to reduced performance. Ques%on: What is the main advantage of mul%programming? A) Reduced system security. B) Increased user interac%on with the system. C) Improved system efficiency by maximizing CPU usage. D) Simplifica%on of the user interface. Correct Answer: C) Improved system efficiency by maximizing CPU usage.