网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
s=’hello world’,s[7:]的值是()
- A、hell
- B、hello
- C、world
- D、orld
参考答案
更多 “s=’hello world’,s[7:]的值是()A、hellB、helloC、worldD、orld” 相关考题
考题
假设在UNIX操作系统环境下执行以下程序: main() { printf("Hello World\n"); fork(); printf("Hello World\n"); } 若程序正常运行,子进程创建成功,那么,屏幕上得到输出的有A.1个Hello WorldB.2个Hello WorldC.3个Hello WorldD.4个Hello World
考题
请阅读下面的程序classTest/{privatestaticStringname;static/{name="World";System.out.print(name);/}publicstaticvoidmain(String[]args)/{System.out.print("Hello");Testtest=newTest();/}/}下列选项中,程序运行结果是()。:A.WorldB.HelloC.World HelloD.Hello World
考题
publicclassX{publicstaticvoidmain(String[]args){strings=newstring(Hello”);modify(s);System.out.printIn(s);}publicstaticvoidmodify(Strings){s+=world!”;}}Whatistheresult?()
A.Theprogramrunsandprints“Hello”B.Anerrorcausescompilationtofail.C.Theprogramrunsandprints“Helloworld!”D.Theprogramrunsbutabortswithanexception.
考题
publicclassX{publicstaticvoidmain(Stringargs){strings=newstring(Hello”);modify(s);System.out.printIn(s);}publicstaticvoidmodify(Strings){s+=world!”;}}Whatistheresult?()
A.Theprogramrunsandprints“Hello”B.Anerrorcausescompilationtofail.C.Theprogramrunsandprints“Helloworld!”D.Theprogramrunsbutabortswithanexception.
考题
下列程序的输出结果为includevoid main(){char*a[]={"hello","the","world"};char*
下列程序的输出结果为 #include<iostream.h> void main() { char*a[]={"hello","the","world"}; char**pa=a; pa++; cout<<*pa<<end1; }A.helloB.theC.worldD.hello the world
考题
下列程序的输出结果是( )。 public class Test { public static void main (String[] args) { String s="hello"; s.replace ('r','m'); System.out.println(s); } }A.helloB.HELLOC.hemmoD.HEMMO
考题
对于如下C语言程序 int main() { printf("Hello World\n"); fork(); printf("Hello World\n"); } 在UNIX操作系统中正确编译链接后,其正确的运行结果是A.共打印出2行Hello WorldB.共打印出3行Hello WorldC.共打印出4行Hello WorldD.共打印出5行Hello World
考题
向页面输出“Hello World”的JavaScript语句是()。
A.printf("Hello World")
B.document.write("Hello World")
C.Hello World
D.alert("Hello World")
考题
下面输出与其他不一致的是?()A、valw="World";println(s"Hello$w")B、valw="World";println("Hello$w")C、println("HelloWorld")D、valw="World";println("Hello"+w)
考题
下列选项中,()是正确的表达式。 A、% String s = “hello world ” ;% B、% = “hello world ” ;% C、% = “hello world ” % D、% ! “hello world ” %
考题
语句PrintFormat(“Hello World”,“”)的输出结果是()。A、hello WORLDB、hello worldC、HELLO WORLDD、HELLO world
考题
public class X { public static void main (String[]args) { string s = new string (“Hello”); modify(s); System.out.printIn(s); } public static void modify (String s) { s += “world!”; } } What is the result?() A、 The program runs and prints “Hello”B、 An error causes compilation to fail.C、 The program runs and prints “Hello world!”D、 The program runs but aborts with an exception.
考题
单选题public class X { public static void main (String[]args) { string s = new string (“Hello”); modify(s); System.out.printIn(s); } public static void modify (String s) { s += “world!”; } } What is the result?()A
The program runs and prints “Hello”B
An error causes compilation to fail.C
The program runs and prints “Hello world!”D
The program runs but aborts with an exception.
考题
单选题下列选项中,()是正确的表达式。A
% String s = “hello world ” ;% B
% = “hello world ” ;% C
% = “hello world ” % D
% ! “hello world ” %
热门标签
最新试卷