GATE 2024 (Session 1)
65 questions
MCQ 29 · MSQ 20 · NAT 161-mark 30 · 2-mark 35
Questions 51–55 of 65
The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let be any graph with vertices and chromatic number . Which of the following statements is/are always TRUE?
One or more options are correct.
Answer: (B), (C)
(A) False. The 5-cycle has but contains no triangle.
(B) True. The colour classes are independent sets and together they cover all vertices, so the biggest class has at least vertices.
(C) True. In a minimum colouring, there is an edge between every two colour classes. If not, the two classes could be merged and colours would do. Different pairs of classes give different edges, so there are at least edges.
(D) False. has , but every degree in it is .
Answer: (B), (C)
(B) True. The colour classes are independent sets and together they cover all vertices, so the biggest class has at least vertices.
(C) True. In a minimum colouring, there is an edge between every two colour classes. If not, the two classes could be merged and colours would do. Different pairs of classes give different edges, so there are at least edges.
(D) False. has , but every degree in it is .
Answer: (B), (C)
Consider the operators and defined by , for positive integers. Which of the following statements is/are TRUE?
One or more options are correct.
Answer: (B), (D)
Checking each statement:
- associative? , NO.
- is ordinary multiplication associative, YES.
- over : , but . For : 3 vs 9 NO.
- over : YES.
Answer: is associative; distributes over
- associative? , NO.
- is ordinary multiplication associative, YES.
- over : , but . For : 3 vs 9 NO.
- over : YES.
Answer: is associative; distributes over
Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of them use the LRU (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
One or more options are correct.
Answer: (B), (C)
WBC is write back and WTC is write through. Check each statement:
(A) FALSE. On a read miss in WBC, the LRU victim can be dirty, and then it must be written back. The word "never" is wrong.
(B) TRUE. In WTC, main memory is always up to date, so a victim block never needs a write back.
(C) TRUE. A write hit in WBC changes only the cache, so the dirty bit can change from 0 to 1.
(D) FALSE. In WTC the victim block is never dirty, so it is not written to main memory before the new block is loaded.
Answer: (B), (C)
(A) FALSE. On a read miss in WBC, the LRU victim can be dirty, and then it must be written back. The word "never" is wrong.
(B) TRUE. In WTC, main memory is always up to date, so a victim block never needs a write back.
(C) TRUE. A write hit in WBC changes only the cache, so the dirty bit can change from 0 to 1.
(D) FALSE. In WTC the victim block is never dirty, so it is not written to main memory before the new block is loaded.
Answer: (B), (C)
Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is ____
Answer: 4096
Capacity equals cylinders surfaces sectors per track bytes per sector.
Here , surfaces 32 , sectors 4096 , bytes 1024 .
Cylinders
Answer: 4096
Here , surfaces 32 , sectors 4096 , bytes 1024 .
Cylinders
Answer: 4096
The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds (ns). The code corresponding to 90% of the execution time can be fully parallelized. The overhead for using an additional core is 10 ns when running on a multicore system. Assume that all cores in the multicore system run their share of the parallelized code for an equal amount of time.
The number of cores that minimize the execution time of the program is _______
The number of cores that minimize the execution time of the program is _______
Answer: 3
The serial part of 100 ns, so it is 10 ns. The parallel part is 90 ns.
For cores:
- : 100 ns
- : ns
- : ns
- : ns
The least time is at . The same comes from .
Answer: 3
For cores:
- : 100 ns
- : ns
- : ns
- : ns
The least time is at . The same comes from .
Answer: 3