下列各句在表达上没有语病的一句是______。
A.这个文化站已成为教育和帮助后进青年,挽救和培养失足青年的场所,多次受上级领导的表彰
B.电子工业能否迅速发展,并广泛渗透到各行各业中去,关键在于要加速训练并造就一批专门技术人才
C.你知道每斤蜂蜜中包含蜜蜂的多少劳动吗?根据科学家统计,蜜蜂每酿造1斤蜜,大约要采集50万朵的花粉
D.先生侃侃而谈,他的音容笑貌没什么变化,但眼角的皱纹似乎暗示着这些年的艰辛和不快
第1题
使下列程序正常运行并且输出“Hello!”,横线处应填写的内容是()。
A.extends Thread
B.extends Float
C.extends Iostream
D.extends Stdio
第2题
在下画线处填入代码,使程序正常运行并且输出“Hello!”。
class Test ______ {
public staric void maim (string[] args) {
Test t=new Test();
t.start();
}
public void run() {
System.out.println("Hello!");
}
}
第3题
请在下划线处填入代码,是程序正常运行并且输出 “ Hello! ”
Class Test 【 15 】 {
Public static void main (String[] arge){
Test t = new Test();
t.start();
}
Public void run(){
System.out.println(“ Hello! ” );
}
第4题
清在下划线处填入代码,使程序正常运行并且输出“Hello!”
classTesl______{
publicstaticvoidmain(string[]args){
Test=newTest();
t.start();
}
Pubhcvoidrun(){
System.out.println("Hello!");
}
}
第5题
第6题
要使下列程序能够正确运行,则横线处应填写的内容是()。
A.int
B.start
C.paint
D.stop
第7题
下面程序对数组中的每个元素赋值,然后按逆序输出。请在横线处填入适当内容,使程序能正常运行。
import java.io.*;
public class ArrayTest{
public static void main(String args[]){
int i;
int a[] = new int[5];
for(i=0;i<5;i++)
a=i;
for(______i>=0; i--)
System. out .println ("a ["+i+"] ="a) ;
}
}
第8题
在下列程序的横线处填上适当的内容,使程序执行后的输出结果为ABCD。 #include<iostream> using namespace std; class A { public:A(){cout<<‘A’;} }; Class B: { public:B(){cout<<‘B’;} }; class C:virtual public A { public:C(){cout<<‘C’;} }; class D:p
A.public A
B.private A
C.protected A
D.virtual public A
第9题
A.程序运行出错,因为Base类未定义构造方法;
B.程序运行正常,输出Base
C.程序运行正常,输出Base Test
D.程序运行正常,但无输出
第10题
下列程序段的输出是()。 public class Test { public static void main (String args[ ]) { String ss1 = new String("hello"); String ss2 = new String("hello"); System.out.println(ssl == ss2); System.out.println (ssequals(ss2)); } }
A.true, false
B.true, true
C.false, true
D.false, false
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!