I ________to go out of the classroom by my math teacher. A. makeB. madeC. was madeD.am making
I ________to go out of the classroom by my math teacher.
A. make
B. made
C. was made
D.am making
相关考题:
下列程序执行的结果是( )。 public class Test{ public static void main(String[ ] args) { int i, j, k; for(int n=100; n<=200; n++ ) { i = n/100; j = n/10-i* 10; k = n%10; if(n == Math.pow(i, 3) + Math.pow(j, 3) + Math.pow(k, 3)) System.out.println(n); } }A.153B.167C.173D.137
下面程序段的输出结果是( )。 public class Test{ public static void main(String args[]){ int X,y; x=(int)Math.sqrt(5)/2+(int)Math.random*5/2; y=(int)Math.sqrt(3)/2+(int)Math.random*3/2; if(xv) System.OUt.println("xy"); elseif(x= =y) System.out.println("x=Y"); else System.out.println("xy"): } }A.xyB.x=YC.xyD.编译错误
publicclassWow{publicstaticvoidgo(shortn){System.out.println(”short”);}publicstaticvoidgo(Shortn){System.out.println(”SHORT”);}publicstaticvoidgo(Longn){System.out.println(”LONG”);}publicstaticvoidmain(String[]args){Shorty=6;intz=7;go(y);go(z);}}Whatistheresult?()A.shortLONGB.SHORTLONGC.Compilationfails.D.Anexceptionisthrownatruntime.
publicclassYikes{publicstaticvoidgo(Longn){System.out.println(”Long);}publicstaticvoidgo(Shortn){System.out.println(”Short);}publicstaticvoidgo(intn){System.out.println(”int);}publicstaticvoidmain(String[]args){shorty=6;longz=7;go(y);go(z);}}Whatistheresult?()A.intLongB.ShortLongC.Compilationfails.D.Anexceptionisthrownatruntime.
Whatwillbewrittentothestandardoutputwhenthefollowingprogramisrun?()publicclassQ8499{publicstaticvoidmain(Stringargs[]){doubled=-2.9;inti=(int)d;i*=(int)Math.ceil(d);i*=(int)Math.abs(d);System.out.println(i);}}A.12B.18C.8D.9E.27
下面程序段的输出结果是______。 public class Test{ public static void main(String args[ ]){ int x,y; x=(int)Math.sqrt(5/2)+(int)Math.random( )*5/2; y=(int)Math.sqrt(3/2)+(int)Math.random( )*3/2; if(x>y) System.out.println("x>y"); else if(x==y) System.out.println("x=y"); else System.out.println("x<y"); } }A.x>yB.x=yC.x<yD.编译错误
阅读下面的程序:public class test {public static void main(String args[]) {int i;float f = 2.3f;double d = 2.7;i = ((int)Math.ceil(f)) * ((int)Math.round(d));System.out.println(i);}} 程序执行后,运行结果为以下哪个选项?() A.9B.5C.6D.6.1
下列程序编译错误,是由于划线处缺少某个语句,该语句是______。 include class A { pr 下列程序编译错误,是由于划线处缺少某个语句,该语句是______。include<iostream.h>class A{private:int numl;public:A( ):numl(0){}A(int i):numl(i){}};class B{private:int num2;public:B( ):num2(0){}B(int i):num2(i){}int my_math(A obj1, B obj2);};int B::my_math(A obj1,B obj2){return(obj1.numl+obj2.num2);}void main(void){A objl(4);B obj,obj2(5);cout<<"obj1+obj2:"<<obj.my_math(obj1,obj2);}
下列程序运行的结果为:public class test {public static void main(String args[]) {int i;float f = 2.3f;double d = 2.7;i = ((int)Math.ceil(f)) * ((int)Math.round(d));System.out.println(i);}} A. 4B. 5C. 6D. 6.1E. 9
下面程序段的运行结果是() int i; float f=2.3f; double d=2.7; i=((int)Math.ceil(f))*((int)Math.round(d)); System.out.println(i);A.5B.4C.6D.9