UGC NET Paper 2 (Computer Science)Hard
A full binary tree (each node has 0 or 2 children) has 25 leaves. The total number of nodes is:
- A. 50
- B. 49
- C. 48
- D. 51
Correct answer: B. 49
Leaves = internal nodes + 1, so 24 internal and 49 in all, i.e. 2L - 1.
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 maximum number of edges in a simple planar graph with 10 vertices is:
- The number of generators of the cyclic group Z12 is:
- The minimum number of states of a DFA over {a, b} accepting strings with the number of a's divisible by 3 and the number of b's divisible…
- Assertion (A): Whether a given Turing machine accepts at least one string is undecidable. Reason (R): By Rice's theorem every non-trivial…
- For the same grammar, an LALR(1) parser has the same number of states as:
- For the grammar E -> TE', E' -> +TE' | e, T -> FT', T' -> FT' | e, F -> (E) | id, FOLLOW(T) is: