UGC NET Paper 2 (Computer Science)Hard
A file has 100,000 fixed-size records stored 10 per block in sorted order. A binary search on the sorting key needs at most how many block accesses?
- A. 17
- B. 14
- C. 10
- D. 100
Correct answer: B. 14
10,000 blocks, so ceil(log2 10000) = 14.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- In the wait-die deadlock prevention scheme, if an older transaction requests a lock held by a younger one:
- A Class B network 172.16.0.0 is to be divided into 8 equal subnets. The subnet mask is:
- With 4-bit sequence numbers, the maximum window sizes of Go-Back-N and Selective Repeat are respectively:
- In a 10 Mbps Ethernet whose slot time is 51.2 microseconds, the minimum frame size is:
- A Hamming code must correct single-bit errors in 11 data bits. The minimum number of check bits is:
- Match List I (protocol) with List II (well-known port). I. SMTP; II. DNS; III. IMAP; IV. HTTPS. (a) 53; (b) 443; (c) 143; (d) 25.