Aspire Faculty ID #18773 · Topic: UGC NET Computer Science Sep 2022 (Paper II) · Just now
UGC NET Computer Science Sep 2022 (Paper II)

For the following page reference string $4,3,2,1,4,3,5,4,3,2,1,5$, the number of page faults that occur in the least Recently Used $(LRU)$ page replacement algorithm with frame size $3$ is:

Solution

Given page reference string is:

$4,3,2,1,4,3,5,4,3,2,1,5$

Frame size $=3$

Using LRU page replacement, the least recently used page is replaced when a page fault occurs.

Now process each page:

$4$ gives page fault.

Frames: $4$

Total faults $=1$

$3$ gives page fault.

Frames: $4,3$

Total faults $=2$

$2$ gives page fault.

Frames: $4,3,2$

Total faults $=3$

$1$ gives page fault. Replace least recently used page $4$.

Frames: $1,3,2$

Total faults $=4$

$4$ gives page fault. Replace least recently used page $3$.

Frames: $1,4,2$

Total faults $=5$

$3$ gives page fault. Replace least recently used page $2$.

Frames: $1,4,3$

Total faults $=6$

$5$ gives page fault. Replace least recently used page $1$.

Frames: $5,4,3$

Total faults $=7$

$4$ is already present.

Frames: $5,4,3$

Total faults $=7$

$3$ is already present.

Frames: $5,4,3$

Total faults $=7$

$2$ gives page fault. Replace least recently used page $5$.

Frames: $2,4,3$

Total faults $=8$

$1$ gives page fault. Replace least recently used page $4$.

Frames: $2,1,3$

Total faults $=9$

$5$ gives page fault. Replace least recently used page $3$.

Frames: $2,1,5$

Total faults $=10$

Therefore, number of page faults $=10$.

Previous 10 Questions — UGC NET Computer Science Sep 2022 (Paper II)

Nearest first
1
A trigger is
Topic: UGC NET Computer Science Sep 2022 (Paper II)
2
Let $R(ABCDEFGH)$ be a relation schema and $F$ be the set of dependencies$F=\{A\to B,\ ABCD\to E,\ EF\to G,\ EF\to H,\ …
Topic: UGC NET Computer Science Sep 2022 (Paper II)
3
Consider the following two lists:List IList II(A) Stack overflow(I) Software Interrupt(B) Timer(II) Internal interrupt(…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
4
How many rotations are required during the construction of an AVL tree if the following elements are to be added in the…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
5
Consider the traversal of a treePreorder $\to ABCEIFJDGHKL$Inorder $\to EICFJBGDKHLA$Which of the following is correct …
Topic: UGC NET Computer Science Sep 2022 (Paper II)
6
Consider the hash table of size $11$ that uses open addressing with linear probing. Let $h(k)=k\mod 11$ be the hash fun…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
7
Which of the following algorithm design approach is used in Quick sort algorithm?
Topic: UGC NET Computer Science Sep 2022 (Paper II)
8
Consider a B-tree of height $h$ minimum degree $t\ge 2$ that contains any $n$-key, where $n\ge 1$. Which of the followi…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
9
The number of nodes of height $h$ in any $n$-element heap is atmost:
Topic: UGC NET Computer Science Sep 2022 (Paper II)
10
The solution of the recurrence relation $T(n)=3T\left(\frac{n}{4}\right)+n\log n$ is
Topic: UGC NET Computer Science Sep 2022 (Paper II)

Next 10 Questions — UGC NET Computer Science Sep 2022 (Paper II)

Ascending by ID
1
A magnetic tape drive has a transport speed of $200$ inches per second and a recording density of $1600$ bytes per inch…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
2
Consider two lists A and B of three strings on $\{0,1\}$X:List AList B11111011110100Y:List AList B1010101111101011Which…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
3
Consider the properties of recursively enumerable sets:(A) Finiteness(B) Context Freedom(C) EmptinessWhich of the follo…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
4
Consider the following : List IList II(A) Activation record(I) Linker Loader(B) Location counter(II) Garbage Collection…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
5
 Consider the following related to Fourth Generation Technique $(4GT)$:(A) It controls efforts.(B) It controls res…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
6
Consider the grammar $S\to SbS\mid a$.Consider the following statements:The string $abababa$ has(A) two parse trees(B) …
Topic: UGC NET Computer Science Sep 2022 (Paper II)
7
In a game playing search tree, upto which depth $\alpha-\beta$ pruning can be applied?(A) Root $(0)$ level(B) $6$ level…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
8
Consider $\alpha,\beta,\gamma$ as logical variables. Identify which of the following represents correct logical equival…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
9
Let $(\{a,b\},*)$ be a semigroup, where $a*a=b$.(A) $a*b=b*a$(B) $b*b=b$Choose the most appropriate answer from the opt…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
10
For the graph; the following sequences of depth first search $(DFS)$ are given(A) $abcghf$(B) $abfchg$(C) $abfhgc$(D) $…
Topic: UGC NET Computer Science Sep 2022 (Paper II)
Ask Your Question or Put Your Review.

loading...