GATE CSE C Programming Practice Test – Function & Storage Class | Set 1

Questions 16-20 of 100

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

Question 16

MCQ · Single Correct 1 mark

What does the declaration 'extern int arr[16];' inside a function indicate?

Answers for question 16

Question 17

MCQ · Single Correct 2 mark

What is the effect of declaring a function parameter as 'register int count' in C?

Answers for question 17

Question 18

MCQ · Single Correct 1 mark

Which memory segment stores uninitialized global and static variables in C?

Answers for question 18

Question 19

MCQ · Single Correct 2 mark

What is the scope and linkage of a top-level global variable declared as 'static int var = 19;' in a C source file?

Answers for question 19

Question 20

MCQ · Single Correct 1 mark

What is the output of the following C code?

C
#include <stdio.h>
int x = 20;
int main(void) {
    int x = 30;
    {
        int x = 40;
        printf("%d ", x);
    }
    printf("%d", x);
    return 0;
}
Answers for question 20
Scroll to Top