c skills online Test

What would be the output of the following program?

int x=40;

main()

{

int x=20;

printf("%d\n",x);

}


2. What would be the output of the following program?

main()

{

extern int i;

i=20;

printf("%d",sizeof(i));

}


main()

{

extern int fun(float);

int a;

a=fun(3.14);

printf("%d",a);

}

int fun(aa)

float aa;

{

return((int)aa);

}


main()

{

int a[5]={2,3};

printf("\n %d%d%d", a[2], a[3], a[4]);

}


main()

{

int i=1;

for(;;)

{

printf("%d",i++);

if(i>10)

break;

}

}













































Description:

This test is for beginners who want to test their basics of the programming language. this is a time based test. 5 questions are given with multiple options which has to be answered in 5 min. Hope everyone will be satisfied after taking this test. It is pretty easy. Just apply your mind a bit.

Tags:

C

Comments
mohanapriya c
By: mohanapriya c
317 days 4 hours 51 minutes ago

thanks suman....:) i got 4 right.... :) thank u.... ll back again with my test questions.. pl attempt it and give your feedback...:)

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect