Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by Bikram
2
votes
521
Test by Bikram | Operating Systems | Test 2 | Question: 30
Consider the following 3 processes with 3 binary semaphores with initial values $S_{0}=0, S_{1}=0, S_{2}=1$ ... $3$ processes? $211$ $200$ $210$ $201$
Consider the following 3 processes with 3 binary semaphores with initial values $S_{0}=0, S_{1}=0, S_{2}=1$$$ \begin{array}{|c|c|c|} \hline \textbf{P} & \textbf{Q} & \tex...
281
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
13
votes
522
Test by Bikram | Operating Systems | Test 2 | Question: 28
Consider a program to be run on a computer system in round-robin CPU scheduling. The size of the program is $100K$. It is given that the hard disk has a transfer rate of $1$ megabyte per second. Assume that there are no head seeks ... acceptable time quantum for effective CPU utilization ? $2.048$ sec $0.216$ sec $0.108$ sec $0.100$ sec
Consider a program to be run on a computer system in round-robin CPU scheduling. The size of the program is $100K$. It is given that the hard disk has a transfer rate of ...
854
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
1
votes
523
Test by Bikram | Operating Systems | Test 2 | Question: 27
A counting semaphore is initialized to $10$. The $6$ P(wait) operations and $4$ V(signal) operations were completed in this semaphore. The resulting value of semaphore is: $0$ $8$ $10$ $12$
A counting semaphore is initialized to $10$. The $6$ P(wait) operations and $4$ V(signal) operations were completed in this semaphore. The resulting value of semaphore is...
215
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
2
votes
524
Test by Bikram | Operating Systems | Test 2 | Question: 26
Consider a paging system with the page table in memory. Each memory reference takes $200$ ns. The TLB has hit ratio of $75 \%$ and the time to look for pages in TLB is almost negligible. What is the effective paged memory reference time in ns? $400$ $250$ $150$ $200$
Consider a paging system with the page table in memory. Each memory reference takes $200$ ns. The TLB has hit ratio of $75 \%$ and the time to look for pages in TLB is al...
368
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
3
votes
525
Test by Bikram | Operating Systems | Test 2 | Question: 25
What will be the output of the following piece of code? Void foo() { int i=1; fork(); i++; printf( %d ,i); fork(); i++; printf( %d ,i); fork(); i++; printf( %d ,i); } $2 \ 2 \ 3 \ 3 \ 3 \ 3 \ 4 \ 4 \ 4 \ 4 \ 4 \ 4 \ 4 \ 4$ ... $2 \ 3 \ 4 \ 2 \ 3 \ 4 \ 4 \ 3 \ 4 \ 4 \ 4 \ 3 \ 4 \ 4$ All of above three options are correct
What will be the output of the following piece of code?Void foo() { int i=1; fork(); i++; printf(“%d”,i); fork(); i++; printf(“%d”,i); fork(); i++; printf(“%d�...
647
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
2
votes
526
Test by Bikram | Operating Systems | Test 2 | Question: 23
A moving arm disk-storage device has the following specifications. Number of tracks per recording surface - $200$ Disk - rotation speed - $2400$ rpm Track storage capacity - $62$, $500$ bits When sector control information ... Bytes and data area is formatted to $256$ bytes the average number of sectors possible in each track is __________
A moving arm disk-storage device has the following specifications. Number of tracks per recording surface – $200$ Disk – rotation speed – $2400$ rpm Track storage c...
547
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
2
votes
527
Test by Bikram | Operating Systems | Test 2 | Question: 22
A uniprocessor system has two resources of type A and B shared by four processes. There are $4$ units of each resource type available after allocation. Let current indicate the resources allocated to each process and Need indicate the remaining number ... $P1$ $P0$ $P3$ No safe sequence exists
A uniprocessor system has two resources of type A and B shared by four processes. There are $4$ units of each resource type available after allocation. Let “current” ...
518
views
answered
Dec 26, 2016
Operating System
tbb-os-2
deadlock-prevention-avoidance-detection
+
–
0
votes
528
Test by Bikram | Operating Systems | Test 2 | Question: 21
Suppose the disk drive has $200$ cylinders ( numbered $0$ to $199$). The drive is currently serving the request at cylinder $53$. The previous request was at cylinder $25$ ... Starting from the current head position. The total distance traveled by the disk arm in SCAN scheme _______
Suppose the disk drive has $200$ cylinders ( numbered $0$ to $199$). The drive is currently serving the request at cylinder $53$. The previous request was at cylinder $2...
558
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
6
votes
529
Test by Bikram | Operating Systems | Test 2 | Question: 20
Consider a demand-paging system with the following time-measured utilization: ... ? Increase the degree of multiprogramming Add pre paging to the page fetch algorithms Increase the page size none of the above
Consider a demand-paging system with the following time-measured utilization:$\begin{array}{ll} \text{COU Utilization} & 20 \% \\ \text{Paging disk} & 97.7 \% \\ \text{Ot...
608
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
7
votes
530
Test by Bikram | Operating Systems | Test 2 | Question: 19
Assume we have a demand-paged memory. The page table is held in registers. It takes $8$ milliseconds to service a page fault if an empty page is available or the replaced page is not modified, and $20$ milliseconds if the ... The maximum acceptable page-fault rate for an effective access time of no more than $200$ ns is __________ $\%$
Assume we have a demand-paged memory. The page table is held in registers. It takes $8$ milliseconds to service a page fault if an empty page is available or the replaced...
843
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
0
votes
531
Test by Bikram | Operating Systems | Test 2 | Question: 17
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: $560,\ 540, \ 430, \ 390, \ 350, \ 450, \ 102, \ 198, \ 754, \ 785$. The page fault rate is _______
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 r...
861
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
0
votes
532
Test by Bikram | Operating Systems | Test 2 | Question: 16
Which of the following statements are not true? All unsafe states are deadlocks A deadlock state is unsafe state A system is in safe state only if there exists a safe sequence A state is said to be safe if the system can allocate resources to few processes even if ... ; $4$ only $1$ & $4$ only $2$ & $3$ only $1$, $3$ & $4$ only
Which of the following statements are not true?All unsafe states are deadlocksA deadlock state is unsafe stateA system is in safe state only if there exists a safe sequen...
573
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
1
votes
533
Test by Bikram | Operating Systems | Test 2 | Question: 15
There are $5$ processes which require resource instances of same type in quantities $23, \ 35, \ 12, \ 43, \ 15$ respectively. The minimum number of resource instances required for preventing deadlock is _______
There are $5$ processes which require resource instances of same type in quantities $23, \ 35, \ 12, \ 43, \ 15$ respectively. The minimum number of resource instances re...
565
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
2
votes
534
Test by Bikram | Operating Systems | Test 2 | Question: 14
Consider the $2$ - process solution to the Critical Section problem (here i refers to the current process and j is the other process ) Process Pi repeat flag[i] = true; while ( flag[j] ) do ... and Bounded waiting are satisfied Only mutual exclusion is satisfied Mutual exclusion is violated Mutual exclusion and progress requirements are met
Consider the $2$ – process solution to the Critical Section problem (here i refers to the current process and j is the other process )Process Pirepeat flag[i] = true; w...
933
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
0
votes
535
Test by Bikram | Operating Systems | Test 2 | Question: 13
The virtual memory system uses the demand paging for its implementation. The probability of getting page faults is $0.25$, the normal memory access time is $200$ nanoseconds. If it takes $2$ millseconds to service a page fault, then what is effective memory access time? $500000$ ns $500075$ ns $500150$ ns $500250$ ns
The virtual memory system uses the demand paging for its implementation. The probability of getting page faults is $0.25$, the normal memory access time is $200$ nanoseco...
582
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
1
votes
536
Test by Bikram | Operating Systems | Test 2 | Question: 12
A certain computer provides its users with a virtual-memory space of $2^{32}$ bytes. The computer has $2^{18}$ bytes of physical memory. The virtual memory is implemented by paging, and the page size is $4,096$ bytes or $4K$ bytes. A user process ... $0001 \ 0001 \ 0001 \ 0010 \ 0011$ $0010 \ 0011 \ 0100 \ 0101 \ 0110$ $0100 \ 0101 \ 0110$
A certain computer provides its users with a virtual-memory space of $2^{32}$ bytes. The computer has $2^{18}$ bytes of physical memory. The virtual memory is implemented...
892
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
2
votes
537
Test by Bikram | Operating Systems | Test 2 | Question: 11
Suppose that a disk drive has $5000$ cylinders, numbered $0$ to $4999$. The drive is currently serving a request at cylinder $143$, and the previous request was at cylinder $125$ ... $7081, \ 1745, \ 7081$ $1745, \ 1004, \ 9600$ $9769, \ 1745, \ 7081$
Suppose that a disk drive has $5000$ cylinders, numbered $0$ to $4999$. The drive is currently serving a request at cylinder $143$, and the previous request was at cylind...
750
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
5
votes
538
Test by Bikram | Operating Systems | Test 2 | Question: 10
Consider a logical address space of eight pages of $1024$ words each mapped onto a physical memory of $32$ frames. The number of bits are there in the logical address is _______
Consider a logical address space of eight pages of $1024$ words each mapped onto a physical memory of $32$ frames. The number of bits are there in the logical address is ...
387
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
2
votes
539
Test by Bikram | Operating Systems | Test 2 | Question: 9
Assume that pages are $128$ words in size. Consider below code snippet whose function is to initialize to $0$ each element of a $128$ - by - $128$ array. Then number of page faults generated by the following Code snippet is: Assume the array is stored row major ... j++) for( int i=0; i<128; i++) A[i][j] = 0; $128$ $16384$ $0$ $16378$
Assume that pages are $128$ words in size. Consider below code snippet whose function is to initialize to $0$ each element of a $128$ – by – $128$ array. Then number ...
722
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
2
votes
540
Test by Bikram | Operating Systems | Test 2 | Question: 8
The arrival time, burst time and priorities of five processes are given as: ... For the priority scheduling algorithm the average response time is ________ minutes . Ignore the context switching overhead.
The arrival time, burst time and priorities of five processes are given as:$\begin{array}{|c|c|c|c|} \hline \text{Process} & \text{Arrival Time} & \text{Burst time} & \te...
418
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
1
votes
541
Test by Bikram | Operating Systems | Test 2 | Question: 7
A computer system has $6$ tape drives with n process competing for them. Each process may need up-to $2$ tape drives. The maximum value of n from which the system is guaranteed to be deadlock free is: $2$ $3$ $4$ $1$
A computer system has $6$ tape drives with n process competing for them. Each process may need up-to $2$ tape drives. The maximum value of n from which the system is guar...
661
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
8
votes
542
Test by Bikram | Operating Systems | Test 2 | Question: 5
Let us initialize counting semaphore $X$ to $5$. Assume that processes $P_i$ where $i= 1$ to $15$ are coded as follows. while (1) { P (x); { critical section } V (x); } and suppose that $P_{16}$ is coded as follows: ... { critical section } P (x); } The number of processes can be in the critical section at most at any point of time is ______
Let us initialize counting semaphore $X$ to $5$. Assume that processes $P_i$ where $i= 1$ to $15$ are coded as follows.while (1) { P (x); { critical section } V (x); }an...
770
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
process-synchronization
+
–
3
votes
543
Test by Bikram | Operating Systems | Test 2 | Question: 4
Consider a situation, in which several people are executing copies of a mail program. Which of the following statements is/are not correct: All the users share one program counter and stack for mail program. All the users share the ... the users share same text section, but data section varies necessarily. I and II only I only II only III
Consider a situation, in which several people are executing copies of a mail program. Which of the following statements is/are not correct:All the users share one program...
1.0k
views
answered
Dec 26, 2016
Operating System
tbb-os-2
+
–
1
votes
544
Test by Bikram | Operating Systems | Test 2 | Question: 2
Consider an operating system containing $n$ processes each requiring $4$ resources. The maximum number of processes that can be executed without any deadlock if there are $21$ resources is available ______
Consider an operating system containing $n$ processes each requiring $4$ resources. The maximum number of processes that can be executed without any deadlock if there are...
423
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
1
votes
545
Test by Bikram | Operating Systems | Test 2 | Question: 1
Assume that a certain process executes the following code segment. for (i =0, i <=8, i++ ) fork() ; The number of new processes created is _______
Assume that a certain process executes the following code segment.for (i =0, i <=8, i++ ) fork() ;The number of new processes created is _______
530
views
answered
Dec 26, 2016
Operating System
tbb-os-2
numerical-answers
+
–
2
votes
546
ACE test series
I am getting 676
I am getting 676
458
views
answered
Dec 23, 2016
2
votes
547
Test by Bikram | Compiler Design | Test 1 | Question: 30
Consider the following grammar: $S \rightarrow L = P \mid P$ $L \rightarrow ^*P \mid id$ $P \rightarrow L$ The above grammar is: Ambiguous SLR(1) LALR(1) None of the above
Consider the following grammar:$S \rightarrow L = P \mid P$$L \rightarrow ^*P \mid id$$P \rightarrow L$The above grammar is:AmbiguousSLR(1)LALR(1)None of the above
694
views
answered
Dec 22, 2016
Compiler Design
tbb-cd-1
compiler-design
grammar
+
–
3
votes
548
Test by Bikram | Computer Networks | Test 1 | Question: 18
Number of subnets can be formed by using the subnet mask $255.255.248.0$ in a class B network _________
Number of subnets can be formed by using the subnet mask $255.255.248.0$ in a class B network _________
405
views
answered
Dec 21, 2016
Computer Networks
tbb-cn-1
numerical-answers
+
–
2
votes
549
ACE test series
I am getting 676
I am getting 676
458
views
answered
Dec 21, 2016
5
votes
550
Test by Bikram | Compiler Design | Test 1 | Question: 28
Consider the following syntax directed definition of any desk calculator: $L \rightarrow En \{ \text{print}(E.val) \}$ $E \rightarrow E1 + 1 \{ E.val = E1.val + Z.val \}$ $E \rightarrow Z E \cdot val = Z \cdot val$ ... $7 ^* 4 + 2n$? $9$ $6$ $10$ $11$
Consider the following syntax directed definition of any desk calculator:$L \rightarrow En \{ \text{print}(E.val) \}$$E \rightarrow E1 + 1 \{ E.val = E1.val + Z.val \}$$E...
805
views
answered
Dec 21, 2016
Compiler Design
tbb-cd-1
compiler-design
syntax-directed-translation
+
–
Page:
« prev
1
...
13
14
15
16
17
18
19
20
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register