UGC NET Paper 2 (Computer Science)Hard
A graph has 13 vertices, 17 edges and is connected. Its cyclomatic number (number of independent cycles) is:
- A. 4
- B. 5
- C. 6
- D. 7
Correct answer: B. 5
E - V + 1 = 17 - 13 + 1 = 5; McCabe's V(G) = E - N + 2 = 6 counts the extra path for a program flow graph, a common slip.
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
- The Floyd cycle-detection (tortoise and hare) method finds a cycle in a linked list using:
- For the reference string 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1 and 3 frames, the number of page faults under LRU is:
- A TLB lookup takes 20 ns, a memory access 100 ns and the TLB hit ratio is 90%. The effective access time (single-level paging) is:
- A system has a 32-bit virtual address, 4 KB pages and 4-byte page table entries with a single-level page table. The page table size is:
- In the bounded-buffer producer-consumer solution with n slots, the semaphores empty, full and mutex are initialised respectively to:
- A Unix-style inode has 12 direct pointers and one single indirect pointer. With 4 KB blocks and 4-byte block pointers, the maximum file…