若有以下程序 #include <iostream>using namespa

题型:单项选择题

问题:

若有以下程序
#include <iostream>
using namespace std;
class A

private:
int a;
public:
A(int i)

a=i;

void disp()

cout<<a<<",";

;
class B

private:
int b;
public:
B(int j)

b=j;

void disp()

cout<<b<<",";

;
class C: public B,public A

private:
int c;
public:
C(int k):A(k-2),B(k+2)

c=k;

void disp()

A::disp();
B::disp();
cout<<c<<end1;

;
int main()

C obj(10);
obj.disp();
return 0;

程序执行后的输出结果是

A.10,10,10

B.10,12,14

C.8,10,12

D.8,12,10

考点:计算机等级考试C++二级C++笔试
题型:单项选择题

阅读短文,根据短文内容判断正(T)误(F)。

     I take an after-school Spanish class once a week. One day, when the class was over, there weren't any buses going to my house, and my parents couldn't pick me up. So, I had to walk home myself.

     It was a long walk but I enjoyed it. The wind was blowing (吹拂) gently. And I saw birds flying and

trees changing color. A few times I saw something special, like a small snake near the sidewalk (人行道)

and two cars very close to crashing (撞车)! Later, I got used to (习惯) the distance. It became a part of my daily life, like getting dressed.

     People always think walking long distances is unimaginable (难以想象的). Cars keep us from nature. But I really enjoy my walk home from school.

( ) 1. The writer takes an after-school Spanish class every day.

(     ) 2. The writer's parents asked him to walk home.

( ) 3. The writer didn't enjoy the long walk.

(     ) 4. The writer loves being close to nature.

(     ) 5. The writer sees a car accident on his way home.

题型:单项选择题

由猪肉的18%,牛肉的80%、2%的调味汁精细制成的食品(罐头装,净重200克,可见少量肉粒)

题型:单项选择题

列哪项检查对新生儿缺氧缺血性脑病的诊断无帮助()

A.脑电图

B.头颅摄片

C.头颅CT

D.头颅核磁共振

E.头颅超声

题型:单项选择题

螺钉连接用于结构较紧凑的场合,但该种连接不宜用于()的场合。

A、较厚零件的连接;

B、零件结构较松弛的连接;

C、需要经常拆卸的连接;

D、有色金属的连接。

题型:单项选择题

下列有关砂石材料试验结果越高表示该砂石材料性能品质越不好的指标包括()。

A、集料与沥青的粘附等级

B、洛杉矶磨耗值

C、压碎值

D、细集料的细度模数

更多题库