【单选题】【消耗次数:1】
类 Teacher 和 Student 是类 Person 的子类; Teacher t; Student s; // t and s are all non-null. if (t instanceof Person ){ s=(Student)t; } 最后一条语句的结果是:( )
将构造一个Student 对象;
表达式是合法的;
表达式是错误的;
编译时正确, 但运行时错误。
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 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.
【单选题】 循环语句中的for语句,其一般形式如下: for(表达式1;表达式2;表达式3) 语句 其中表示循环条件的是( )
①  表达式1
②  表达式2
③  表达式3
④  语句
【单选题】 假设已经定义好了一个类student,现在要定义类derived,它是从student私有派生的,定义类derived的正确写法是()。
①  clasederived::studentprivate{…}
②  clasederived::studentpublic{…}
③  clasederived::privatestudent{…}
④  clasederived::publicstudent{…}
【单选题】 The English teacher strongly advises that every student ____ an all English dictionary.
①  to buy
②  buying
③  in buying
④  buy
【单选题】 The students can ’t finish the work ______ the teacher’s help.
①  A. with
②  B.for
③  C.without
④  D.on
随机题目
【单选题】 一种观点认为,只要企业能提高产品的质量、增加产品的功能,便会顾客盈门。这种观念就是( )。
①  生产观念
②  产品观念
③  推销观念
④  市场营销观念
【单选题】 市场导向型的营销观是指( )。
①  生产观念
②  产品观念
③  推销观念
④  市场营销观念
【单选题】 自行车、摩托车、轿车企业是( )。
①  愿望竞争者
②  平行竞争者
③  产品形式竞争者
④  品牌竞争者
【单选题】 下列活动哪种不属于实地调查?( )
①  在商店随机采访顾客
②  请顾客参观新产品展示会
③  从零售商收集电器销售额历史数据
④  在商场入口记录客流量
【单选题】 以调查某一时期某种产品的销售量为何大幅度滑坡为目的的市场调查研究是( )研究。
①  探测性
②  描述性
③  因果关系
④  预测性
【单选题】 消费者的购买行为主要由( )决定的。
①  学习
②  知觉
③  动机
④  感觉
【单选题】 (  )市场的需求具有鲜明的可诱导性。
①  产业
②  中间商
③  政府
④  消费者
【单选题】 以“顾客需要什么,我们就生产供应什么”作为座右铭的企业是( )企业?
①  生产导向型
②  销售导向型
③  市场营销导向型
④  社会营销导向型
【单选题】 我国集体合同的效力范围及于( )。
①  A、企业工会的全体会员
②  B、签订集体合同的职工代表
③  C、参与合同讨论的企业职工
④  D、企业全体职工,包括没有参加工会的职工
【判断题】 集体合同由工会代表企业职工一方与用人单位订立。
①  正确
②  错误