Welcome to Your Quiz: Aptitude Test C Programming For Advanced Students​ Level 3

Name Email
1.

What is the output of the following program?
void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
printf("%d",a);
}

(Visited 509 times, 1 visits today)
2.

what is the output of following program?
void main()
{
int a=80;
if(a++>80)
printf("welcome%d",a);
else
printf("hello%d",a);
}

(Visited 509 times, 1 visits today)
3.

what is the output of following program?
void main()
{
int a;
a=10;
a*=10+2;
printf("%d",a);
}

(Visited 509 times, 1 visits today)
4.

what is the output of following program?
void main()
{
int a;
a=100;
printf("%d%d",++a,a++);
}

(Visited 509 times, 1 visits today)
5.

What is the output of following program?
main()
{
extern int a=5;
printf("%d",a);
return 0;
}

(Visited 509 times, 1 visits today)
6.

What will be the output of the following program?
main( )
{
int pskills[] = { 10, 20, 30, 40, 50 };
int i, *ptr ;
ptr = pskills;
for ( i = 0 ; i <4 ; i++ )
{
fun(ptr++);
printf ("\n%", *ptr ) ;
}
}
void fun(int *i)
{
*i = *i + 1;
}

(Visited 509 times, 1 visits today)
7.

What is the output of the following program?
void main()
{
int a,b;
a=b=10;
while(a)
{
a=b++<=13;
printf("%d%d",a,b);
}
printf("%d%d",a+10,b+10);
}

(Visited 509 times, 1 visits today)
8.

What is the output of the following program?
void main()
{
int a;
a=1;
while(a<=1)
if(a%2)
printf("%d",a++);
printf("%d",a+10);
}

(Visited 509 times, 1 visits today)
9.

What is the output of the following program?
void xyz(int p1, int *p2)
{
++p1;
++*p2;
printf("%d%d",p1,*p2);
}
void main()
{
int a=10;
xyz(a++,&a);
xyz(a++,&a);
printf("%d",a);
}

(Visited 509 times, 1 visits today)
10.

What is the output of the following program?
void xyz(int p1, int *p2)
{
++p1;
++*p2;
printf("%d%d",p1,*p2);
}
void main()
{
int a=10;
xyz(a++,++*(&a));
xyz(a++,++*(&a));
printf("%d",a);
}

(Visited 509 times, 1 visits today)
11.

What is the output of the following program?
void main()
{
int a,b;
a=b=1;
a=a++ + ++b;
b=b++ + ++a;
printf("%d%d",a,b);
}

(Visited 509 times, 1 visits today)
12.

what is the output of following program?
void main()
{
float a;
a=6.7;
if(a==6.7)
printf("A");
else
printf("B");
}

(Visited 509 times, 1 visits today)
13.

Can a program be invoked from another program ?

(Visited 509 times, 1 visits today)
14.

what is the output of following program?
#include <stdio.h>
void main()
{
int a=1;
void xyz(int , int);
xyz(++a,a++);
xyz(a++,++a);
printf("%d",a);
}
void xyz(int x, inty)
{
printf("%d%d",x,y);
}

(Visited 509 times, 1 visits today)
15.

what is the output of following program?
void main()
{
int a;
a=1;
while(a–>=1)
while(a–>=0);
printf("%d",a);
}

(Visited 509 times, 1 visits today)
16.

How many times the while loop will get executed?
main ( )
{
int a = 1 ;
while ( a <= 100) ;
{
printf ( a = %d, a++ ) ;
}
}

(Visited 509 times, 1 visits today)
17.

What is the output of the following program?
void main()
{
int a;
a=10;
while(a++<=15)
printf("%d",a);
printf("%d",a+10);
}

(Visited 509 times, 1 visits today)
18.

What is the output of the following program?
void main()
{
int a;
a=100>90>80;
printf("%d",a);
}

(Visited 509 times, 1 visits today)
19.

What is the output of the following program?
void main()
{
int a;
a=1;
a++ * ++a;
printf("%d",a);
}

(Visited 509 times, 1 visits today)
20.

what is the output of following program?
void main()
{
printf("One");
if(2>1)
printf("Two");
else
printf("Three");
printf("Four");
}

(Visited 509 times, 1 visits today)

Thank You for Submitting your response for Quiz

Aptitude Test C Programming For Advanced Students​ Level 3

Please click on View Result Button to see the Result.



(Visited 509 times, 1 visits today)
Show Buttons
Hide Buttons