问题
单项选择题
设a=5,b=6,c=7,d=8,则执行下列语句后,x的值为______。
x=IIF((a>B) And(c<d),10,20)
A) 10
B) 20
C) 30
D) 300
答案
参考答案:B
解析:[评析] 函数:IIF(expr,.val1,val2)与IF语句相似,当布尔表达式expr为True时,则选择val1的值,否则选择val2的值。
设a=5,b=6,c=7,d=8,则执行下列语句后,x的值为______。
x=IIF((a>B) And(c<d),10,20)
A) 10
B) 20
C) 30
D) 300
参考答案:B
解析:[评析] 函数:IIF(expr,.val1,val2)与IF语句相似,当布尔表达式expr为True时,则选择val1的值,否则选择val2的值。
从方框中选词并用其适当形式填空。 | |
On Saturday, my parents and I 1______ to the Beishan Park to play. First, we 2______ the flowers. Then, we climbed the 3______. In the afternoon, we went to my grandparents' family 4______ them. I played 5______ with my grandpa. In the evening, my parents and I 6______ the Beijing-Shanghai High- Speed Railway to Shanghai to take part in an English Contest. And on Sunday morning, we 7______ to Shanghai. We went to Shanghai Hotel to take part in the contest. And at noon, we 8______ lunch at KFC. The 9______ was very good. I ate a lot. And in the afternoon, we took the Beijing-Shanghai High-Speed Railway back home. We were 10______, but we were very happy. What do you think of my last weekend? |