You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Programming in C". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
Detailed Solution: Question 1
Which of the following is true about return type of functions in C?
Detailed Solution: Question 2
Consider the following C declaration
struct {
short s[5];
union {
float y;
long z;
}u;
} t;
Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is
Detailed Solution: Question 3
#include <stdio.h>
int main()
{
int i = 3;
printf("%d", (++i)++);
return 0;
}
What is the output of the above program?
Detailed Solution: Question 4
Find the Output ?
#include<stdio.h>
int main()
{
int x, y = 5, z = 5;
x = y == z;
printf("%d", x);
getchar();
return 0;
}
Detailed Solution: Question 5
Which file is generated after pre-processing of a C program?
Detailed Solution: Question 6
Which of the following is not a storage class specifier in C?
Detailed Solution: Question 7
Detailed Solution: Question 8
#include <stdio.h>
#if X == 3
#define Y 3
#else
#define Y 5
#endif
int main()
{
printf("%d", Y);
return 0;
}
What is the output of the above program?
Detailed Solution: Question 9
#include <stdio.h>
// Assume base address of "EduRevQuiz" to be 1000
int main()
{
printf(5 + "Quiz");
return 0;
}
Detailed Solution: Question 10