问题 单项选择题

在下列选项中,没有构成死循环的是

A) int i=100;
B) for(::);
while(1)
i=i%100+1:
if(i>100)break;C) int k=10000;
dok++;while(k>10000);
D) int s=36:
while(s)--s;

答案

参考答案:D

解析: 对于选项A,循环表达式条件永久为1,由于小于100的数与100取余不超过99,所以在循环体内表达式i%100+1的值永远不大于100,break语句永远不会被执行,所以是死循环;对于选项B,括号内没有能使循环终止的条件,是死循环;对于选项C,先执行k++,使k=10001,陷入死循环。对于选项D,s从36开始,每循环一次就减小1,直到s为0,循环结束,不会构成死循环。

选择题
阅读理解

1. TODAY, Friday, November 12

JAZZ with the Mike Thomas Jazz Band at The Derby Arms.  Upper Richmond Road West, Sheen.

DISCO Satin Sounds Disco. Free at The Lord Napier, Mort lake High St., from 8 a.m. to 8 p.m. Tel: 652 - 1158.

2. SATURDAY, November 13

JAZZ Lysis at The Bulls Head, Barnes. Admission 60p.

MUSICAL HALL at The Star and Garter, Lower Richmond Road, Putney, provided by the Aba Daba Music Hall company. Good food and entertainment fair price. Tel: 789 – 6749 .

FAMILY night out? Join the sing-along at The Black Horse. Sheen Road, Richmond.

JAZZ The John Bennett Big Band at The Bull’s Head, Barnes. Admission 80p.

THE DERBY ARMS, Upper Richmond Road West, give you Joe on the electric accordion(手风琴). Tel: 789—4536

3. SUNDAY, November 14

DISCO Satin Sounds Disco, free at The Lord Napier, Mort Lake High Street, from 8 a. m. to 8 p. m.

FOLK MUSIC at The Derby Arms. The Short Stuff and residents the Norman Chop Trio. Non-remembers 70p. Tel: 688-4626.

HEAVY MUSIC with Tony Simon at The Bull, Upper Richmond Road West, East Sheen.

THE DERBY ARMS, Upper Richmond Road West, give you Joe on the electric accordion.

小题1:

Where and when can you hear the Norman Chop Trio?

A.At the Bull’s Head on Sunday.

B.At the Derby Arms on Sunday.

C.At the Bull on Saturday.  

D.At the Black Horse on Saturday.小题2:

Where and when can you hear the Mike Thomas Jazz Band?

A.At the Derby Arms on Friday.  

B.At the Black Horse on Friday.

C.At the Star and Garter on Saturday.

D.At the Derby Arms on Sunday.小题3:

You want to enjoy the electric accordion on Saturday. Which telephone number do you have to ring to find out what time it starts?

A.789—6749.

B.789—4536.

C.682—1158.

D.688—4626.小题4:

You want to spend the Saturday by joining the entertainment with your family. Where should you go?

A.Disco at The Lord Napier.

B.The sing-along at The Black Horse.

C.The electric accordion at The Derby Arms.

D.Jazz at The Bull's Head.小题5:

You want to spend the  same day at two different places and don't want to cross any street.Which or the following is your best choice?

A.The sing-along at the Black Horse and Jazz at The Bull's Head.

B.The sing-along at The Black Horse and Folk Music at The Derby Arms.

C.Folk Music at The Derby Arms and Heavy Music with Tony Simon at The Bull.

D.Musical Hall at The Star & Garter and Disco at The Lord Napier.