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

Questions 11-15 of 100

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

Question 11

MCQ · Single Correct 1 mark

What does sizeof(char) evaluate to in standard C?

Answers for question 11

Question 12

MCQ · Single Correct 1 mark

What is the output of the C program?

C
#include <stdio.h>
int main(void) {
    unsigned int u = 10;
    int s = -20;
    if (u + s > 0)
        printf("Greater");
    else
        printf("Lesser");
    return 0;
}
Answers for question 12

Question 13

MCQ · Single Correct 1 mark

What will be printed by the following code?

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

Question 14

MCQ · Single Correct 1 mark

Which of the following is true regarding bitwise XOR operator $(^)$?

Answers for question 14

Question 15

MCQ · Single Correct 1 mark

What is the output of this code?

C
#include <stdio.h>
int main(void) {
    int i = 2;
    int j = i++ + ++i;
    printf("%d", j);
    return 0;
}
Answers for question 15
Scroll to Top