代码print(re.match(’^[a-zA-Z]+$’,’abcDEFG000’))的输出结果为()。
第1题:
A、PYTHON
B、PYT
C、PYTH
D、PYTHON
第2题:
用Print方法在Form1窗体中显示出4个#号的正确代码为( )。
A.Debug.Print"####"
B.Print ####
C.Form1 Print ####
D.Form1.Print"####"
第3题:
阅读下列代码 public class Test { public static void main(String args[]) { String s = "Test"; switch (s) { case "Java": System.out.print("Java"); break; case "Language": System.out.print("Language"); break; case "Test": System.out.print("Test"); break; } } } 其运行结果是( )。
A.Java
B.Language
C.Test
D.编译出错
第4题:
给定以下JAVA代码,这段代码编译运行后输出的结果是( )
publicclassTest{
publicstaticintaMethod(inti)throwsException{
try{
returni/10;
}catch(Exceptionex){
thrownewException("exceptioninaaMothod");
}finally{
System.out.print("finally");
}
}
publicstaticvoidmain(String[]args){
try{
aMethod(0);
}catch(Exceptionex){
System.out.print("exceptioninmain");
}
System.out.print("finished");
}
}
A、finallyexceptioninmainfinished
B、exceptioninmainfinally
C、finallyfinished
D、finallyexceptioninmainfinished
第5题:
在VB6.0的集成开发环境中调试程序时,用户可直接在()窗口中用Print方式或直接在程序中用Debug.Print方法显示表达式的值。
第6题:
代码print(1,2,3,sep=’:’)的执行结果为()。
第7题:
代码print(3,4)是Python2.x的输出格式。
第8题:
"假设x=2.3456,则执行代码Print Format(x,""00##.0%"")后窗体上的结果为()。"
第9题:
class Waiting implements Runnable { boolean flag = false; public synchronized void run() { if (flag) { flag = false; System.out.print("1 "); try { this.wait(); } catch (Exception e) { } System.out.print("2 "); } else { flag = true; System.out.print("3 "); try { Thread.sleep(2000); } catch (Exception e) { } System.out.print("4 "); notify(); } } public static void main(String [] args) { Waiting w = new Waiting(); new Thread(w).start(); new Thread(w).start (); } } 以下哪两项是正确的?()
第10题:
第11题:
代码输出 1 3 4
代码输出 3 4 1
代码输出 1 2 3 4
代码不会完成
第12题:
abigger’
bbigger’
10
20
第13题:
publicclassPet{publicvoidspeak(){System.out.print(Pet”);}}publicclassCatextendsPet{publicvoidspeak(){System.out.print(Cat”);}}publicclassDogextendsPet{publicvoidspeak(){System.out.print(Dog”);}}执行代码Pet[]p={newCat(),newDog(),newPet()};for(inti=0;i〈p.length;i++)p[i].speak();后输出的内容是哪项?()
A.PetPetPet
B.CatCatCat
C.CatDogPet
D.CatDogDog
第14题:
编译和执行以下代码,输出结果是( )。 int i=1; switch (i) { case 0: System.out.print("zero,"); break; case 1: System.out.print("one,"); case 2: System.out.print("two,"); default: System.out.println("default"); }
A.one,
B.one,two,
C.one,two,default
D.default
第15题:
用Print方法在Form1窗体中显示出四个星号的正确代码为()。
A.Print"****"
B.Form1_Print"****"
C.Form1.Print"****"
第16题:
以下哪行代码不会显示匹配项?()
第17题:
假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome <%= login.getName() %>以下那个选项与此语句的功能相同?()
第18题:
b=10a=20ifa>b:print(‘abigger’)else:print(‘bbigger’)以上代码输出内容是()
第19题:
语句print(re.match(’abc’,’defg’))输出结果为()。
第20题:
public class Pet{ private String name; public Pet(){ System.out.print(1); } public Pet(String name){ System.out.print(2); } } public class Dog extends Pet{ public Dog(){ System.out.print(4); } public Dog(String name){ //这里隐藏了一句代码:super.pet(); this(); System.out.print(3); } } 执行new Dog(“棕熊”);后程序输出是哪项?()
第21题:
对
错
第22题:
代码输出l 3 4
代码输出3 4 1
代码输出l 2 3 4
代码输出1 3 4 2
代码运行完毕
代码不会完成
第23题: