【判断题】【消耗次数:1】
String str=abcdefghi;char chr=str.charAt(9);
正确
错误
参考答案:
复制
纠错
相关题目
【判断题】 String str=abcedf; int length=str.length;
①  正确
②  错误
【判断题】 char[] str=abcdefgh;
①  正确
②  错误
【单选题】 已有定义char str1[15]={“computer”} , str2[15] ; 则语句用法正确的是()。
①  str2=str1;
②  str2=science;
③  scanf(%s,str2);
④  printf(%s,str1);
【单选题】 对于以下结构定义:struct{intlen;char*str;}*p;p->str++中的++加在()
①  指针str上
②  指针p上
③  str所指的内容上
④  以上均不是
【单选题】 函数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
【简答题】 下面程序的运行时,输入CLanguage↙,输出是[填空1]。#includestdio.hvoid main( ){ char str[30];scanf(%s,str); printf(%s,str);}
【单选题】 有如下程序段: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 ”
【单选题】 若定义:string str; 当语句cinstr; 执行时,从键盘输入:Microsoft Visual Studio 0! 所得的结果是str=( )。
①  Microsoft Visual Studio 0!
②  Microsoft
③  Microsoft Visual
④  Microsoft Visual Studio 0
随机题目
【单选题】 下面哪个是集合 A={2, 3, 4}上的整除关系:
①  {2,23,34,4
②  {2,22,32,43,23,33,44,24,34,4
③  {2,22,32,43,33,44,4}
④  {2,22,43,34,4}.
【单选题】 设 A={1, 2, 4, 6}, 则关系 R={x, y|x, y∈A<img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/D50FEE5510C853C83F78D440017D8E6B.png data-tex=\wedge />|x-y|=1}等于:
①  A×A - {1,1
②  {1,22,1
③  {1,12,24,46,62,14,24,1
④  {1,22,24,26,2}.
【单选题】 设函数f: R+<img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/F388E7EE9892B38FECEEB653227F230A.png data-tex=\mapsto />R+, f(x)=2x,则它是:
①  是满射不是单射;
②  是单射不是满射;
③  是双射;
④  都不是.
【单选题】 设 A 是 n 元集(n=1), 则从 A 到 A 的函数中,下面结论不对的是:
①  双射函数有 n!个;
②  单射函数有 n!个;
③  满射函数有 n!个;
④  函数有 n!个.
【单选题】 设 Ri 是 X 上的二元关系, 对于 x∈X 定义集合Ri(x)={y|xRiy}. 如果 X={-4, -3, -2, -1, 0, 1, 2, 3, 4}, 且令R2={x, y|x, y∈X<img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/D50FEE5510C853C83F78D440017D8E6B.png data-tex=\wedge />y-1y+2},则R2(-1) =
①  {1,2,3,4};
②  {2,3,4};
③  { -1,0};
④  { -2, -1}。
【单选题】 设函数f: Z<img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/F388E7EE9892B38FECEEB653227F230A.png data-tex=\mapsto />N, f(x)=|x|,则它是:
①  是满射不是单射;
②  是单射不是满射;
③  是双射;
④  都不是.
【单选题】 下面哪个是集合 A={2, 3, 4}上的小于等于关系:
①  {2,23,34,4
②  {2,22,32,43,23,33,44,24,34,4
③  {2,22,32,43,33,44,4}
④  {2,22,43,34,4}.
【单选题】 设 A = {1, 22, 43, 3},B = {1, 32, 44, 2},则差关系A-B等于:
①  {1,21,32,43,34,2
②  {2,4
③  {1,21,33,34,2
④  {1,23,3}.
【单选题】 设 Ri 是 X 上的二元关系, 对于 x∈X 定义集合Ri(x)={y|xRiy}. 如果 X={-4, -3, -2, -1, 0, 1, 2, 3, 4}, 且令R3={x, y|x, y∈X<img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/D50FEE5510C853C83F78D440017D8E6B.png data-tex=\wedge /><img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/0305FF21DAA4ED8519EFCEDC63EB7EC5.png data-tex={ x }^{ 2 }/>≤y},则R3(3) =
①  {0};
②  {1};
③  <img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/E566BCAE77E174BC709DE66706F41CEC.png data-tex=\emptyset />;
④  { -1}。
【单选题】 设函数f: S<img class=jc-formula style=vertical-align: middle; src=https://huaweicloudobs.ahjxjy.cn/F388E7EE9892B38FECEEB653227F230A.png data-tex=\mapsto />R+, S=(0, 1), f(x)=1/x,则它是:
①  是满射不是单射;
②  是单射不是满射;
③  是双射;
④  都不是.