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
What is the output of the following C code? int x = 5; printf("%d", x++);
Which of the following is the correct syntax to declare a pointer in C?
What will be the size of the following array in bytes? char arr[10];
What is the purpose of the 'void' keyword in C?
What is the output of the following C code? int a = 10, b = 20; int c = (a > b) ? a : b; printf("%d", c);
What does the strlen() function return?
Which header file is required to use the printf() function in C?
Which of the following is a valid variable name in C?
What is the return type of the strlen() function?
Which operator has the highest precedence in C?
What is the size of an integer variable in most modern C compilers?
Which of the following is NOT a valid C data type?
What is the purpose of the & operator in C?
Which keyword is used to create a constant variable in C?
What is the output of sizeof(char) in C?
How many times will the loop execute? for(int i = 0; i < 5; i++)
What will be the value of x after: int x = 5; x += 3;
What is the size of int data type in a 32-bit system?
Which header file is required to use the printf() function?
In C, which operator has the highest precedence?