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

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

Q.142Medium

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

Q.143Medium

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

Q.144Hard

What does the 'volatile' keyword indicate in C?

Q.145Hard

Consider: int *ptr; int arr[] = {1,2,3}; ptr = arr; What is ptr[1]?

Q.146Medium

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

Q.147Medium

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

Q.148Easy

Which of the following is true about the 'break' statement in C?

Q.149Medium

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

Q.150Medium

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

Q.151Medium

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

Q.152Medium

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

Q.153Easy

Which of the following correctly declares a 2D array in C?

Q.154Medium

What does the sizeof() operator return in C?

Q.155Hard

What is the difference between getchar() and scanf("%c", &ch); in C?

Q.156Hard

What will be the output: int a = 2, b = 3; printf("%d", a * b + a / b);

Q.157Easy

What will be the memory size occupied by: int arr[5][3];?

Q.158Medium

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

Q.159Medium

Which of the following statements about pointers is correct?

Q.160Medium

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