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 header file is required to use the printf() function?
In C, which operator has the highest precedence?
What is the purpose of the break statement in a loop?
In C programming, which of the following is NOT a valid data type?
What will be the output of: int a = 10; int b = 20; int c = a + b; printf("%d", c);?
Which of the following is used to declare a constant in C?
What is the purpose of the return statement in a C function?
Which header file is required for using the printf() function?
What is the correct syntax to declare a constant in C?
Which operator is used to access the value at an address in C?
What does the sizeof() operator return?
Which of the following is a correct way to initialize a 1D array in C?
What is the size of an empty structure in C?
What will be the output of: char *s = "Hello"; printf("%d", strlen(s));
What will be the output of: #define MAX 10; int x = MAX; printf("%d", x);
Which of the following correctly initializes a 2D array?
What will be the output of: printf("%d", );
What does the getchar() function do?
What will be the output of: int a = 5, b = 5; if(a == b) printf("Equal"); else printf("Not Equal");
Which header file is essential for using the printf() function in C?