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.61Hard

What happens when you try to access an array element beyond its size in C?

Q.62Medium

What is the output of: int x = 10; printf("%d", x++); printf("%d", x);

Q.63Hard

Which of the following is the correct way to pass a string to a function in C?

Q.64Easy

What is the size of int data type in a 32-bit system?

Q.65Easy

Which header file is required to use the printf() function?

Q.66Easy

In C, which operator has the highest precedence?

Q.67Easy

What is the purpose of the break statement in a loop?

Q.68Medium

Which of the following correctly declares a pointer to an integer?

Q.69Medium

What will be printed if char ch = 'A'; printf("%d", ch); is executed?

Q.70Medium

Which of the following is used to dynamically allocate memory in C?

Q.71Medium

What will be the output of: char str[] = "Hello"; printf("%c", str[1]);?

Q.72Medium

Which function is used to compare two strings in C?

Q.73Medium

What is the output of the following: int x = 5; int *p = &x; printf("%d", *p);?

Q.74Hard

Which of the following is an invalid identifier in C?

Q.75Hard

What will be the output of: int x = 5; printf("%d %d", x++, ++x);?

Q.76Hard

What is the difference between structure and union in C?

Q.77Hard

Which of the following function declarations is correct for a function that takes no parameters and returns no value?

Q.78Hard

In C, what is the purpose of the typedef keyword?

Q.79Easy

In C programming, which of the following is NOT a valid data type?

Q.80Easy

What will be the output of: int a = 10; int b = 20; int c = a + b; printf("%d", c);?