ExamTray App is now Available on Google Play EXAMTRAY android app link

 

TOTAL QS = 10Time [ 00 : 00 : 00 ]
00:00:00

C Programming Data Types and Storage Classes Online Test 3

Instructions

Total Questions: 10

Total Minutes: 10

This ExamTray Free Online Exam tests your C Programming Skills on Data Types and C Storage Classes and displays Questions and Answers after finishing the exam. You can easily clear Competitive Exams and Job Interview Questions after attending this exam.

All the Best

1) Choose a correct statement regarding automatic variables.
2) What is the output of the program.? #include<stdio.h>
int main()
{
	printf("Hello Boss.");
}
3) What is the output of the program.?
int main()
{
	auto int a=10;
	{
		auto int a = 15;
		printf("%d ", a);
	}
	printf("%d ", a);
	return 1;
}
4) What is the output of the program.?
int main()
{
	register a=10;
	{
		register a = 15;
		printf("%d ", a);
	}
	printf("%d ", a);
	
	return 20;
}
5) What is the output of the C Program statement.?
register int b;
prinf("%d", b);
6) What is the output the program.?
int main()
{
	register a=80;
	auto int b;
	b=a;
	printf("%d ", a);
	printf("%d ", b);
	
	return -1;
}
7) What is the output of the program.?
void myshow();

int main()
{
	myshow();
	myshow();
	myshow();
}

void myshow()
{
	static int k = 20;
	printf("%d ", k);
	k++;
}
8) What is the output of the program.? #include<stdio.h>
static int k;

int main()
{
	printf("%d", k);
	
	return 90;
}
9) What is the output of the program.?
int main()
{
	register k = 25;
	printf("%d", &k);
	
	return 90;
}

10) The statement below is .....a
extern int p;