问题 单项选择题

执行下列程序以后,内存变量a的内容是( )。
CLOSE DATABASE
a=0
USE zg
GO TOP
DO WHILE.NOT.EOF()
IF基本工资>500
a=a+1
ENDIF
SKIP
ENDDO

A) 1
B) 2
C) 3
D) 4

答案

参考答案:C

解析: 在本题中首先赋值变量a为数值0,然后打开表zg.dbf并将指针指向第一个记录。执行DO WHILE-ENDDO循环,该循环指定的逻辑表达式.NOT.EOF()含义为遍历整个表。在DO WHILE-ENDDO循环体中有一个IF-ENDIF分支语句的嵌套,该语句是统计“基本工资”大于500的记录个数。因为DO WHILE-ENDDO循环本身不能移动记录指针,所以利用SKIP命令指向下一个记录。因此统计该表中基本工资大于500的记录个数为3个。

单项选择题
阅读理解

At first all films were in black and white, but in 1932 the first color film was made. This proved as unpopular as talking films had done in the late 1920’s. It was not until 1938 that a full-length color film was made, and the success of this film made producers everywhere change from black and white to color. This first full-length color film was translated into ten different languages and made Hollywood the main center of film industry

In the early days of the cinema, other countries also had film industries. Very good films were made in Sweden, Britain, Russia and France. However, because Hollywood had so much money to spend, it kept its position as the world’s most important film center. Film actors went to America because they knew they could get a lot of money for every film they made. In 1918 Charlie Chaplin received $5 each day.

However, life was not always easy for the film actors. Newspapermen followed them everywhere, and after Charlie Chaplin married for the fourth time he became so unpopular with the American public that he had to leave the country and live in Europe.

56. Which of the following is correct?

A. People liked color film as soon as it was made.  

B. At first color films were not long.

C. Color films were at first silent.               

D. Talking films were all color films.

57. The first full-length color film was made ______.

A. in Hollywood    B. in Sweden   C. by Charlie Chaplin   D. in Britain

58. Life was sometimes difficult for film actors because_______.

A. films often cost huge amount of money to make

B. they had a long way to go before they became famous

C. sometimes films lose money

D. they could not get away from newspapermen

59. Talking films _______.

A. were not successful until the late 1920’s     

B. were unpopular when first made

C. were as popular as black and white films    

D. were popular but the color film was not