Self Studies

Operating Syste...

TIME LEFT -
  • Question 1
    2 / -0.33

    The process executes the code where i is an integer:

    for(i = 0; i <=15; i++)

    {

    if(i == 5)

    continue;

    fork();

    if(i == 10)

    break;

    }

    The total number of new processes created is _____.

  • Question 2
    2 / -0.33

    Consider a system has hit ratio as h%. Average access time to service a page fault is s milliseconds and average effective memory access time is e in milliseconds. What is the memory access time in microseconds (m is considered with service time)?

  • Question 3
    2 / -0.33

    Which of the following is/are true of the auto-increment addressing mode?

    I. It is useful in creating self-relocating code

    II. If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation

    III. The amount of increment depends on the size of the data item accessed

  • Question 4
    2 / -0.33

    Consider a hypothetical processor with an instruction of type, which during execution reads a 32-bit word from memory and stores it in a 32-bit register. The effective address of the memory location is obtained by the addition of a constant 20 and the contents of register.

    Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory?

  • Question 5
    2 / -0.33

    Which of the following statements are true?

    (a) External Fragmentation exists when there is enough total memory space to satisfy a

    request but the available space is contiguous.

    (b) Memory Fragmentation can be internal as well as external.

    (c) One solution to external Fragmentation is compaction.

  • Question 6
    2 / -0.33

    Which of the following statement is not true about round – robin scheduling?

  • Question 7
    2 / -0.33

    Which of the following statement is correct about cascading termination of a child process?

  • Question 8
    2 / -0.33

    Given the Burst Time (BT) of 4 processes P1, P2, P3, and P4 as BT(t1, t2, t3, t4) – (4, 8, 6, 7), smoothening factor(α) – 0.5, and T1 = 10, what will be the burst time of process P5 for shortest Job first scheduling, using the technique of exponential averaging?

  • Question 9
    2 / -0.33

    The probability that a process spends its time in performing I/O operations is 50%. In a multi programmed operating system environment, if there are 4 processes in memory at once, then the probability that all processes are waiting for I/O and the system utilization are respectively

  • Question 10
    2 / -0.33

    Consider the C struct defined below:

    The base address of student is available in register R1. The field student.grade can be accessed efficiently using

  • Question 11
    2 / -0.33

    Mutual exclusion problem occurs

  • Question 12
    2 / -0.33

    Consider a system having 20 resources of same type. These resources are shared by 4 process which have peak demands of 4, 5, x, y respectively. What is the maximum value of x + y to ensure that there will be no deadlock in the system?

  • Question 13
    2 / -0.33

    Consider the following scenario: A, B, C, D are processes and X, Y are resources used by the processes.

    Process has-X has-Y max-needs-X max-needs-Y
    A 35 10 65 40
    B 55 80 105 220
    C 35 20 110 50
    D 0 70 50 90

    If Resources available: [X: 40 Y: 40] then what will be a safe sequence so that the processes complete execution without deadlock?

  • Question 14
    2 / -0.33

    Consider a shared variable with initial value 10, this shared variable is used by four concurrent processes A, B, C and D. Process A reads the shared variable and decrements it by two and process B reads the shared variable and increment it by three before writing it to the memory. Process C reads the shared variable and decrement it by three while process D reads the shared variable and increment it by two before writing it to the memory. All the process before reading the value performs the wait operation on a counting semaphore variable S and after writing it to the memory, a signal operation is performed before the processes get terminated. Find the minimum possible value of the shared variable in the memory if S is 2?

  • Question 15
    2 / -0.33

    For the daisy chain scheme of connecting I/O devices, which of the following statements is true?

  • Question 16
    2 / -0.33

    Consider six memory partitions of size 250KB, 470KB, 600 KB, 500 KB, 300KB, and 410 KB where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 350 KB, 200 KB , 468 KB and 480 KB in that order. Which partitions are not allotted to any process when we use best fit and worst fit algorithm?

  • Question 17
    2 / -0.33

    A demand - paging uses a TLB (Translation Look - aside Buffer) and single level page table stored in main memory. The memory access time is 5 μs and the page fault service time is 25 ms. If 70% of access is in TLB with no page fault and of the remaining, 20% is not present in main memory. The effective memory access time in ms is _________. (Write answer up to two decimal places)

  • Question 18
    2 / -0.33

    Which of the following is/are TRUE about user-level threads and kernel-level threads?

  • Question 19
    2 / -0.33

    A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 50 distinct pages in some order and then accesses the same 50 pages in reverse order. How many page faults will occur?

  • Question 20
    2 / -0.33

    Consider the three processes P1, P2 and P3 shown below with their arrival time and burst time.

    Which of the following statement is correct for this process table.

    Processes

    Arrival time

    Burst time

    P1

    0

    5

    P2

    1

    7

    P3

    2

    4

     

    NOTE:

    Time Quantum 2 units for Round robin

  • Question 21
    2 / -0.33

    Consider a Unix node which maintains 16 direct blocks pointer, 2 single indirect, 4 double indirect and 8 triple indirect block pointers. Disk block size if 8 KB and disk address is 32 bits. The maximum possible size of file is ____ TB (up to 1 decimal places).

  • Question 22
    2 / -0.33

    The address sequence generated by tracing a particular program executing in a pure demand paging system with 100 records per page, with 1 free main memory frame is recorded as follows. What is the number of Page Faults?

    0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370

  • Question 23
    2 / -0.33

    A system has n resources R0,...., R 12, and k processes P0,...Pk-1.The implementation of the resource request logic of each process Pis as follows:

    if (i%2 == 0)

    {

    if (i < n) request Ri

    if (i+2 < n) request Ri+2

    }

    else

    {

    if(i < n) request Rn - i

    if (i+2 < n) request Rn-i-2

    }

    Maximum number of the process so deadlock is possible ______

  • Question 24
    2 / -0.33

    The correct matching for the following pairs is:

    (A) DMA I/O (1) High speed RAM

    (B) Cache (2) Disk

    (C) Interrupt I/O (3) Printer

    (D) Condition Code Register (4) ALU

  • Question 25
    2 / -0.33

    Which of the following control signals has separate destinations?

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 25

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
Submit Test
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now