【单选题】【消耗次数:1】
类 Teacher 和 Student 是类 Person 的子类; Teacher t; Student s; // t and s are all non-null. if (t instanceof Person ){ s=(Student)t; } 最后一条语句的结果是:( )
将构造一个Student 对象;
表达式是合法的;
表达式是错误的;
编译时正确, 但运行时错误。
参考答案:
复制
纠错
相关题目
【单选题】 The student followed the teacher’s_______and finally passed the test.
①  advices
②  advice
③  advise
【单选题】 以下值为.T.的表达式是( )
①  !(3>=6 )
②  !.t.
③  3!=9 AND 1>9+1
④  3<1 or 4<6
【单选题】 若有变量说明:chars,s1[20];执行语句:s=student;s1=s;正确的叙述是:()。
①  二个语句都不正确
②  s所指向的字符串和s1的值都是student
③  第一个语句正确,而第二个语句不正确
④  第二个语句正确,而第一个语句不正确
【单选题】 表达式和表达式语句的区别是( )。
①  表达式的后面加一个分号就构成了表达式语句
②  表达式的后面加一个冒号就构成了表达式语句
③  表达式的后面加一个点就构成了表达式语句
④  表达式的后面加一个句号就构成了表达式语句
【单选题】 If it _____ for his help, I wouldn’t be a university student now.
①  hasn’t been
②  hadn’t been
③  wasn’t
④  weren’t
【单选题】 What role does a teacher play in the following activity? The teacher asks a student a question “Have you ever bought clothes with problems?” If the student doesn’t seem to be ready, the teacher says “for example, a shirt without...” and points to the buttons on his own shirt or jacket.
①  Controller
②  Assessor
③  Organizer
④  Prompter.
【单选题】 The students can ’t finish the work ______ the teacher’s help.
①  A. with
②  B.for
③  C.without
④  D.on
【单选题】 The English teacher strongly advises that every student ____ an all English dictionary.
①  to buy
②  buying
③  in buying
④  buy
【单选题】 假设有关系R和S,关系代数表达式R -(R - S)表示的是( )。
①  R ∩ S
②  R ∪ S
③  R – S
④  R × S
【单选题】 假设有关系R和S,关系代数表达式R -(R - S)表示的是( )。
①  A.R ∩ S
②  B.R ∪ S
③  C.R – S
④  D.R × S
随机题目
【判断题】 A: Excuse me, can I smoke here? B: No.
①  正确
②  错误
【判断题】 A: Tom speaks English very well. B: So he does.
①  正确
②  错误
【判断题】 A: Dont you think this colour is too dark? B: Yes, I think so.
①  正确
②  错误
【判断题】 A: May I put my books here? B: Yes, put them please.
①  正确
②  错误
【判断题】 A: Could you show me your passport? B: Sure.
①  正确
②  错误
【判断题】 A: Do you mind if I take three days off this week? B: Never mind.
①  正确
②  错误
【判断题】 A: May I play basketball after supper? B: No, you mustnt.
①  正确
②  错误
【判断题】 A: A Merry Christmas and Happy New Year to you! B: The same to you!
①  正确
②  错误
【判断题】 A: Can you do this for me, please? B: No, thanks.
①  正确
②  错误
【单选题】 He found [填空] wall.There was [填空] “s”on the corner of [填空] wall.
①  a,an,the
②  a,a,the
③  an,an,an
④  the,a,a