What will be the value of x after the following code is executed?执行以下代码后,x的值是多少?int x = 75;int y = 60;if (x > y)x = x - y;
查看答案
What will be the value of ans after the following code has been executed?执行以下代码后,ans的值是什么?int ans = 10;int x = 65;int y = 55;if (x >= y)ans = x + y;
A. 10
B. 120
C. 100
D. No value, there is a syntax error 无值,语法错误
What will be the value of ans after the following code has been executed?执行以下代码后,ans的值是什么?int x = 90,y = 55,ans = 10;if ( x == y);ans *= 2;
A. 10
B. 145
C. 20
D. No value, there is a syntax error 无值,语法错误
A block of code is enclosed in a set of_________。代码块包含在一组_________中。
A. braces { } 花括号
B. parentheses ( ) 括号
C. double quotes " " 双引
D. brackets [ ]中括号
A flag may have the value标识可能的值:
A. 0 or 1
B. +1 or -1
C. true or false
D. of any character 任意字符