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
Which of the following is a correct way to declare a pointer to an integer in C?
What is the output of the following code: printf("%d", sizeof(int));
Which of the following correctly initializes a 2D array in C?
Which of the following is NOT a valid identifier in C?
In C, what is the difference between single quotes and double quotes?
Which of the following is true about the 'break' statement in C?
Which of the following correctly declares a 2D array in C?
What will be the memory size occupied by: int arr[5][3];?
Which loop construct in C guarantees execution at least once?
What is the scope of a variable declared inside a block?
What will be the value of x after executing: int x = 5; x += 3; x *= 2;
Which preprocessor directive is used to include a custom header file?
Which of the following is NOT a valid variable name in C?
What will be the output of: printf("%d", 5 + 3 * 2);?
What keyword is used to create a pointer variable in C?
What is the correct way to declare a pointer to an integer?
Which function is used to read a single character from standard input?
In the expression: int arr[3][3]; arr[1][2] = 5; What is being accessed?
What is the output of the following C code? int main() { int a = 10; printf("%d", a += 5); return 0; }
What is the purpose of the strlen() function in C?