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 difference between calloc() and malloc()?
Which of the following is used to comment multiple lines in C?
What will be the output of: float x = ; printf("%f", x);
How are structures different from unions in C?
What does the static keyword do when used with a global variable?
Consider: int arr[10]; int *p = arr; What is p[5] equivalent to?
What is the difference between declaration and definition in C?
What will be the output of the following code? int a = 5; int b = ++a + a++; printf("%d", b);
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: int x = 5; printf("%d", x << 1);
Consider the code: int arr[10]; int *p = arr; What is p[5]?
What is the purpose of the void pointer in C?
What will be the output of: #define MAX 10; int x = MAX; printf("%d", x);
Which function is used to read a string from standard input?
What will be the output of: int x = 10; int y = x++ + ++x; printf("%d", y);
What is the output of: int arr[] = {1,2,3,4,5}; printf("%d", sizeof(arr)/sizeof(arr[0]));
Which of the following correctly initializes a 2D array?
What will be the output of: printf("%d", );
What does the getchar() function do?