问题 单项选择题

作为整个应用程序入口点的主程序至少应具有以下功能______。

A.初始化环境

B.初始化环境,显示初始的用户界面

C.初始化环境,显示初始的用户界面,控制事件循环

D.初始化环境,显示初始的用户界面,控制事件循环,退出时恢复环境

答案

参考答案:C

解析: 主程序是整个应用程序的入口点,主程序的任务是设置应用程序的起始点、初始化环境、显示初始的用户界面、控制事件循环,并当退出应用程序时,回顾开始的开发环境。当用户运行应用程序时,将首先启动主程序文件,然后主文件再依次调用所需要的应用程序及其他组件。所有的应用程序必须包含一个主程序文件。因此本题的正确答案应该是C。

选择题
阅读理解

阅读理解。

     Who do you think was the most important woman of the past 100 years?

     Jane Addams (1860 - 1935)

     Addams helped the poor and worked for peace. She created shelters, education opportunities and

services for people in need. In 1931, Addams became the first American woman to win the Noble

Peace Price.

     Rachel Carson (1907 - 1964)

     Rachel Carson was born in the rural river town of Springdale, Pennsylvania in America. The popular

1962 book "Silent Spring" by Rachel Carson made people realize the dangers and the harmful effects

(影响) of pollution on humans and on the world's lakes and oceans.

     Angela Merkel (1954 - )

     In 2005, Germans chose Angela Merkel as their first woman head of the country. She had been a

scientist in the past. As Germany's leader, she has had an effect on the whole world.

     Sandra Day O' Connor (1930 - )

     When Sandra Day O' Connor finished her class at Stanford Law School, in 1952, she could not find

work because she was a woman. However, she became the first woman to join the U.S. Supreme Court (最高法院) in 1981 after years of hard work.

     Margaret Thatcher (1925 - )

     In 1979, Margaret Thatcher became Britain's first woman Prime Minister (首相). She served until

1990, which made her the first British leader to serve three terms in a row. Because of her high standards

and strong will, people called her Britain's Iron Lady.

     Marie Curie (1867 - 1934)

     Polish-born scientist Marie Curie discovered that some types of metal give off energy called radiation (辐射能). Her research led to new medical treatments and arms. She received the Nobel Prize in physics

in 1903 and in Chemistry in 1911.

1. Who once won the Nobel Price?

A. Jane Addams and Marie Curie

B. Jane Addams and Margaret Thatcher

C. Marie Curie and Angela Merkel

D. Marie Curie and Rachel Carson

2. We can infer from the text that Rachel Carson worked to _______.

A. help the poor

B. spread geographic knowledge

C. protect the environment

D. protect the rights of women

3. What do Angela Merkel and Margaret Thatcher have in common?

A. Both of them were scientists before coming to power.

B. Both of them are the first woman head of their country.

C. Both of them are famous for being strict.

D. Both of them have worked for three terms.

4. Who once failed to find a job?

A. Jane Addams.

B. Sandra Day O' Connor

C. Rachel Carson

D. Margaret Thatcher