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 任意字符
If chr is a character variable, which of the following if statements is written correctly?如果chr是字符变量,那么以下哪个if语句编写正确?
A. if (chr = "a")
B. if (chr == "a")
C. if (chr = 'a')
D. if (chr == 'a')
In Java, when a character is stored in memory, it is actually stored as a(n)_____.在Java中,当字符存储在内存中时,它实际上存储为_____.
A. Unicode numberUnicode编码
B. ASCII character code ASCII字符代码
C. EBCDIC character code EBCDIC字符代码
D. Morse code 摩尔斯电码