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

Which of the following is the correct way to declare a pointer to a function that returns an int and takes two int parameters?

Q.162Easy

Which of the following is NOT a valid variable name in C?

Q.163Easy

What will be the output of: printf("%d", 5 + 3 * 2);?

Q.164Easy

What keyword is used to create a pointer variable in C?

Q.165Medium

What is the correct syntax to pass a 2D array to a function in C?

Q.166Medium

What will be printed by: int x = 5; printf("%d", ++x + x++);?

Q.167Medium

Which of the following correctly uses the ternary operator?

Q.168Medium

What is the purpose of the const keyword when used with a pointer?

Q.169Medium

What is the return type of malloc() function?

Q.170Medium

In the expression: int arr[10]; what is arr[5]?

Q.171Hard

Consider: int *p, q; What is the type of q?

Q.172Hard

What is printed by: char s[] = "hello"; printf("%zu", sizeof(s));?

Q.173Hard

What will be the result of: 5 % 2 * ?

Q.174Hard

In a struct, how is memory allocated for union members?

Q.175Medium

What is the output of: int a = 10, b = 20; int *p = &a, *q = &b; printf("%d", *p + *q);?

Q.176Easy

What is the correct way to declare a pointer to an integer?

Q.177Medium

What is the output of: int x = 5; int y = ++x; ?

Q.178Medium

What is the purpose of the free() function in C?

Q.179Medium

Which of the following correctly defines a structure in C?

Q.180Medium

What will be the value of x after executing: int x = 10; x += 5; x *= 2; ?