题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-05-01 22:20:26

[单项选择] String a = “ABCD”;  String b = a.toLowerCase();  b.replace(‘a’, ‘d’);  b.replace(‘b’, ‘c’);  System.out.println(b);   What is the result? () 
A.  abcd
B.  ABCD
C.  dccd
D.  dcba
E.  Compilation fails.
F.  An exception is thrown at runtime.

更多"String a = “AB"的相关试题:

[单项选择] 11. String test = “Test A. Test B. Test C.”;  12. // insert code here  13. String[] result = test.split(regex);  Which regular expression inserted at line 12 will correctly split test into “Test A,” “Test B,” and “Test C”?()
A.  String regex = “”;
B.  String regex = “ “;
C.  String regex = “.*“.
D.  String regex = “//s”
E.  String regex = “//.//s*”;
F.  String regex = “//w[ /.] +“;
[单项选择] 11. String test = “This is a test”;  12. String[] tokens = test.split(”/s”);  13. System.out.println(tokens.length);  What is the result?() 
A.  0
B.  1
C.  4
D.  Compilation fails.
E.  An exception is thrown at runtime.
[多项选择] 35. String #name = “Jane Doe”;  36. int$age=24;  37. Double_height = 123.5;  38. double~temp = 37.5;  Which two are true?()
A.  Line 35 will not compile.
B.  Line 36 will not compile.
C.  Line 37 will not compile.
D.  Line 38 will not compile.
[单项选择] String[] elements = { “for”, “tea”, “too” };  String first = (elements.length > 0)? elements[0] null;  What is the result?()
A.  Compilation fails.
B.  An exception is thrown at runtime.
C.  The variable first is set to null.
D.  The variable first is set to elements[0].
[填空题] 5. String foo = “base”;   6. foo.substring(0,3);   7. foo.concat(“ket”)  8.   Type the value of foo at line 8.()
[填空题] 3. string foo = “ABCDE”;  4. foo.substring(3);  5. foo.concat(“XYZ”);  6.     Type the value of foo at line 6.()
[单项选择] 12. String csv = “Sue,5,true,3”;  13. Scanner scanner = new Scanner( csv);  14. scanner.useDelimiter(”,”);  15. int age = scanner.nextInt();  What is the result?() 
A.  Compilation fails.
B.  After line 15, the value of age is 5.
C.  After line 15, the value of age is 3.
D.  An exception is thrown at runtime.
[简答题] 梦,不曾失去     “大漠孤烟直,长河落日圆。”王维笔下的安静祥和的大漠曾给了我美好的幻想。万里黄沙的大漠如此宁静,的确让我有想去大漠的冲动。但《绝境的地图》却使我踌躇了。     这本书主要介绍了中英探险队联合穿越塔克拉玛干沙漠的故事。60个日日夜夜,队员们在一望无垠的沙堆中忍受着烈日、干渴,忍受着突如其来的风沙和意想不到的疾病……60天下来,烈日把他们染成了黑色,干渴把他们折磨得瘦弱,但他们却得到比肉体更宝贵的东西——坚强与自信。      他们的壮举令我钦佩不已,但书中逼真的描写及插图又让我无法继续做梦,那儿充满烈日阳光,那儿对水的需求已超出想象。我退缩了。      然而,没有梦的日子,空虚、寂寞,比遭受痛苦还要难过。我需要梦,需要坚强。      于是,我决定:要去大漠,在我自己的地图上,画下我,寻找我坚定的方向。 作文教学对培养学生具有哪些意义? 
[单项选择] The file “file.txt” exists on the file system and contsins ASCII text.  Given:   try {   File f = new File(“file.txt”);    OutputStream out = new FileOutputStream(f, true);   }    catch (IOException) {}   What is the result?()
A.  The code does not compile.
B.  The code runs and no change is made to the file.
C.  The code runs and sets the length of the file to 0.
D.  An exception is thrown because the file is not closed.
E.  The code runs and deletes the file from the file system.
[单项选择] String foo = “blue”;    Booleanbar = new Boolean [1];    if (bar[0]) {    foo = “green”;    }   What is the result?()  
A.  Foo has the value of “”
B.  Foo has the value of null.
C.  Foo has the value of “blue”
D.  Foo has the value of “green”
E.  An exception is thrown.
F.  The code will not compile.
[单项选择] 11. String test= “a1b2c3”;  12. String[] tokens = test.split(”//d”);  13. for(String s: tokens) System.out.print(s +“ “);  What is the result?() 
A.  a b c
B.  1 2 3
C.  a1b2c3
D.  a1 b2 c3
E.  Compilation fails.
F.  The code runs with no output.
G.  An exception is thrown at runtime.
[单项选择] 在AUTOCHIEF C20主机遥控系统中,当“READY FOR START”灯亮时,表明(),主机可以启动。 ①主机突然停车故障已复位; ②启动空气压力低; ③主启动阀打开; ④转速检测系统正常; ⑤盘车机啮合; ⑥无三次启动失败故障。
A. ①②③④
B. ②③⑤⑥
C. ①③④⑥
D. ①②④⑤
[简答题] 已知(AX)=836BH,X分别取下列值,执行“TEST  AX,X”后,标志位ZF、CF、OF、SF各是什么? (1)X=0001H (2)X=8000H  (3)X=0007H (4)X=0FFFFH (5)X=0
[简答题] 已知(AX)=836BH,X分别取下列值,执行“CMP  AX,X”后,标志位ZF、CF、OF、SF各是什么?  (1)X=3000H (2)X=8000H (3)X=7FFFFH (4)X=0FFFFH (5)X=0
[多项选择]                         下列解释正确的是()
A. out_applet.java中一定有一个参数是“display_string” 
B. 具有两个属性“name”和“value” 
C. value是参数的名称 
D. “good morning”通过 标记传递给“Our_Applet.class”
[简答题] 1.“记住, 每天喝瓶太子奶!”(湖南太子奶)  2.“康师傅方便面, 好吃看得见!”(康师傅方便面)  3.“钻石恒久远, 一颗永流传。”(戴尔比斯) 指出以上广告语类型,并加以说明。

我来回答:

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

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码