UGC NET · Computer Science

Operating Systems Previous Year Questions (page 2)

66 Operating Systems (Computer Science) questions asked in UGC NET previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.

  • 66 questions
  • Official answer key
  • Free

Other Computer Science topics

Q51UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
In a paging system, it takes 30 ns to search translation Look-a-side buffer (TLB) and 90 ns to access the main memory. If the TLB hit ratio is 70%, the effective memory access time is :
  1. A48ns
  2. B147ns
  3. C120ns
  4. D84ns
Show answerHide answer

Correct answer: (B) 147ns

Explanation

TLB hit ratio 70%, TLB search 30 ns, memory access 90 ns. On a hit, the page is found in the TLB (30 ns); on a miss, the TLB is searched and the page table read from memory (30 + 90 ns); then 90 ns to access the data. Total = (0.7 × 30) + (0.3 × (90 + 30)) + 90 = 21 + 36 + 90 = 147 ns

Q52UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Match the following w.r.t. Input/Output management : List-I A. Device controller B. Device driver C. Interrupt handler D. Kernel I/O subsystem List-II i. Extracts information from the controller register and store it in data buffer ii. I/O scheduling iii. Performs data transfer iv. Processing of I/O request Codes : A B C D
  1. Aiii iv i ii
  2. Bii i iv iii
  3. Civ i ii iii
  4. Di iii iv ii
Show answerHide answer

Correct answer: (D) i iii iv ii

Explanation

The correct match: A. Device controller – i. Extracts information from the controller register and stores it in data buffer; B. Device driver – iii. Performs data transfer; C. Interrupt handler – iv. Processing of I/O request; D. Kernel I/O subsystem – ii. I/O scheduling.

Q53UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following scheduling algorithms may cause starvation? A. First-come-first-served B. Round Robin C. Priority D. Shortest process next E. Shortest remaining time first
  1. AA, C and E
  2. BC, D and E
  3. CB, D, and E
  4. DB, C and D
Show answerHide answer

Correct answer: (B) C, D and E

Explanation

(1) First come – first served – No starvation (2) Round robin – No starvation (3) Priority – starvation if higher priority process called again & again lower priority starves (4) Shortest process next = starvation possible (5) Shortest remaining time first = starvation possible

Q54UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Distributed operating system consist of :
  1. ALoosely coupled O.S. software on a loosely coupled hardware
  2. BLoosely coupled O.S. Software on a tightly coupled hardware
  3. CTightly coupled O.S. Software on a loosely coupled hardware
  4. DTightly coupled O.S. software on a tightly coupled hardware
Show answerHide answer

Correct answer: (C) Tightly coupled O.S. Software on a loosely coupled hardware

Explanation

A distributed operating system is usually defined as running on more loosely coupled hardware. There is no shared memory, but provides a single memory by tightly coupled software.

Q55UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Software Engineering is an engineering discipline that is concerned with :
  1. AHow computer systems work
  2. BTheories and methods that underline computers and software systems
  3. CAll aspects of software production
  4. DAll aspects of computer-based system development, including hardware, software and process engineering
Show answerHide answer

Correct answer: (C) All aspects of software production

Explanation

Software engineering is an engineering discipline that is concerned with all aspects of software production.

Q56UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following is not one of three software product aspects addressed by Mccall's software quality factors?
  1. AAbility to undergo change
  2. BAdaptability to new environments
  3. COperational characteristics
  4. DProduction costs and scheduling
Show answerHide answer

Correct answer: (D) Production costs and scheduling

Explanation

Mccalls's software quality factors. (1) ability to undergo change (2) Adaptability to new environments (3) Operational characteristics but production costs & scheduling is not the aspect of quality factor.

Q57UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Some of the criteria for calculation of priority of a process are : A. Processor utilization by an individual process B. Weight assigned to a user or group of users C. Processor utilization by a user or group of processes In fair share scheduler, priority is calculated based on :
  1. AOnly (A) and (B)
  2. BOnly (A) and (C)
  3. C(A), (B), and (C)
  4. DOnly (B) and (C)
Show answerHide answer

Correct answer: (C) (A), (B), and (C)

Explanation

Fair-share scheduling is a scheduling algorithm in which CPU usage is equally distributed among system users or groups, rather than equally among processes. The priority considers processor utilization by the individual process, by the user or group, and the weight assigned to the user or group, so (A), (B) and (C).

Q58UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
One of the disadvantages of user level threads compared to Kernel level threads is
  1. AIf a user level thread of a process executes a system call, all threads in that process are blocked
  2. BScheduling is application dependent
  3. CThread switching doesn't require kernel mode privileges
  4. DThe library procedures invoked for thread management in user level threads are local procedures
Show answerHide answer

Correct answer: (A) If a user level thread of a process executes a system call, all threads in that process are blocked

Explanation

User level threads – advantages: thread switching does not require kernel mode privileges; they can run on any OS; they are fast to create and manage. Disadvantages: in a typical OS most system calls are blocking, so if one user level thread executes a system call, all threads of that process are blocked; and a multithreaded application cannot take advantage of multiprocessing.

