试题与答案

在下划线处填上缺少的部分。 #include<iostream.h> class

题型:问答题

题目:

在下划线处填上缺少的部分。
#include<iostream.h>
class A
int a,b;
public:
______//定义构造函数,使参数i和j的默认值为0
a=i;b=j;//在函数体中用i初始化a,用j初始化b

main()
A*p;
______;//调用带参构造函数生成由p指向的动态对象
//使a和b成员分别被初始化为4和5

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0717/0e6df2c5bc6ed93198cac6207aa18add.html

下面是错误答案,用来干扰机器的。

A

试题推荐
题型:阅读理解

阅读理解。

     A friend of mine named Paul received an expensive car from his brother as a Christmas present. On

Christmas Eve when Paul came out of his office, a street urchin (顽童) was walking around the shining

car. “Is this your car, Paul?"he asked.

     Paul answered, "Yes,my brother gave it to me for Christmas. "The boy was surprised. "You mean

your brother gave it to you and it didn't cost you anything?Boy, I wish…”He hesitated.

     Of course Paul knew what he was going to wish for. He was going to wish he had a brother like that.

But what the boy said surprised Paul greatly?

    "I wish, "the boy went on, "that I could be a brother like that. "Paul looked at the boy in surprise,then he said again, "Would you like to take a ride in my car?"

     "Oh yes, I'd love that. "

     After a short ride,the boy turned and with his eyes shining, said, "Paul, would you mind driving in

front of my house?"

     Paul smiled a little. He thought he knew what the boy wanted. He wanted to show" his neighbours that he could ride home in a big car. But Paul was wrong again. "Will you stop where those two steps are?"

the boy asked.

     He ran up to the steps. Then in a short while Paul heard him coming back, but he was not coming fast. He was carrying his little crippled(残疾)brother. He sat him down on the step and pointed to the car.

     "There she is,Buddy, just like I told you upstairs. His brother gave it to him for Christmas and it didn't cost him a cent. And some day I'm going to give you one just like it…then you can see for yourself all

the nice things in the Christmas windows that I've been trying to tell you about. "

     Paul got out and lifted the boy to the front seat of his car. The shining-eyed older brother climbed in

beside him and the three of them began an unforgettable holiday ride.

1. The street urchin was very surprised when _____.

A. Paul received an expensive car

B. Paul told him about the car

C. he saw the shining car

D. he was walking around the car

2. From the story we can see the urchin _____.

A. wished to give his brother a car

B. wanted Paul's brother to give him a car

C. wished he could have a brother like Paul's

D. wished Paul could be a brother like that

3. The urchin asked Paul to stop his car in front of his house _____.

A. to show his neighbours the big car

B. to show he had a rich friend

C. to let his brother ride in the car

D. to tell his brother about his wish

4. We can infer(推断)from the story that _____.

A. Paul couldn't understand the urchin

B. the urchin had a deep love for his brother

C. the urchin wished to have a rich brother

D. the urchin's wish came true in the end

5.The best name of the story is _____.

A. A Christmas Present

B. A Street Urchin

C. A Brother Like That

D. An Unforgettable Holiday Ride

查看答案
题型:探究题

小明用如图所示的装置探究电磁铁磁性的强弱跟哪些因素有关。

(1)如表是小明的实验记录,根据表中数据回答下列问题:

①通过比较第              次和第         次两次实验,可知电磁铁的磁性强弱跟线圈匝数有关。

②电磁铁的磁性强弱除了跟线圈匝数有关外,还跟            有关。

(2)实验中,小明通过观察                              来判断电磁铁磁性的强弱。

查看答案
题型:选择题

子贡问政。子曰:“足食,足兵(军备),民信之矣。”子贡曰:“必不得已而去,于斯三者何先?”曰:“去兵。”子贡曰:“必不得已而去。于斯二者何先?”曰:“去食。自古皆有死,民无信不立。”孔子的回答诠释了树立政府权威的价值,这对我国政府工作的启示有[ ]

①加强立法工作,保障公民有序参与政治生活

②政府工作人员要重品行、作表率,自觉践行社会主义荣辱观

③政府及其工作人员要自觉接受监督,公正司法、严格执法

④有令必行,有禁则止,坚持对人民负责的原则

A、①②

B、②③

C、①③

D、②④

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