试题与答案

—Miss Zhou is very popular with the stud

题型:选择题

题目:

—Miss Zhou is very popular with the students.
—Yes. Her classes are _______ lively and interesting.

A. always
B. sometimes
C. hardly

答案:

答案:A

试题推荐
题型:单项选择题

有如下类定义:
class MyBase
int k;
public:
MyBase(int n=0):k(n)
int value( )constreturn k;

class MyDerived:MyBase
int j;
public:
MyDerived(int i):j(i)
int getK( )eonstreturn k;
int getJ( )constreturn j;

编译时发现有一处语法错误,对这个错误最准确的描述是

A.函数getK试图访问基类的私有成员变量K

B.在类MyDerived的定义中,基类名MyBase前缺少关键字public、protected或private

C.类MyDerived缺少一个无参的构造函数

D.类MyDerived的构造函数没有对基数数据成员K进行初始化

查看答案
微信公众账号搜索答案