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.61Medium

What will be the output of: int x = 5, y = 10; if (x < y) printf("yes"); else printf("no");

Q.62Medium

Which of the following is NOT a valid way to pass arguments to a function in C?

Q.63Medium

What will be the result of: int a = 10, b = 3; int c = a % b; printf("%d", c);

Q.64Medium

What will be the output of: char ch = 'A'; printf("%d", ch);

Q.65Medium

What is the output of: int x = 5; int y = ++x + x++; printf("%d %d", x, y);

Q.66Medium

What is the output of: int a = 10, b = 20; a = a ^ b; b = a ^ b; a = a ^ b; printf("%d %d", a, b);

Q.67Medium

In C, which function is used to read a string from input with space handling?

Q.68Medium

What is the purpose of the 'static' keyword when used with a variable inside a function?

Q.69Medium

Which of the following correctly represents a structure declaration in C?

Q.70Medium

What will be the final value of x: int x = 5; x += 3 * 2; printf("%d", x);

Q.71Medium

Which of the following operators has the highest precedence in C?

Q.72Medium

What will be printed: int i = 0; while(i < 3) { printf("%d ", i); i++; }

Q.73Medium

What is the correct syntax to free dynamically allocated memory in C?

Q.74Medium

What does the following code do: int *ptr = NULL;

Q.75Medium

What is the output of: printf("%f", );

Q.76Medium

What does the sizeof() operator return in C?

Q.77Medium

What does the modulus operator (%) return when applied to negative numbers?

Q.78Medium

Which of the following statements about pointers is correct?

Q.79Medium

What is the correct way to declare a constant in C?

Q.80Medium

How many times will the following loop execute: for(int i=0; i<5; i++) { if(i==3) break; }