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.41Easy

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

Q.42Easy

Which of the following is NOT a valid identifier in C?

Q.43Easy

In C, what is the difference between single quotes and double quotes?

Q.44Easy

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

Q.45Easy

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

Q.46Easy

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

Q.47Easy

Which loop construct in C guarantees execution at least once?

Q.48Easy

What is the scope of a variable declared inside a block?

Q.49Easy

What will be the value of x after executing: int x = 5; x += 3; x *= 2;

Q.50Easy

Which preprocessor directive is used to include a custom header file?

Q.51Easy

Which of the following is NOT a valid variable name in C?

Q.52Easy

What will be the output of: printf("%d", 5 + 3 * 2);?

Q.53Easy

What keyword is used to create a pointer variable in C?

Q.54Easy

What is the correct way to declare a pointer to an integer?

Q.55Easy

Which function is used to read a single character from standard input?

Q.56Easy

In the expression: int arr[3][3]; arr[1][2] = 5; What is being accessed?

Q.57Easy

What is the output of the following C code? int main() { int a = 10; printf("%d", a += 5); return 0; }

Q.58Easy

What is the purpose of the strlen() function in C?

Q.59Easy

What will be the value of 'x' after execution of the following code? int x = 10; x += 5; x *= 2;

Q.60Easy

Which header file must be included to use the printf() function in C?