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

题型:单项选择题

问题:

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

private:
int a,b;
public:
Base(int x, int y)

a=x;
b=y;

void disp ()

cout<<a<<" "<<b<<end1;

;
class Derived : public Base

private:
int c;
int d;
public:
Derived(int x,int y, int z,int m) :Base(x,y)

c=z;
d=m;

void disp ()

cout<<c<<" "<<d<<end1;

;
int main()

Base b(5,5),*pb;
Derived obj(1,2,3,4);
pb=&obj;
pb->disp();
return 0;

执行程序后的输出结果是( )。

A.1,2

B.3,4

C.2,3

D.5,5

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

将56克不纯的铁粉与足量的稀硫酸反应,仍能生成2克氢气,是因为(  )

A.铁中含有碳和锌

B.铁表面有铁锈

C.铁中含有碳和铝

D.铁中含有碳

题型:单项选择题

传播作为一种普遍的社会行为,具有哪些基本特性()。

A.社会性

B.普遍性

C.工具性

D.互动性

E.共享性

题型:单项选择题

一般通过输血而感染HIV的患者出现血清抗体阳性的时间为()

A.1周内

B.2~8周

C.3个月

D.6个月

E.1年

题型:单项选择题

从安全角度考虑,设备停电必须有一个明显的。()

A、断开点

B、标示牌

C、接地处

题型:单项选择题

画水平线时,线条应沿尺身工作也()向()画出。

A、左右

B、右左

C、左内侧

D、右内侧

更多题库