var i = 28; if ( i / 2 % 2 > 0 ) { document.write("The number is an odd integer"); } else { document.write("The number is an even integer"); } What is displayed when the code segment above is executed?单项选择题
A
Nothing is printed. The result of the computation is equal to 0.
B
Nothing is printed. There is a runtime error.
C
The number is an even integer.
D
The number is an odd integer.
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
What symbol is used to find remainder of a floor division?
In Java, what is the function of the modulo?
Evaluate following code and identify value of variable ans. int inp = 724395, ans; ans = (inp / 100) % 10;
Evaluate following code and identify value of variable ans. int inp = 724395, ans; ans = (inp / 100) % 10;
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!