Why is the class discussing the technical requirements of murals?
A.They are preparing for an examination.
B.They plan to visit some famous murals.
C.They are helping to design a new building.
D.They will be creating their own mural.
第1题
有以下程序: #include <iostream> #include <cmath> using namespace std; class Distance; class point { public: friend class Distance; Point(int a,int B) { x=a; Y=b; } void Print() { cout<<"X= "<<X<<end1; cout<<"Y= "<<Y<<end1; } private: float X,Y; }; class Distance { public: float Dis(Point &p,Point &q); }; float Distance :: Dis(Point &p,Point &q) { float result; result=sqrt((p.X-q.X)*(p.X-q.X)+(p.Y-q.Y)*(p.Y-q.Y)); cout<<result<<end1; retUrn result; } int main() { Point p(10,10),q(10,30); Distance d; d.Dis(p,q); return 0; } 运行后的输出结果是()。
A.10
B.30
C.0
D.20
第2题
Class a = new Class(); Class b = new Class();
if(a == b) returns true or false, why?
第3题
Why did he take the poetry-writing class?
A.To follow his father.
B.For an easy grade.
C.To change his specialty.
D.For knowledge of poetry.
第4题
Why does the man want to take a class at the community college?
A.Its courses cost less.
B.It has a pool.
C.The class size is smaller.
D.It may offer the class he needs during the day.
第5题
Why does the man go to see his professor?
A.To take a makeup test for a class that he missed
B.To explain why he has been absent from class
C.To turn in an extra credit project to the professor
D.To ask the professor how to bring up his grade
第7题
Why is ______ you are so late for class?
A.that it
B.it be
C.it that
D.that
第8题
Why did he take poetry-writing class?
A.To follow his father.
B.For an easy grade.
C.To change his specialty.
D.For knowledge of poetry.
第9题
Why has Mary been absent from class?
A.She has been ill.
B.She has been in Mexico.
C.Some relatives have been visiting her.
第10题
请完成下列Java程序:实现打印出自己的源文件的功能。
注意:请勿改动main()主方法和其他已有语句内容,仅在下划线处填入适当的语句。
import java.io.*;
import java.util.StringTokenizer;
public class ex27_2{
public static void main(String args[])throws IOException{
FileInputStream fis=new FileInputStream("ex27_2.java");
DataInputStream dis=new DataInputStream(fis);
String str=null;
while(true){
__________________;
if(str==null){
__________________;
}
StringTokenizer st=new StringTokenizer(str);
while(st.hasMoreTokens()){
System.out.print(st.nextToken()+ " " );
}
System.out.println();
}
}
}
第11题
Why does the man want to take a class at the community college?
A.Its course cost less.
B.It has a pool.
C.The class size is smaller.
D.It offers the class he needs during the day.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!