UGC NET 2021 Paper 2 Computer Science Prev Year Paper (26-Nov-2021)
UGC NET 2021 Paper 2 Computer Science exam, held on 26-Nov-2021, consisted of 100 questions designed to evaluate candidates' understanding of key computer science concepts. The paper covered a wide range of topics including programming languages, data structures, algorithms, database management, operating systems, and computer networks. Candidates were tested on both theoretical knowledge and practical problem-solving skills in computer science.
Q2.
What does the following function f() in 'C' return? int f(unsigned int N) {unsigned int counter = 0; while (N > 0) {counter += N & 1; N = N >> 1;} return counter == 1;}