C Language - Operators

You Are Here :: Home > C Language > Operators - General Questions

 
13.

Which of the following correctly shows the hierarchy of arithmetic operations in C?

A. / + * - B. * - / +
C. + - / * D. / * + -




14.

In which order do the following gets evaluated

1. Relational
2. Arithmetic
3. Logical
4. Assignment

A. 2134 B. 1234
C. 4321 D. 3214




15.

Which of the following is the correct order of evaluation for the below expression?

z = x + y * z / 4 % 2 - 1

A. * / % + - = B. = * / % + -
C. / * % - + = D. * % / - + =




16.

What is the value of the following expression?

(13 / 4 * 3) % 5 + 1

A. 5.75 B. 2.95
C. 1.4875 D. 5




17.

What are the values of p and q after the following statement has been executed?

for (p = q = 0; p < 3; p++) q += p;

A. p is 2, q is 0 B. p is 0, q is 0
C. p is 2, q is 3 D. p is 3, q is 3




18.

What will be the output of following code ?

#include
int main( )
{
int x=10,y=20;
if(x = = y)
printf("%d%d",x,y);
return 0;
}

A. Garbage values B. None of above
C. Prints Nothing D. Raise an error




« previous

1

2

3

4

5

6

7

8

9

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on