UGC NET Paper 2 (Computer Science)Hard
A program has 10 distinct operators, 15 distinct operands, 40 total operators and 60 total operands. Halstead volume V = N log2 n is about:
- A. 464
- B. 350
- C. 520
- D. 250
Correct answer: A. 464
N = 100 and n = 25, so V = 100 x 4.644 = 464.4.
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
- A 5-stage pipeline executes 100 instructions with no stalls. The speed-up over the non-pipelined processor is approximately:
- A 32 KB direct-mapped cache has 64-byte lines and the address is 32 bits. The number of tag bits is:
- The 8-bit two's complement representation of -45 is:
- The cache hit time is 2 ns, the miss rate is 5% and the miss penalty is 50 ns. The average memory access time is:
- A disease has prevalence 1%; a test has sensitivity 90% and false-positive rate 5%. The probability of disease given a positive test is…
- Alpha-beta pruning with perfect move ordering reduces the search complexity of minimax from O(b^d) to: