【单选题】【消耗次数: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.90%
②  B.70%
③  C.60%
④  D.50%
【单选题】 第二条亚欧大陆桥的起点——终点是:
①  A.连云港——鹿特丹
②  B.深圳——鹿特丹
③  C.海参巍——鹿特丹
④  D.大连——鹿特丹
【单选题】 根据周琦老师所讲,高德交通信息服务覆盖()多个城市以及全国高速路网。
①  A.一百一十
②  B.一百
③  C.九十
④  D.八十
【单选题】 中国特色社会主义事业总体布局是()。
①  A.“五位一体”
②  B.“四个自信”
③  C.“四个全面”
④  D.中国共产党的领导
【单选题】 从夏朝开始,中国共经历了()朝代,出现83个王朝。
①  A.18个
②  B.28个
③  C.38个
④  D.48个
【单选题】 《坚定不移沿着中国特色社会主义道路前进 为全面建成小康社会而奋斗》是中国共产党第()次代表大会的报告主题。
①  A.十五
②  B.十六
③  C.十七
④  D.十八
【单选题】 ENIAC诞生于哪一年?
①  A.1938年
②  B.1940年
③  C.1942年
④  D.1946年
【单选题】 促进大数据发展部级联席会议在哪一年的4月13日召开了第一次会议?
①  A.2013年
②  B.2014年
③  C.2015年
④  D.2016年
【单选题】 下列不是“一带一路”政治风险中的是:
①  A.美国战略围堵
②  B.俄罗斯战略猜疑
③  C.日本的战略搅局
④  D.以色列的反对
【单选题】 我国目前已在20多个国家建立了()个境外工业园区。
①  A.20
②  B.30
③  C.47
④  D.56