gate questions

Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches. Assume that these switches do not have any separate uplink ports

Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches. Assume that these switches do not have any separate uplink ports

Q. Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum number of switches needed is. Solution: You need at leastΒ 3Β switches of Ethernet are required to connect 15 computers.

Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches. Assume that these switches do not have any separate uplink ports Read More Β»

Let Ξ£ be the set of all bijections from

Let Ξ£ be the set of all bijections from {1, … , 5} to {1, … , 5}, where 𝑖𝑑 denotes the identity function, i.e. 𝑖𝑑(𝑗) = 𝑗, βˆ€π‘—.Β Β Let ∘ denote composition on functions

Q. Let Ξ£ be the set of all bijections from {1, … , 5} to {1, … , 5}, where 𝑖𝑑 denotes the identity function, i.e. 𝑖𝑑(𝑗) = 𝑗, βˆ€π‘—.Β Β Let ∘ denote composition on functions.Β Β  For a string π‘₯ =π‘₯1 π‘₯2 β‹― π‘₯𝑛 ∈ Σ𝑛, 𝑛 β‰₯ 0 , let πœ‹(π‘₯) = π‘₯1 ∘ π‘₯2

Let Ξ£ be the set of all bijections from {1, … , 5} to {1, … , 5}, where 𝑖𝑑 denotes the identity function, i.e. 𝑖𝑑(𝑗) = 𝑗, βˆ€π‘—.Β Β Let ∘ denote composition on functions Read More Β»

Suppose π‘Œ is distributed uniformly in the open interval (1,6).

Suppose π‘Œ is distributed uniformly in the open interval (1,6). The probability that the polynomial 3π‘₯2 + 6π‘₯π‘Œ + 3π‘Œ + 6 has only real roots is

Q. Suppose π‘Œ is distributed uniformly in the open interval (1,6). The probability that the polynomial 3π‘₯2 + 6π‘₯π‘Œ + 3π‘Œ + 6 has only real roots is (rounded off to 1 decimal place) Solution: For a quadratic polynomial ax2 + bx + c = 0. There are three condition: b2 – 4ac > 0  

Suppose π‘Œ is distributed uniformly in the open interval (1,6). The probability that the polynomial 3π‘₯2 + 6π‘₯π‘Œ + 3π‘Œ + 6 has only real roots is Read More Β»

Let 𝑇 be a full binary tree with 8 leaves

Let 𝑇 be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves π‘Ž and 𝑏 of 𝑇 are chosen uniformly and independently at random

Q. Let 𝑇 be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves π‘Ž and 𝑏 of 𝑇 are chosen uniformly and independently at random. The expected value of the distance between π‘Ž and 𝑏 in 𝑇 (i.e., the number of edges in the unique path

Let 𝑇 be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves π‘Ž and 𝑏 of 𝑇 are chosen uniformly and independently at random Read More Β»

A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz clock.

A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz clock.

Q. A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz clock. To service a cache miss, the memory controller first takes 1 cycle to accept the starting address of the block, it then takes 3 cycles to

A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz clock. Read More Β»

The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers

The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers

Q. The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) ____________GB. Solution: No. of Disk block pointers = 4kB/32bits

The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers Read More Β»

Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below

Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below

Q. Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below: Process P1 P2 P3 P4 Arrival time 0 1 3 4 CPU burst time 3 1 3 Z These processes are run on a single processor using preemptive Shortest Remaining Time First scheduling

Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below Read More Β»

There are n unsorted arrays: A1, A2, …, An. Assume that n is odd. Each of A1, A2, …, An contains n distinct elements. There are no common elements between any two arrays

There are n unsorted arrays: A1, A2, …, An. Assume that n is odd. Each of A1, A2, …, An contains n distinct elements. There are no common elements between any two arrays

Q. There are n unsorted arrays: A1, A2, …, An. Assume that n is odd. Each of A1, A2, …, An contains n distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of A1, A2, …, An is (A) O(n) (B) O(n

There are n unsorted arrays: A1, A2, …, An. Assume that n is odd. Each of A1, A2, …, An contains n distinct elements. There are no common elements between any two arrays Read More Β»

Scroll to Top