更多"[单选题]下列选项中属于字符串常量的是:"的相关试题:
[单选题]C#语言中,字符串常量@"123\n456"的长度(有效字符个数)是( )。
A.6
B.7
C.8
D.9
[单选题]在Word中进行替换时,替换字符串的长度( )被替换的字符串。
A.必须小于
B.必须大于
C.不必等于
D.必须等于
[单选题]下列哪些项目不属于常量分析( )
A.灰分
B.挥发分
C.库仑滴定法测定煤中全硫
D.发热量
[单选题]下列元素中属于常量元素的是( )。
A.钙.磷.铁.锌
B.钙.铁.碘.锡
C.钙.钾.钠.镁
D.氯.磷.硫.钙
[单选题]下列程序的功能是统计字符串中"array"的个数,在程序的空白处应填入的正确选项是:
public class FindKeyWords{
public static void main(sring[] args){
String text=
" An array is a data structur that stores a collection of"
+ "values of the same type . You access each individual value"
+ "through an integer index . For example,if a is an array"
+ "of inergers, then a[i] is the ith integer in the array.";
int arrayCount =0;
int idex = -1;
String arrarStr ="array";
index = text.indexof(arrayStr);
while(index ______ 0) {
++arrayCount;
index += arrayStr.length();
index = text.indexof(arrayStr,index);
}
System.out.println("the text contains" + arrayCount + "arrays");
}
}
A.<
B.=
C.<=
D.>=
[判断题]库仑滴定法测定煤中全硫,属于常量分析
A.正确
B.错误
[单选题]下面哪个表达式可以获取字符串 s 的最后一个字符:
A.s.length()
B.s[s.length() - 1]
C.s.charAt(s.length() - 1)
D.charAt(s, length(s))
[单选题]若要求从键盘读入含有空格字符的字符串,应使用函数()。
A.getc()
B.gets()
C.getchar()
D.scanf()
[判断题]PLC含有字符串处理指令。
A.正确
B.错误
[单选题]js 中字符串连接用那个比较高效?
A.a+=b
B.a = a+b
C.Array.join()
D.Array.push()
[单选题]字符串连接运算符包括&和()
A.+
B.-
C.*
D./