Variable [MCQ] : Find Output of Program (Multiple Choice Questions)

Question 1
Guess the output of the following program -
#include<stdio.h>
int main(){
    int NUM = 100;
    printf("%d",num);
    return 0;
}
A
100
B
0
C
Run Time Error
D
Compile Error
Question 1 Explanation: 
Variable name is case sensitive , same word in different cases is considered as different variable.
Question 2
What will be the output of the following code snippet ?
#include<stdio.h>
int main(){
    int scanf=456;
    printf("%d",scanf);
    return 0;
}
A
45
B
456
C
Run Time Error
D
Compile Error
Question 2 Explanation: 
Variable name cannot be pre defined function of included header file
Question 3
Guess the output of the following program -
#include<stdio.h>
int main(){
    int EOF=100;
    printf("%d",EOF);
    return 0;
}
A
Compile Error
B
100
C
0
D
Run Time Error
Question 3 Explanation: 
Variable name cannot be pre defined function of included header file.
Question 4
What will be the output of the following code -
#include<stdio.h>
int main(){
    int main = 999;
    printf("%d",main);
    return 0;
}
A
999
B
It will cause run time error
C
We cannot declare variable name as 'main'
D
None of these
Question 5
What will be output of the following c program?
#include<stdio.h>
int main()
{
long break=15;
printf("%ld",break);
return 0;
}
A
15
B
51
C
Compile Error
D
Run Time Error
Question 5 Explanation: 
"break" is reserve word or keyword in C Programming thus it cannot be used as variable name.