A.李某
B.M公司
C.李某和M公司
D.软件开发部
第1题
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
第2题
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
第3题
A.Hello World
B.Hello
C.World
D.没有输出
第4题
设String对象s=”Hello”,运行语句System.out.println(s.concat(“World!”));后String对象s的内容为”Helloworld!”,所以语句输出为Helloworld!()
第5题
A.String s = “Hello” ; String t = “World” ; String k = s+t ;
B.String s = “hello” ; String t ; t = s[3]+”one” ;
C.String s = “Hello” ;
D.String s = “Hello world!” ;
第6题
下列程序执行后,字符串s应是 String greets="hello"; String s=greets.substring(0,3);
A.ello
B.hell
C.hello
D.hl
第7题
A.'Hellb Wbrld'
B.'Hellb World'
C.'Hello Wbrld'
D.'Hello World'
第8题
执行下列代码后,哪个结论是正确的 ()String[] s=new String[10];
A. s[10] 为 "";
B. s[9] 为 null;
C. C. s[0] 为 未定义
D. s.length 为10
第9题
A、#include <iostream> #include <string> using namespace std::string_literals; int main() { const char* s = R"Hello World"; std::cout << s; } 输出:Hello World
B、#include <iostream> #include <string> using namespace std::string_literals; int main() { const char* s = R"(Hello\n World)"; std::cout << s; } 输出: Hello\n World
C、#include <iostream> #include <string> using namespace std::string_literals; int main() { const char* s = R"Hello(Hello\n World)Hello"; std::cout << s; } 输出: Hello\n World
D、#include <iostream> #include <string> using namespace std::string_literals; // main().......... std::string s1 = "Hello\0World"; auto s2= "Hello\0World"s; s1.size()的值是5 s2.size()的值是11
E、#include <iostream> #include <string> using namespace std::string_literals; // main().......... auto s1 = "Hello\0World"s; s1的类型是 const char*
第10题
A.<% string s="hello world" ;%>
B.<%="hello world" ;%>
C.<%="hello world"%>
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!