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.81Easy

Which of the following is used to declare a constant in C?

Q.82Easy

What is the purpose of the return statement in a C function?

Q.83Medium

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

Q.84Medium

Which loop in C does NOT check the condition before executing the loop body?

Q.85Medium

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

Q.86Medium

Which function is used to allocate memory dynamically in C?

Q.87Medium

What is the output of: int a = 10, b = 20; int temp = a; a = b; b = temp; printf("%d %d", a, b);?

Q.88Medium

In C, what does the scanf() function do?

Q.89Medium

What will be the output of: for(int i = 0; i < 3; i++) { printf("%d ", i); }?

Q.90Medium

Which of the following is the correct way to define a function that takes no parameters and returns no value?

Q.91Medium

What is the output of the following program: int x = 5; if(x > 3) printf("Greater"); else printf("Smaller");?

Q.92Hard

In C, when passing arrays to functions, what is actually passed?

Q.93Hard

What will be the output of: int a = 5; int *p = &a; printf("%d %d", a, *p);?

Q.94Easy

Which header file is required for using the printf() function?

Q.95Easy

What is the correct syntax to declare a constant in C?

Q.96Easy

Which operator is used to access the value at an address in C?

Q.97Easy

What does the sizeof() operator return?

Q.98Easy

Which of the following is a correct way to initialize a 1D array in C?

Q.99Medium

What is the return type of the malloc() function?

Q.100Medium

Which function is used to release dynamically allocated memory in C?