Quiz


  1. Evaluate 2*3+5%3.
  2. 1
    7
    8
    2

  3. Evaluate (2*(3+5))%3.
  4. 1
    7
    8
    4

  5. The order of evaluation of the operators in (2*(3+5))%3 is:
  6. +, *, %
    *, +, %
    %, *, +
    +, %, *

  7. The order of evaluation of the operators in 2*(3+5)%3 is:
  8. +, *, %
    *, +, %
    %, *, +
    +, %, *

    Assume x=8.8, y=3.5 and z= -5.2 and m=4 for the following questions

  9. Calculate x%y
  10. 1.8
    3.5
    0.8
    7

  11. Calculate x%m
  12. 8
    4
    1.8
    0.8

  13. Calculate 7/m
  14. 0
    1
    2
    3

  15. Calculate 2*x/(3*y)
  16. 1.67
    2
    1
    1.5

  17. Calculate 2*x/3*y
  18. 5.86
    20.51
    1.67
    1

    Assume a=5, b=0 and c=-2 for the following questions

  19. Calculate (a |b )>c
  20. 0
    1
    5
    -2

  21. Calculate (a&c)*b%2
  22. 0
    2
    5
    1

  23. Calculate b++>c
  24. 0
    1
    -2
    -1
  25. Calculate a>((a-2==3)?1:0)
  26. 0
    1
    2
    3

    Assume a='E' , b='5' and c='?' are char type variables for the following questions

  27. Calculate b-2
  28. 'C'
    'A'
    'c'
    'a'

  29. Calculate b+c
  30. 't'
    's'
    'T'
    'r'

  31. Calculate a%c
  32. 0
    1
    6
    9

  33. Calculate a*3
  34. 0
    1
    207
    69

  35. Calculate a*'3'
  36. 0
    1
    97
    3519