问题 单项选择题

设有宏定义:#include IsDIV(k, n)((k%n==1) 1:0)且变量m已正确定义并赋值,则宏调用:IsDIV(m, 5) && IsDIV(m, 7)为真时所要表达的是

A.判断m是否能被5或者7整除

B.判断m是否能被5和7整除

C.判断m被5或者7整除是否余1

D.判断m被5和7整除是否余1

答案

参考答案:D

解析: IsDIV(m, 5)宏展开((m%5==1) 1:0),其含义是m%5==1,该表达式的值为1,否则该表达式的值为0;IsDIV(m, 7)宏展开((m%7==1) 1:0),其含义是m%7==1,该表达式的值为1,否则该表达式的值为0。IsDIV(m, 5) && IsDIV(m, 7)为真时,表示判断m被5和7整除是否都余1。

阅读理解

Free Activities This Weekend
An Open-air Craft(工艺)Market
in Front of the City Hall
Sunday from8:30A.M. to 6:30 P.M.
Need to buy a present? Find bamboo toys, paper flowers, paper umbrellas, model cars and more! Food from around the world, too!
City Museum
Travel Movies
Meeting Room Sat.& Sun. at 2:30 P.M.
Do you want to travel but don’t have enough money? See movies on Japan, Italy, America, England, Russia, and Australia. There are only 80 seats, so come early.
Autumn Fashion Show
Golden Shopping Center Sunday at 3:00 P.M.
Men’s and women’s autumn clothes. See 25 handsome and pretty models show the latest fashions. All clothing will be on sale after the show for under ¥100.
Pop Concert at Yunhai Square
Saturday from 9:00 P.M. to midnight
Five groups of college students are going to play the guitar and sing pop songs. Bring your own food and drink.
Library Lecture(讲座)
City Library Hall
Saturday at 10:00 A.M.
How to find the job that you really want! Two-hour lecture. Advice on choosing and getting the right job for you. Coke and sandwiches are sold.
 
小题1:There are           activities that people can do indoors.
A.twoB.threeC.fourD.five
小题2:People can taste food from different countries           .
A.at Yunhai SquareB.in the City Library Hall
C.in the City MuseumD.in front of the City Hall
小题3:If someone wants to find a right job, he should           .
A.listen to the lectureB.buy presents
C.bring food and drinkD.go to the fashion show
小题4:Mr.Lee wants to take two shirts for her wife after the fashion show, he needs to pay    .
A.more than 200 yuanB.at least 300 yuan
C.less than 200 yuanD.nothing at all
小题5:If people want to get some information about some foreign countries, they can        .
A.see the moviesB.go to the pop concert
C.see the fashion showD.go to the library lecture
单项选择题