有如下类声明:class MyBASE{int k;public: void set

题型:单项选择题

问题:

有如下类声明:

class MyBASE{

int k;

public: void set(iht n)

{k=n;} int get()coast{return k;}

};

class MyDERIVED:pnoted My BASE

{ protected: int j;

public: void set(int m,int n){MyBASE::set(m);j=n;

}

int get()const{return MyBASE::get()+j;}

};

则类MyDERIVED中保护的数据成员和成员函数的个数是()

A.4

B.3

C.2

D.1

考点:计算机等级考试C++全国计算机等级考试二级C++真题2005年9月
题型:单项选择题

- Where is my raincoat?

-I don't have the slightest idea.______ the room?

A.Did you check

B.Do you check

C.Have you checked

D.Are you checking

题型:单项选择题

Some students play ________ football and some students play ________ piano

after school.      [ ]

A. the, X

B. the, the

C. X, X

D. X, the

题型:单项选择题

23. Thousands of years ago, people killed the wild horse that lived around _____ food. _____ time, people began to catch and raise animals .

A.for; Through

B.as; During

C.for; Over

D.on; Over

题型:单项选择题

在人身意外伤害保险中,保险人给付保险金的条件是被保险人必须因遭受客观事故而导致某种后果,如( )。

A.死亡或疾病

B.疾病或失业

C.残疾或死亡

D.退休或残疾

题型:单项选择题

患儿,女,5岁。2天前高热,体温39℃,近日全身出现红斑疹、丘疹,躯干部最多,四肢少,部分结痂,心肺功能正常。

患儿最可能的是()

A.麻疹

B.水痘

C.幼儿急疹

D.猩红热

E.风疹

更多题库