有定义语句:char s[10];,若要从终端给s输入5个字符,错误的输入语句是(

题型:单项选择题

问题:

有定义语句:char s[10];,若要从终端给s输入5个字符,错误的输入语句是( )。

A) gets(&s[0]);
B) scanf("%s",s+1);
C) gets(s);
D) scanf("%s",s[1]);

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

阅读理解。

     Once Effendi had a joke with the Prime Minister (宰相). He said that the Minister would die the next day.

The next day, the Minister fell to the ground from the horse and really died. When the king learned this, he got

angry and sent his men to catch Effendi at once.

     When Effendi was brought to him, the king shouted angrily, "Effendi, since you knew when my Minister

would die, you must know the date of your own death. Say it out, or you'll die today."

     Effendi looked at the king for a while. Then he answered,"But how can I know? I'll die two days earlier

than you." The king was afraid that if he killed Effendi, he himself would die after that. He thought he must

keep Effendi alive as long as possible, so he let Effendi go.

1. This story tells us __________.

A. how Effendi fooled the king

B. when the king would die

C. why the Minister died

D. Effendi knew the date of everyone's death

2. The Prime Minister died because __________.

A. Effendi killed him

B. Effendi said he would die

C. he was badly ill

D. he fell off the horse

3. Why did the king ask Effendi to tell him the date of Effendi's own death?

A. Because the king wanted to know when he himself would die.

B. Because the king wanted to find an excuse to kill Effendi.

C. Because he himself had known the date of Effendi's death.

D. Because he wanted to know when Effendi would die.

4. The king let Effendi go because __________.

A. he hoped to live a long life

B. he was afraid of Effendi

C. he didn't believe Effendi's words

D. he knew they would die two days later

5. Which of the following is not true?

A. Effendi played a joke on the Minister.

B. The king was afraid of death.

C. Effendi didn't know when the king would die.

D. If the king killed Effendi, he himself would die two days later.

题型:单项选择题

等体积的NaCl、MgCl2、AlCl3三种溶液分别与等体积等物质和量浓度的AgNO3溶液恰好完全反应,则NaCl、MgCl2、AlCl3三种溶液的物质的量浓度之比是          (   )

A.1:1:1

B.1:2:3

C.3:2:1

D.6:3:2

题型:单项选择题

关于围绝经期的内分泌变化,哪项错误

A.卵巢功能衰退

B.下丘脑和垂体功能退化

C.促性腺激素分泌增多

D.卵巢逐渐停止排卵,雌激素分泌减少

E.促性腺激素分泌减少

题型:单项选择题

根据下列各项要求,写出《琵琶行》一诗中的相关诗句。

(1)表现诗人急欲相见,而琵琶女却心情复杂的诗句是:___________________,___________________。

(2)音乐是无形的,而诗人却让读者不仅如闻其声,还能如见其形,这样的诗句是:___________________,___________________。

(3)表现诗人与琵琶女思想感情汇合点的诗句是:________________,_______________。

题型:单项选择题

习 * * * * 在在第十二届全国人民代表大会第一次会议上的讲话时指出,实现“中国梦”必须弘扬中国精神,请问中国精神包括那两种精神?

更多题库