Time Left - 10:00 mins

IIIT Hyderabad Practice Quiz : Programming-2

Attempt now to get your rank among 634 students!

Question 1

x – = y+1; does the same as:

Question 2

Which combination of the integer variables x, y and z makes the variable a get the value 4 in the following expression? a = (x > y)? ((x > z)? x : z): ((y > z)? y : z)

Question 3

What will be the output of the program?

Question 4

What is the output of the following C program?

Question 5

What is the output of the program.?

void myshow();

int main()

{
myshow();

myshow();

myshow();

}

void myshow()

{
static int k = 20;

printf("%d ", k);

k++;

}

  • 634 attempts
  • 3 upvotes
  • 6 comments
Jun 11GATE & PSU CS