答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【判断题】【消耗次数:1】
String str=abcedf; int length=str.length;
①
正确
②
错误
参考答案:
复制
纠错
相关题目
【判断题】
String str=abcdefghi;char chr=str.charAt(9);
①
正确
②
错误
查看完整题目与答案
【判断题】
int intArray[]={0,2,4,6,8}; int length=int Array.length();
①
正确
②
错误
查看完整题目与答案
【单选题】
函数String(n,"str")的功能是()。
①
把数值型数据转换为字符串
②
返回由n个字符组成的字符串
③
从字符串中取出n个字符
④
从字符串中第n个字符的位置开始取子字符串
查看完整题目与答案
【单选题】
若定义:string str; 当语句cin>>str; 执行时,从键盘输入:Microsoft Visual Studio 0! 所得的结果是str=( )。
①
Microsoft Visual Studio 0!
②
Microsoft
③
Microsoft Visual
④
Microsoft Visual Studio 0
查看完整题目与答案
【单选题】
有如下程序段:Dim str1 As String * 5 Str1= ”Visual Basic”当该程序段被执行完时,变量Str1的值是()。
①
”Visual ”
②
“ Visua ”
③
“ V ”
④
“ Visual Basic ”
查看完整题目与答案
【单选题】
有如下程序段:Dim str1 As String * 5 Str1= ”Visual Basic”当该程序段被执行完时,变量Str1的值是()。
①
”Visual ”
②
“ Visua ”
③
“ V ”
④
“ Visual Basic ”
查看完整题目与答案
【单选题】
已有定义char str1[15]={“computer”} , str2[15] ; 则语句用法正确的是()。
①
str2=str1;
②
str2=science;
③
scanf(%s,str2);
④
printf(%s,str1);
查看完整题目与答案
【单选题】
若定义:string str; 当语句cinstr; 执行时,从键盘输入:Microsoft Visual Studio 0! 所得的结果是str=( )。
①
Microsoft Visual Studio 0!
②
Microsoft
③
Microsoft Visual
④
Microsoft Visual Studio 0
查看完整题目与答案
【单选题】
下列程序段执行后的结果是( )。 String s = new String(abcdefg); for (int i=0; i<s.length(); i+=2){ System.out.print(s.charAt(i)); }
①
aceg
②
ACEG
③
abcdefg
④
abcd
查看完整题目与答案
【单选题】
对于以下结构定义:struct{intlen;char*str;}*p;p->str++中的++加在()
①
指针str上
②
指针p上
③
str所指的内容上
④
以上均不是
查看完整题目与答案
随机题目
【单选题】
His mother had talked to him for two hours while he was watching TV, but_____.
①
a little did he hear
②
little did he hear
③
little heard he
④
a little heard he
查看完整题目与答案
【单选题】
In this book the writer gives us a(n)____ picture of social history.
①
precise
②
exact
③
accurate
④
correct
查看完整题目与答案
【单选题】
Of course, most immigrants did not get rich overnight, but the ____ of them were eventually able to improve upon their former standard of living.
①
maximum
②
minority
③
majority
④
minimum
查看完整题目与答案
【单选题】
China is ____ in natural resources.
①
excessive
②
adequate
③
rich
④
enough
查看完整题目与答案
【单选题】
Mr. Robinson knew that the most trivial chore could prove to be a ____ if approached with enthusiasm.
①
prize
②
reward
③
refund
④
bonus
查看完整题目与答案
【单选题】
When Ann broke the dish she tried to put the ____ back together.
①
fragments
②
pieces
③
bits
④
slices
查看完整题目与答案
【单选题】
I really do not know whether we can succeed, so do not expect ____.
①
too much of us
②
us too much
③
of us too much
④
us of too much
查看完整题目与答案
【单选题】
Frank almost never received any education, ____?
①
would he
②
did he
③
didn’t he
④
wouldn’t he
查看完整题目与答案
【单选题】
The teeth are ____, but they look very natural.
①
false
②
correct
③
fake
④
unnatural
查看完整题目与答案
【单选题】
You should know better than ____ your little sister at home by herself.
①
to leave
②
leaving
③
to have left
④
left
查看完整题目与答案