首页/ 题库 / [单选题]下列程序的执行结果是______。 cl的答案

下列程序的执行结果是______。 class A1 implements Runnable { public void run() { for(iht i = 0; i < 10; i++) { System.out.println("i =" + i); if(i == 3) break; } } } public class ex38 { public static void main(String[] args) { Thread th1 = new Thread(new A1()); th1.start (); } }

单选题
2022-01-10 08:32
A、i=1 i=2 i=3 i=4
B、i=1 i=1 i=1 i=1
C、i=0 i=1 i=2 i=3
D、i=1 i=2 i=3
查看答案

正确答案
C

试题解析

标签:
感兴趣题目

要编写高质量的程序,判断程序质量的首要标准是程序的_____①______,要保证程序在多次反复使用过程不发生错误,应该保证程序的_____②______。

Runnable接口中定义的方法是______。
下列程序的执行结果是______。 class A1 implements Runnable { public void run() { for(iht i = 0; i < 10; i++) { System.out.println("i =" + i); if(i == 3) break; } } } public class ex38 { public static void main(String[] args) { Thread th1 = new Thread(new A1()); th1.start (); } }
执行下列程序后的输出结果是______。main(){ int y=10; do {y--;}while(--y); printf("%d ",y--);}
阅读下面程序 public class Test implements Runnable { public static void main(String[] args) { ______ t.start(); } public void run() { System.out.println("Hello!"); } } 程序中下画线处应填入的正确选项是
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ _______________________________________; t. start(); } public void mR(){ System. out. println("Hello!"); }} 在程序下画线处填入正确选项是
下面程序的执行结果是______。 public class ex27 { public static void main(String[] args) { try { return; } finally { System. out. print in ( "Finally" ); } }
执行下列命令后,最后一条命令输出的结果是______。 STORE"?"TO A1 STORE "S" TO A2 STORE 200 TO &A2 ?&A1.&A2
下列程序的执行结果是_____。main(){ int x=23; do { printf("%d",x--);} while(!x);}
写出下列程序[如图1]的运行结果:若程序运行后程序= THEN输入x = -2 ,则输出的结果为 ____输出______ .

一个C语言程序总是从________开始执行。

C语言程序从main()函数开始执行,所以这个函数要写在________。

相关题目

– How about going to the cinema?

 – ___________

要编写高质量的程序,判断程序质量的首要标准是程序的_____①______,要保证程序在多次反复使用过程不发生错误,应该保证程序的_____②______。

高级语言源程序的翻译有两种方式,对程序逐句进行分析并立即执行的这种方式为_____①_______,另一种是需要把程序先转化为目标代码再装入内存运行,这种方式为______②______。

— Any suggestions for my meeting today? 

— __________________________

— I usually go there by train. 

— _________________

— Should I leave earlier tomorrow morning?

— ________________ 

--- ________ you ________ free tomorrow? 

--- No. I ________ free the day after tomorrow.

—Let’s go and see our teacher on Teachers’ Day.

— _________________________________

阅读下面程序 public class Test implements Runnable { public static void main(String[] args) { ______ t.start(); } public void run() { System.out.println("Hello!"); } } 程序中下画线处应填入的正确选项是
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ _______________________________________; t. start(); } public void mR(){ System. out. println("Hello!"); }} 在程序下画线处填入正确选项是
下列程序执行之后,输出的结果是______。 public class exl0 { public static void main(String[] args) { int j=0; a1: for (int i=3;i>0; i--) { j+=i; a2: for (int k=l; k<3; k++) { j*=k; if(i==k) break a1; } } System.out.println(j); } }
下列程序的执行结果是______。 X=-6^2 Print Sgn(x)+Abs(x)+Int(x)
ASP的脚本程序是在服务器端执行的,通常脚本代码不会被别人窥视,另外程序执行完毕后,仅仅将执行结果返回给客户端浏览器,这样做减轻了的_______负担。
ASP的脚本程序是在_______执行的,通常脚本代码不会被别人窥视,另外程序执行完毕后,仅仅将执行结果返回给客户端浏览器,这样做减轻了网络传输的负担。
下面程序段执行后,输出的结果是______。Dim pi As Integerpi = 314159Print "pi"
若将PRIVATE Y改为PRIVATE X,则程序执行后的显示结果为 ______。

--- ________ you ________ free tomorrow? 

--- No. I ________ free the day after tomorrow.

下列程序执行后的输出结果是______。
下列程序段的执行结果是______。
下列程序的运行结果是______。
广告位招租WX:84302438

免费的网站请分享给朋友吧