题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-08-30 00:05:48

[单选题]下列程序的功能是统计字符串中"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.>=

更多"[单选题]下列程序的功能是统计字符串中'array'的个数,在程序的空"的相关试题:

[单选题]下列程序的功能是统计字符串中"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.错误
[单选题]C#语言中,字符串常量@"123\n456"的长度(有效字符个数)是( )。
A.6
B.7
C.8
D.9
[单选题]假定一个字符串的长度为n,则定义存储该字符串的字符数组的长度至少为( )。
A.n-1
B.n
C.n+1
D.n+2
[单选题]字符串“IBM”中的字母B 存放在计算机内占用的二进制位个数是 。( )
A.8
B.4
C.2
D.1
[单选题]在Word中进行替换时,替换字符串的长度( )被替换的字符串。
A.必须小于
B.必须大于
C.不必等于
D.必须等于

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码