下列各项中,属于会计信息质量要求的有()。
A.重要性
B.可比性
C.相关性
D.权责发生制
第1题
阅读下面程序 1public class Try extends Thread{ 2public static void main(String args[]){ 3Tryt=new Try(); 4t.start(); 5} 6 7publicvoidrun(intj){ 8inti=0; 9while(i<5){ 10System.out.println("祝你成功!"); 11 i++; 12} 13} 14} 该程序要求打印5行“祝你成功!”,必须改正程序中的某行代码,程序才能完成。选择正确的修改是()。
A.将第1行的extendsThread改为implementsRunnable
B.将第3行的newTry()改为newThread()
C.将第4行t.start()改为start(t)
D.将第7行的publicvoidmn(intj)改为publicVoidmn()
第2题
阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3 Try t=new Try(); 4 t.start(); 5 } 6 7 public void run(int j){ 8 int i=0; 9 while(i<5){ 10 System.out.println(“祝你成功!”); 11 i++; 12 } 13 } 14 } 该程序要求打印5行“祝你成功!”,必须改正程序中的某行代码,程序才能完成。选择正确的修改是
A.将第1行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行t.start()改为start(t)
D.将第7行的public void run(int j)改为public void run()
第3题
阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3 Try t=new Try(); 4 t.start(); 5 } 6 7 public void run(int j){ 8 int i=0; 9 while(i<5){ 10 System.out.println(“祝你成功!”); 11 i++; 12 } 13 } 14 } 该程序要求打印5行“祝你成功!”,必须改正程序中的某行代码,程序才能完成。选择正确的修改是
A.将第1行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行t.start()改为start(t)
D.将第7行的public void run(int j)改为public void run()
第4题
阅读下面程序 1 public class Try extends Thread { 2 public static void main(String args[]) { 3 Try t=new Try(); 4 t.start(); 5 } 6 7 public void run(int j) { 8 int i=0; 9 while(i<5) { 10 System.out.println("祝你成功!"); 11 i++: 12 } 13 } 14 } 该程序若能打印5行“祝你成功!”,必须改正程序中的某行代码,选择正确的修改是
A.将第1行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行的t.start()改为start(t)
D.将第7行的public void run(int j)改为public void run()
第5题
(28 )阅读下面程序
1 public class Try extends Thread{
2 public static void main(String args[ ]){
3 Try t = new Try();
4 t.start();
5 }
6
7 public void run(int j){
8 int i = 0;
9 while(i<5){
10 System.out.println(" 祝你成功! ");
11 i++;
12 }
13 }
14 }
该程序要求打印 5 行 “ 祝你成功! ” ,必须改正程序中的某行代码,程序才能完成。选择正确的修改是
A )将第 1 行的 extends Thread 改为 implements Runnable
B )将第 3 行的 new Try() 改为 new Thread()
C )将第 4 行 t.start() 改为 start(t)
D )将第 7 行的 public void run(int j) 改为 public void run()
第6题
下列程序创建了一个线程并运行,请在下划线处填入正确代码。
public class Try extends Thread{
public static void main(String args[]){
Threadt=new Try();
【 】;
}
public void run(){
System.out.println(“Try!”);
}
}
第7题
阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3Try t=new Try; 4 t.start; 5} 6 7 public void run(intj){ 8 inti=0; 9 while(i<5){ 10 System.out.println("祝你成功!"); 11 i++: 12} 13} 14} 该程序要求打印5行"祝你成功!",必须改正程序中的某行代码,程序才能完成。选择正确的修改是()。
A.将第1行的extendsThread改为implementsRunnable
B.将第3行的newTry改为newThread
C.将第4行t.start改为start(t)
D.将第7行的public void run(intj)改为public void run
第8题
阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3Try t=new Try; 4 t.start; 5} 6 7 public void run(intj){ 8 inti=0; 9 while(i<5){ 10 System.out.println("祝你成功!"); 11 i++: 12} 13} 14} 该程序要求打印5行"祝你成功!",必须改正程序中的某行代码,程序才能完成。选择正确的修改是()。
A.将第1行的extendsThread改为implementsRunnable
B.将第3行的newTry改为newThread
C.将第4行t.start改为start(t)
D.将第7行的public void run(intj)改为public void run
第9题
阅读下列程序:class ThreadTest extends Thread{ public static void main(String[]args){ Thread t=new Thread(this); t.start(); } public void run(){ System.out.print("A thread test."); }} 对该程序而言,正确结论是 ()
A.该程序能够通过编译并打印输出“A thread test.”
B.该程序能够通过编译,但运行时将不调用ThreadTest类中的run()方法,因此不产生任何输出
C.该程序存在编译错误,因为在main()方法中不能使用this指针
D.上述选项都不正确
第10题
A.t.start
B.t.class
C.t.thread
D.t.static
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!