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.41Medium

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

Q.42Medium

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

Q.43Medium

What is the difference between calloc() and malloc()?

Q.44Medium

Which of the following is used to comment multiple lines in C?

Q.45Medium

What will be the output of: float x = ; printf("%f", x);

Q.46Medium

How are structures different from unions in C?

Q.47Medium

What will be the output of the following code? int a = 5; int b = ++a + a++; printf("%d", b);

Q.48Medium

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

Q.49Medium

Consider the code: int arr[10]; int *p = arr; What is p[5]?

Q.50Medium

What is the purpose of the void pointer in C?

Q.51Medium

Which function is used to read a string from standard input?

Q.52Medium

What is the output of: int arr[] = {1,2,3,4,5}; printf("%d", sizeof(arr)/sizeof(arr[0]));

Q.53Medium

What will be the output of: char c = 'A'; printf("%d", c);

Q.54Medium

What is the output of: int arr[5]; printf("%d", sizeof(arr));

Q.55Medium

Which function is used to allocate memory dynamically at runtime?

Q.56Medium

What is the purpose of the break statement in a switch case?

Q.57Medium

What will be the output of: int x = 5, y = 10; if (x < y) printf("yes"); else printf("no");

Q.58Medium

Which of the following is NOT a valid way to pass arguments to a function in C?

Q.59Medium

What will be the result of: int a = 10, b = 3; int c = a % b; printf("%d", c);

Q.60Medium

What will be the output of: char ch = 'A'; printf("%d", ch);