MCQOPTIONS
Saved Bookmarks
| 1. |
Correct Set of Code for given data a and b to print output for c as 74 ? |
| A. | int a = 12; float b = 6.2f; int c; c = a / b + a * b; Console.WriteLine(c); |
| B. | int a = 12; float b = 6.2f; int c; c = a / convert.ToInt32(b) + a * b; Console.WriteLine(c); |
| C. | int a = 12; float b = 6.2f; int c; c = a / convert.ToInt32(b) + a * convert.ToInt32(b); Console.WriteLine(c); |
| D. | int a = 12; float b = 6.2f; int c; c = convert.ToInt32(a / b + a * b); Console.WriteLine(c); |
| Answer» D. int a = 12; float b = 6.2f; int c; c = convert.ToInt32(a / b + a * b); Console.WriteLine(c); | |