Free Practice / PYQ

GATE CSE C Programming Practice Test – Data Types & Operators | Set 1

Questions 1-5 of 100

Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 1

MCQ · Single Correct 1 mark

What is the output of the following C program?

C
#include <stdio.h>
int main(void) {
    int x = 0, y = 10;
    if (x && ++y)
        y++;
    printf("%d", y);
    return 0;
}
Answers for question 1

💡 Right-click an option to strike it out

Question 2

MCQ · Single Correct 1 mark

Which of the following describes the behavior of integer division in C99 when negative operands are involved?

Answers for question 2

💡 Right-click an option to strike it out

Question 3

MCQ · Single Correct 1 mark

What is the output of the following code snippet?

C
#include <stdio.h>
int main(void) {
    int a = 12, b = 25;
    printf("%d", a & b);
    return 0;
}
Answers for question 3

💡 Right-click an option to strike it out

Question 4

MCQ · Single Correct 1 mark

What is the result of evaluating '5 + 4 * 3 % 2 - 1' in C?

Answers for question 4

💡 Right-click an option to strike it out

Question 5

MCQ · Single Correct 1 mark

What is the value printed by this program?

C
#include <stdio.h>
int main(void) {
    int x = 5;
    int y = x++;
    printf("%d %d", x, y);
    return 0;
}
Answers for question 5

💡 Right-click an option to strike it out

Scroll to Top