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 is a correct way to declare a pointer to an integer in C?

Q.42Easy

What is the output of the following code: printf("%d", sizeof(int));

Q.43Easy

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

Q.44Easy

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

Q.45Easy

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

Q.46Easy

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

Q.47Easy

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

Q.48Easy

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

Q.49Easy

Which loop construct in C guarantees execution at least once?

Q.50Easy

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

Q.51Easy

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

Q.52Easy

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

Q.53Easy

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

Q.54Easy

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

Q.55Easy

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

Q.56Easy

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

Q.57Easy

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

Q.58Easy

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

Q.59Easy

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

Q.60Easy

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