UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Operating Systems PYQ: OS Structure & Miscellaneous
Q1.
In Linux, where is the user password stored?
- (A) /etc/password
- (B) /root/password
- (C) /etc/passwd
- (D) /root/passwd
Q2.
A program that is used by other routines to accomplish a particular task is called:
- (A) Micro program
- (B) Micro operation
- (C) Routine
- (D) Subroutine
Q3.
The following table shows the time between failures (in hours) observed for a piece of software:
Assuming an exponential reliability model, what is the reliability of the system for one hour of operation?
| Error number | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| Time since last failure (hours) | 6 | 4 | 8 | 5 | 6 |
- (A) e^(-9/29)
- (B) e^(-7/29)
- (C) e^(-5/29)
- (D) e^(-3/29)
Q4.
Consider the following statements about a software product line system:
Statement I: At the interaction level, components provide an operator display interface and an interface with the communication system used.
Statement II: At the I/O management level, components handle operator authentication, report generator and query manager.
Statement I: At the interaction level, components provide an operator display interface and an interface with the communication system used.
Statement II: At the I/O management level, components handle operator authentication, report generator and query manager.
- (A) Both Statement I and Statement II are correct
- (B) Both Statement I and Statement II are incorrect
- (C) Statement I is correct but Statement II is incorrect
- (D) Statement I is incorrect but Statement II is correct
Q5.
Consider the following statements:
S1: The LRU page replacement algorithm suffers from Belady's anomaly.
S2: Shortest-remaining-time-first scheduling may cause starvation.
S3: The stack is shared by all threads in a process.
S1: The LRU page replacement algorithm suffers from Belady's anomaly.
S2: Shortest-remaining-time-first scheduling may cause starvation.
S3: The stack is shared by all threads in a process.
- (A) S1, S2 and S3 are true
- (B) S1, S3 are false and S2 is true
- (C) S1, S2 are false and S3 is true
- (D) S1, S2 and S3 are false
Q6.
Consider the following statements:
S1: The LRU page replacement algorithm suffers from Belady's anomaly.
S2: Shortest-remaining-time-first scheduling may cause starvation.
S3: The stack is shared by all threads in a process.
S1: The LRU page replacement algorithm suffers from Belady's anomaly.
S2: Shortest-remaining-time-first scheduling may cause starvation.
S3: The stack is shared by all threads in a process.
- (A) S1, S2 and S3 are true
- (B) S1, S3 are false and S2 is true
- (C) S1, S2 are false and S3 is true
- (D) S1, S2 and S3 are false
Q7.
The main function of the microkernel is to provide a communication facility between the ________ program and the various ________ that are also running in user space.
- (A) Virtual, processes
- (B) System, processes
- (C) Client, services
- (D) Virtual, services
Q8.
Match List I with List II:
List I: (A) IPC (B) Demand Paging (C) Banker's Algorithm (D) PCB
List II: (I) Resource Allocation (II) Computational speedup (III) Task Control Block (IV) Virtual Memory
Choose the correct match from A-D to I-IV.
List I: (A) IPC (B) Demand Paging (C) Banker's Algorithm (D) PCB
List II: (I) Resource Allocation (II) Computational speedup (III) Task Control Block (IV) Virtual Memory
Choose the correct match from A-D to I-IV.
- (A) A-(II), B-(I), C-(IV), D-(III)
- (B) A-(II), B-(IV), C-(I), D-(III)
- (C) A-(I), B-(II), C-(III), D-(IV)
- (D) A-(II), B-(III), C-(I), D-(IV)
Q9.
Select the correct order of events after power is applied to a system:
(A) Bootstrap loader is loaded from the disk.
(B) Kernel is loaded into memory.
(C) Firmware ROM loads the boot block.
(A) Bootstrap loader is loaded from the disk.
(B) Kernel is loaded into memory.
(C) Firmware ROM loads the boot block.
- (A) B, C, A
- (B) C, A, B
- (C) A, B, C
- (D) A, C, B
Q10.
Match List I with List II:
List I: (A) Stack algorithm (B) Elevator algorithm (C) Priority scheduling algorithm (D) Havender's algorithm
List II: (I) Deadlock (II) Disk scheduling (III) Page replacement (IV) CPU scheduling
Choose the correct match from A-D to I-IV.
List I: (A) Stack algorithm (B) Elevator algorithm (C) Priority scheduling algorithm (D) Havender's algorithm
List II: (I) Deadlock (II) Disk scheduling (III) Page replacement (IV) CPU scheduling
Choose the correct match from A-D to I-IV.
- (A) A-(III), B-(II), C-(IV), D-(I)
- (B) A-(II), B-(III), C-(IV), D-(I)
- (C) A-(III), B-(II), C-(I), D-(IV)
- (D) A-(II), B-(III), C-(I), D-(IV)
Q11.
Match List I with List II.
List I: (A) Least frequently used (B) Critical section (C) Loosely coupled multiprocessor system (D) Distributed operating system organization
List II: (I) Memory is distributed among the processors (II) Page replacement policy in cache memory (III) Program section that one process must completely execute before another process can access the same shared resource (IV) O/S routines are distributed among the available processors
Choose the correct answer from the options given below.
List I: (A) Least frequently used (B) Critical section (C) Loosely coupled multiprocessor system (D) Distributed operating system organization
List II: (I) Memory is distributed among the processors (II) Page replacement policy in cache memory (III) Program section that one process must completely execute before another process can access the same shared resource (IV) O/S routines are distributed among the available processors
Choose the correct answer from the options given below.
- (A) (A)-(III), (B)-(II), (C)-(IV), (D)-(I)
- (B) (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
- (C) (A)-(II), (B)-(III), (C)-(I), (D)-(IV)
- (D) (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
Q12.
Match List I with List II.
List I: (A) Firmware (B) Batch file (C) Packing (D) Banker's algorithm
List II: (I) Number of logical records packed into a physical block (II) File kept in ASCII format (III) Resource allocation (deadlock-avoidance) technique (IV) Program/data permanently stored in ROM
Choose the correct answer from the options given below.
List I: (A) Firmware (B) Batch file (C) Packing (D) Banker's algorithm
List II: (I) Number of logical records packed into a physical block (II) File kept in ASCII format (III) Resource allocation (deadlock-avoidance) technique (IV) Program/data permanently stored in ROM
Choose the correct answer from the options given below.
- (A) (A)-(II), (B)-(I), (C)-(IV), (D)-(III)
- (B) (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
- (C) (A)-(IV), (B)-(II), (C)-(I), (D)-(III)
- (D) (A)-(IV), (B)-(I), (C)-(II), (D)-(III)
Q13.
Match List I with List II.
List I (system call): (A) fork() (B) exec() (C) kill() (D) exit()
List II (description): (I) Sends a signal from one process to another process (II) Indicates termination of the current process (III) Loads the specified program into memory (IV) Creates a child process
Choose the correct answer from the options given below.
List I (system call): (A) fork() (B) exec() (C) kill() (D) exit()
List II (description): (I) Sends a signal from one process to another process (II) Indicates termination of the current process (III) Loads the specified program into memory (IV) Creates a child process
Choose the correct answer from the options given below.
- (A) (A)-(II), (B)-(III), (C)-(IV), (D)-(I)
- (B) (A)-(IV), (B)-(I), (C)-(II), (D)-(III)
- (C) (A)-(IV), (B)-(III), (C)-(I), (D)-(II)
- (D) (A)-(IV), (B)-(III), (C)-(II), (D)-(I)
Q14.
Which of the following cloud computing concept(s) is/are related to the pooling and sharing of resources?
(A) Virtual Memory
(B) Service
(C) Virtualization
(A) Virtual Memory
(B) Service
(C) Virtualization
- (A) (C) only
- (B) (A) and (B) only
- (C) (A) only
- (D) (B) only
Q15.
Which of the following routing technique(s) is/are used in distributed systems?
(A) Fixed Routing
(B) Virtual Routing
(C) Dynamic Routing
(A) Fixed Routing
(B) Virtual Routing
(C) Dynamic Routing
- (A) (A) only
- (B) (A) and (B) only
- (C) (C) only
- (D) All of (A), (B) and (C)
Q16.
Match the following WINDOWS system calls with the equivalent UNIX system calls, with reference to process control and file manipulation:
Windows: (A) CreateProcess() (B) WaitForSingleObject() (C) CreateFile() (D) CloseHandle()
UNIX: (I) open() (II) close() (III) fork() (IV) wait()
Windows: (A) CreateProcess() (B) WaitForSingleObject() (C) CreateFile() (D) CloseHandle()
UNIX: (I) open() (II) close() (III) fork() (IV) wait()
- (A) A-III, B-IV, C-I, D-II
- (B) A-IV, B-III, C-I, D-II
- (C) A-IV, B-III, C-II, D-I
- (D) A-III, B-IV, C-II, D-I
Q17.
Which statement is not correct about the 'init' process in UNIX?
- (A) It is generally the parent of the login shell.
- (B) It has PID 1.
- (C) It is the first process in the system.
- (D) Init forks and execs a 'getty' process at every port connected to a terminal.
Q18.
Which UNIX command correctly changes the case of only the first three lines of the file "shortlist" from lower case to upper case?
- (A) $ tr '[a-z]' '[A-Z]' shortlist | head -3
- (B) $ head -3 shortlist | tr '[a-z]' '[A-Z]'
- (C) $ tr head -3 shortlist '[A-Z]' '[a-z]'
- (D) $ tr shortlist head -3 '[a-z]' '[A-Z]'
Q19.
Match the following basic vi editor commands in UNIX with their functions.
List I (Command): (a) dd (b) yy (c) p (d) u
List II (Function): (i) Copies (yanks) the current line into the buffer (ii) Undoes the last change made to the file (iii) Deletes the current line (iv) Pastes the buffer's contents after the cursor
Choose the correct match from the options given below.
List I (Command): (a) dd (b) yy (c) p (d) u
List II (Function): (i) Copies (yanks) the current line into the buffer (ii) Undoes the last change made to the file (iii) Deletes the current line (iv) Pastes the buffer's contents after the cursor
Choose the correct match from the options given below.
- (A) (a)-(i), (b)-(iii), (c)-(ii), (d)-(iv)
- (B) (a)-(iv), (b)-(ii), (c)-(iii), (d)-(i)
- (C) (a)-(ii), (b)-(iv), (c)-(i), (d)-(iii)
- (D) (a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)
Q20.
Consider the following statements about linker software: (I) A linker combines multiple object (relocatable) modules into a single load module. (II) A linker replaces absolute references in a program with symbolic references. Which of the above statement(s) is/are correct?
- (A) Only I
- (B) Only II
- (C) Both I and II
- (D) Neither I nor II
Q21.
A distributed operating system typically consists of:
- (A) Loosely coupled O.S. software on loosely coupled hardware
- (B) Loosely coupled O.S. software on tightly coupled hardware
- (C) Tightly coupled O.S. software on loosely coupled hardware
- (D) Tightly coupled O.S. software on tightly coupled hardware
Q22.
Which of the following statements about UNIX signals is NOT correct?
- (A) The INT signal is sent by the terminal driver when one types the interrupt character (e.g. Ctrl-C), requesting termination of the current operation.
- (B) TERM is a request to terminate execution completely; the receiving process cleans up its state and exits.
- (C) QUIT is similar to TERM, except that it defaults to producing a core dump if not caught.
- (D) KILL is a blockable signal.
Q23.
A null remote procedure call (RPC) (carrying 0 data bytes) takes 1.0 msec, with an additional 1.5 msec for every 1K of data carried. How long does it take to read 32K from a file server, issued as 32 separate 1K RPCs?
- (A) 49 msec
- (B) 80 msec
- (C) 48 msec
- (D) 100 msec
Q24.
What is the function of the following UNIX command?
wc -l a > b &- (A) It runs the word-count program to count the number of lines in its input, file a, writing the result to file b, as a foreground process.
- (B) It runs the word-count program to count the number of lines in its input, file a, writing the result to file b, but does it as a background process.
- (C) It counts the errors during the execution of a process, a, and puts the result in process b.
- (D) It copies a number of lines of a program from file a and stores them in file b.
Q25.
Which of the following statements about the cron daemon in a UNIX operating system is NOT correct?
- (A) cron is the standard tool for running commands on a predetermined schedule.
- (B) It starts when the system boots and keeps running as long as the system stays up.
- (C) cron reads configuration files (crontabs) that list command lines together with the times at which they should be invoked.
- (D) Crontabs for individual users are not stored.
Q26.
In UNIX, which single command creates the directory "PIS" together with its two subdirectories "progs" and "data" (i.e. PIS/progs and PIS/data), all newly created in one invocation?
- (A) mkdir PIS/progs PIS/data PIS
- (B) mkdir PIS progs data
- (C) mkdir PIS PIS/progs PIS/data
- (D) mkdir PIS/progs data