WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

C Programming Questions online Test

void main( )

{

int j = 4 ;

( !j != 1 ? printf ( "\nWelcome") : printf ( "\nGood Bye") ) ;

}


void main( )

{

int k, num = 30 ;

k = ( num > 5 ? ( num <= 10 ? 100 : 200 ) : 500 ) ;

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

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

}


void main( )

{

int i = -4, j, num ;

j = ( num < 0 ? 0 : num * num ) ;

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

}


main( )

{

int a, b ;

if ( a == 1 & b == 0 )

printf ( "\n Learning C programming is Fun" ) ;

}


main( )

{

int x = 10 , y = 20;

if ( x >= 2 and y <=50 )

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

}


































Description:

The Decision Control Structure

Comments
Rakesh
By: Rakesh
763 days 2 hours 16 minutes ago

Answer of 1st ques is wrong ...

Rakesh
By: kumar
201 days 1 hours 59 minutes ago

absolutely right.....answer of first qsn is wrong

Rakesh
By: kumar
201 days 1 hours 59 minutes ago

absolutely right.....answer of first qsn is wrong

ashish
By: ashish
549 days 7 hours 28 minutes ago

Answer of 1st question is wrong

satyendra Jaladi
By: satyendra Jaladi
515 days 3 hours 3 minutes ago

Hi guys,well the first question depends on the compiler you have used.

Want to learn?

Sign up and browse through relevant courses.

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


Area code Number
Subject 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
satyendra Jaladi
Qt QtS60 C++ programmer.
2 Followers
Tests: 2

Your Facebook Friends on WizIQ

More Tests By Author

Qt Principles
7 Questions | 29 Attempts