问题 单项选择题

在C++语言中,不合法的实型数据的是
  A) 0.123
  B) 123e3
  C) 2.1e3.5
  D) 123.0

答案

参考答案:C

解析: 在C++语言中,实数有两种形式表示,即十进制数形式和指数形式,在指数形式中,e3,2.1e3.5,.e3,e等都是不合法的指数形式。再如123e3或123E3都代表123乘以10的3次方。注意,字母e的前面必须有数字,且e的后面必须是整数。

完形填空

SECTION C ( 12 points )

Directions: Complete the following passage by filling in each blank with one word that best fits the context.

In Glasgow, Scotland, a young lady, like a lot of teens today, got tired of home. The daughter objected ___48___her family’s religious lifestyle and said,“I don’t want your God. I am leaving!”

She left home. Before long, she was disappointed and ___49___ to find a job, so she tried to do everything she could to earn money . Many years passed by, her father died, her mother grew ___50___ , and the daughter became more and more entrenched(固执)in her way of life.

No contact was made ___51___ mother and daughter during these years. The mother, having heard of her daughter’s whereabouts (去向,行踪), went to the poor part of the city in ___52___ of her daughter. She stopped at each of the rescue missions with a simple request ,“Would you allow me to put up this picture?”It was a picture of the smiling, gray-haired mother with ___53___ handwritten message at the bottom:“I love you still…come home!”

One day the daughter wandered into a rescue mission for a hot meal. She sat absent-mindedly, listening to the service, all the while letting her ___54___ wander over to the bulletin board. There she saw the picture and thought“Could that be my mother?”

She couldn’t wait until the service was over. She stood and went to look. It was her mother, and there were those ___55___,“I love you still…come home!”As she stood in front of the picture, she wept. It was too good to be true.

问答题 简答题