问题 单项选择题

有以下程序段 char ch; int k; ch='a'; k=12; pnntf("%c,%d,",ch,ch,k); printf("k二%d\n",k); 已知字符a的ASCII码值为97,则执行上述程序段后输出结果是

A.因变量类型与格式描述符的类型不匹配输出无定值

B.输出项与格式描述符个数不符,输出为零值或不定值

C.a,97,12k=12

D.a,97,k=12

答案

参考答案:D

解析: 输出格式控制符%c表示将变量以字符的形式输出;输出格式控制符%d表示将变量以带符号的十进制整型数输出,所以第一个输出语句输出的结果为a,97;第二个输出语句输出的结果为k=12。

阅读理解

(B)

The Hawaiian Islands are situated(位于) about two thousand miles away from North   America, right in the middle of the Pacific Ocean. Despite the distance the Islands actually make up the fiftieth state of the United States. The Islands were all formed by volcano(火山) eruption and on the largest of the islands, Hawai, or the Big Island, there are still two active volcanoes, the Mauna Loa and the Kilauea, which still erupt every few years.                                                                           

On the Hawaiian islands the natives have a particularly strange way of indicating(指明) directions. They don't use the north, south, east and west system common to the rest  of the world. They use the mauka and makai system. Mauka means "mountain".The mountains in Hawaii are always at the center of the islands, as these are volcanic is lands. Makai means "the sea". The islands are small and the system is simple. Wherever you want to visit, it can always be described in terms of where it lies in relation to the mountains and the sea. A typical conversation(谈话) between a native Hawaiian and a visitor might go as follows.                                                      

VISITOR: Excuse me! Could you tell me where the Sheraton Hotel is?            HAWAIIAN; Well ... Let me see ! From here it's two blocks mauka,and then one

block makai. You can't miss it!

1. This article would be most likely to appear in which of the following?     

A. A novel                          B. A collection of stories

C. A travel book                   D. a women's magazine

2. Choose the most suitable title for the article.

A. The Big Island                    B. Giving Directions in Hawaii

C. Volcanoes                        D. The Hawaiian Islands

3. In Hawaii the mountains are in the center of the islands because_____

A. of the weather                    B. of die geological conditions

C. the islands were created by volcanic eruptions

D. of the islands' location in the pacific

4. To find your way in Hawaii, you must _______.

A. refer to geographical directions      B. refer to well - known establishments

C. refer to the location of the mountains and the sea

D. refer to the earth and the sea

单项选择题