iGET

Computer Knowledge - MCQ Practice Questions

Practice free Computer Knowledge multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

309 questions | 100% Free

Q.41Hard

What will be the output of: int x = 5; int y = x++ + ++x; ?

Q.42Hard

Consider this complex code snippet: int a = 5, b = 2; int result = a * b + ++b * a--; printf("%d %d %d", result, a, b); What will be the output?

Q.43Hard

What is the output of this recursive function? int func(int n) { if(n <= 1) return 1; return n * func(n-1); } printf("%d", func(4));

Q.44Hard

What is the output of this code involving bitwise operations? int x = 5; // binary: 0101 int y = 3; // binary: 0011 printf("%d", x ^ y); // XOR operation