Aspire Faculty ID #18927 · Topic: UGC NET Computer Science Nov 2020 (Paper II) · Just now
UGC NET Computer Science Nov 2020 (Paper II)

Suppose you have a Linux file system where the block size is $2K$ bytes, a disk address is $32$ bits, and an i-node contains the disk addresses of the first $12$ direct blocks of file, a single indirect block, and a double indirect block. Approximately, what is the largest file that can be represented by an i-node?

Solution

Block size $=2K=2048$ bytes

Disk address size $=32$ bits $=4$ bytes

Number of addresses in one block:

$\frac{2048}{4}=512$

Direct blocks $=12$

Single indirect blocks $=512$

Double indirect blocks:

$512\times512=262144$

Total data blocks:

$12+512+262144=262668$

Total file size:

$262668\times2048=537944064$ bytes

In MB:

$\frac{537944064}{1024\times1024}\approx513$ MB

Previous 10 Questions — UGC NET Computer Science Nov 2020 (Paper II)

Nearest first
1
Consider a disk system having $60$ cylinders. Disk requests are received for cylinders $10,22,20,2,40,6,38$ in that ord…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
2
 Consider a hypothetical machine with $3$ pages of physical memory, $5$ pages of virtual memory, and$\langle A,B,C…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
3
Consider a relational schema$S=(U,V,W,X,Y,Z)$on which the following functional dependencies hold:$\{U\to V,\ VW\to X,\ …
Topic: UGC NET Computer Science Nov 2020 (Paper II)
4
The data node and name node in HADOOP are
Topic: UGC NET Computer Science Nov 2020 (Paper II)
5
Consider the following recursive Java function $f$ that takes two long arguments and returns a float value:public stati…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
6
Suppose you are compiling on a machine with $1$-byte chars, $2$-byte shorts, $4$-byte ints, and $8$-byte doubles, and w…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
7
In HTML, $<map>$ tag is used for
Topic: UGC NET Computer Science Nov 2020 (Paper II)
8
Consider the following pseudo-code fragment, where $a$ and $b$ are integer variables that have been initialized:Pre-con…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
9
What is the radix of the numbers if the solution to the quadratic equation $x^2-10x+26=0$ is $x=4$ and $x=7$?
Topic: UGC NET Computer Science Nov 2020 (Paper II)
10
A non-pipeline system takes $50\ ns$ to process a task. The same task can be processed in six-segment pipeline with a c…
Topic: UGC NET Computer Science Nov 2020 (Paper II)

Next 10 Questions — UGC NET Computer Science Nov 2020 (Paper II)

Ascending by ID
1
Consider a single-level page table system, with the page table stored in the memory. If the hit rate to TLB is $80\%$, …
Topic: UGC NET Computer Science Nov 2020 (Paper II)
2
Which of the following UML diagrams has a static view?
Topic: UGC NET Computer Science Nov 2020 (Paper II)
3
Modifying the software by restructuring is called
Topic: UGC NET Computer Science Nov 2020 (Paper II)
4
A company has a choice of two languages $L_1$ and $L_2$ to develop a software for their client. Number of LOC required …
Topic: UGC NET Computer Science Nov 2020 (Paper II)
5
A Software project was estimated at 864 Function Points. A six person team will be assigned to project consisting of a …
Topic: UGC NET Computer Science Nov 2020 (Paper II)
6
A complete n-ary tree is a tree in which each node has n children or no children. Let I be the number of internal nodes…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
7
In a binary max heap containing n numbers, the smallest element can be found in ____ time.
Topic: UGC NET Computer Science Nov 2020 (Paper II)
8
If algorithm A and another algorithm B take $\log_2(n)$ and $\sqrt n$ microseconds, respectively, to solve a problem, t…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
9
Let G be a directed graph whose vertex set is the set of numbers from 1 to 100. There is an edge from a vertex i to a v…
Topic: UGC NET Computer Science Nov 2020 (Paper II)
10
Consider $L=L_1\cap L_2$ where$L_1=\{0^m1^m20^n1^n\mid m,n\ge 0\}$$L_2=\{0^m1^n2^k\mid m,n,k\ge 0\}$Then, the language …
Topic: UGC NET Computer Science Nov 2020 (Paper II)
Ask Your Question or Put Your Review.

loading...