C LANGUAGE QUIZ
1 .
Which of the following operators below have the highest priority when evaulating?

Correct Answer : Option (A)

()
  Show Answer
2 .
Which of the following can be used for random number generation?

Correct Answer : Option (C)

random() 
  Show Answer
3 .
Which of the following snippet will effectively generate random numbers?

Correct Answer : Option (A)

rand();
  Show Answer
4 .
Which of the following is true about return type of functions in C?

Correct Answer : Option (B)

Functions can return any type except array and functions 
  Show Answer
5 .
Which of the following is a complete function?

Correct Answer : Option (A)

int funct(int x) {return x=x+1;} 
  Show Answer
6 .
Given the following program fragment
main ()
{
 int i, j, k;
 i = 3;
 j =2*(i++);
 k =2*(++i);
}​

which one of the given option is correct?

Correct Answer : Option (D)

j = 6, k = 10.
  Show Answer
7 .
What value of c will get printed
main()
{
	int a,b,c;
	a=10;
	b=20;
	c=printf("%d",a)+ ++b;
	printf("\n%d",c);
}​

Correct Answer : Option (B)

23
  Show Answer
8 .
How many times the below loop will get executed?
main()
{
	int i;
	for(i=9;i;i=i-2)
	{
		printf("\n%d",i);
	}
}​

Correct Answer : Option (D)

Infinite
  Show Answer
9 .
Is there any difference between following declarations?
int fun();
extern int fun();​

Correct Answer : Option (C)

Both are identical
  Show Answer
10 .
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

Correct Answer : Option (B)

rem = fmod(3.14, 2.1); 
  Show Answer