Q59UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which statements is not correct about "init" process in Unix?
  1. AIt is generally the parent of the login shell
  2. BIt has PID 1.
  3. CIt is the first process in the system.
  4. DInit forks and execs a 'getty' process at every port connected to a terminal.
Show answerHide answer

Correct answer: (C) It is the first process in the system.

Explanation

'init' (PID 1) is not the first process in the system; it is the second, since the scheduler/swapper process (PID 0) is created first. So statement (c) is not correct.

Q60UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)
Which of the following is incorrect for virtual memory?
  1. ALarge programs can be written
  2. BMore I/O is required
  3. CMore addressable memory available
  4. DFaster and easy swapping of process
Show answerHide answer

Correct answer: (B) More I/O is required

Explanation

Virtual memory maps the virtual addresses used by a program into physical addresses. It provides more addressable memory, allows programs larger than physical memory to run, and allows easy swapping; it does not require more I/O. So 'More I/O is required' is incorrect.

Q61UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
In _____ disk scheduling algorithm, the disk head moves from one end to other end of the disk, serving the request along the way. When the head reaches the other end, it immediately returns to the beginning of the disk without serving any requests on the return trip.
  1. ALOOK
  2. BSCAN
  3. CC – LOOK
  4. Dc – SCAN
Show answerHide answer

Correct answer: (B) SCAN

Explanation

Note: returning to the beginning without serving requests on the return trip is the defining feature of C-SCAN (option d); the book keys (b). In the SCAN disk scheduling algorithm (as keyed by the book), the disk head moves from one end of the disk to the other, serving requests along the way, and then returns to the beginning without serving requests on the return trip.

Q62UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Which module gives control of the CPU to the process selected by the sort - term scheduler?
  1. ADispatcher
  2. BInterrupt
  3. CScheduler
  4. DThreading
Show answerHide answer

Correct answer: (A) Dispatcher

Explanation

The dispatcher is the module that gives control of the CPU to the process selected by the short-term scheduler.

Q63UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
User level threads are threads that are visible to the programmer and are unknown to the kernel. The operating system kernel supports and manages kernel level threads. Three different types of models relate user and kernel level threads. Which of the following statements is/are true? (A) (i) The many to one model maps many user threads to one kernel thread (ii) The one - to - one model maps one user threads to one kernel thread (iii) The many model maps many user threads to smaller or equal kernel threads (B) (i) Many - to- one model maps many kernel threads to one user thread (ii) One - to - one model maps one kernel thread to one user thread (iii) Many - to - many model maps many kernel threads to smaller or equal user threads Code :
  1. A(A) is true; (B) is false
  2. B(A) is false; (B) is true
  3. CBoth (A) and (B) are true
  4. DBoth (A) and (B) are false
Show answerHide answer

Correct answer: (A) (A) is true; (B) is false

Explanation

In statement set (A), the many-to-one model maps many user threads to one kernel thread, the one-to-one model maps one user thread to one kernel thread, and the many-to-many model maps many user threads to a smaller or equal number of kernel threads; all are true. Set (B) reverses the roles of user and kernel threads, so it is false.

Q64UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Consider a virtual page reference string 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 Suppose a demand paged virtual memory system running on a computer system such that the main memory has 3 page frames. Then.............. page replacement algorithm has minimum number of page faults.
  1. AFIFO
  2. BLIFO
  3. CLRU
  4. DOptimal
Show answerHide answer

Correct answer: (D) Optimal

Explanation

For this reference string with 3 frames, the optimal algorithm gives 9 page faults, fewer than FIFO, LIFO or LRU. So the optimal algorithm has the minimum number of page faults.

Q65UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Consider the following statements : (A) UNIX provides three types of permissions * Read * Write * Execute (B) UNIX provides three sets of permissions * permission for owner * permission for group * permission for others Which of the above statement/s is/are true?
  1. AOnly (A)
  2. BOnly (B)
  3. CBoth (A) and (B)
  4. DNeither (A) nor (B)
Show answerHide answer

Correct answer: (C) Both (A) and (B)

Explanation

UNIX provides read, write and execute permissions on files, and three sets of permissions: for the owner, for the group and for others. So both (A) and (B) are true.

Q66UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)
Match the following WINDOWS system calls and UNIX system calls with reference to process control and file manipulation. Windows A. Create - process ( ) B. Wait for single object ( ) C. Create file ( ) D. Close Handle ( ) UNIX i. Open ( ) ii. Close ( ) iii. Fork ( ) iv. Wait ( ) Code : A B C D
  1. Aiii iv i ii
  2. Biv iii i ii
  3. Civ iii ii i
  4. Diii iv ii i
Show answerHide answer

Correct answer: (B) iv iii i ii

Explanation

Note: the standard correspondence is CreateProcess() - fork(), WaitForSingleObject() - wait(), CreateFile() - open(), CloseHandle() - close(), i.e. A-iii, B-iv, C-i, D-ii, which is option (a); the book keys (b). The book's mapping is A-iv, B-iii, C-i, D-ii.

How to use these UGC NET Computer Science questions

Every question here was asked in a real UGC NET paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full UGC NET papers as timed tests to check your speed under exam conditions.