问题 单项选择题

若有以下定义:
inta[]=1,2,3,4,5,6,7;
char cl=’b’,c2=‘2’;
则数值不为2的表达式是( )。

A) a[1]
B) ’d’-c1
C) a[‘3’-c2]
D) c2-0

答案

参考答案:D

解析: 字符在进行数学运算时取其ASCⅡ码值,其中’b’的ASCⅡ码值为98,’d’的ASCⅡ码值为100,字符’2’的 ASCⅡ码值为50。可知D选项中表达式c2-0的值为50。

阅读理解

Books for Children
Fleabag and the Ring's End
Beth Webb
More stories of Fleabag, the talking cat—star of this wonderful set of 3 books.
Ages 8—13, 208 pages, paper-back
07459 44116, £3.99
The little White House
Elizabeth Goudge
A fairy tale and winner of the Carnegie Medal.
Ages 8—12, 240 pages, paper-back
07459 45783, £4.99
My Very First Christmas Book
Lois Rock and Alec Ayliffe
A big, bright book, which presents the story simply, and delightfully for very young children.
Ages 0—3, 12 pages, 200mm x 200mm, board
07459 40560, £4.99
First Festival: Christmas
Lois Rock
An all-in-one book to help grown-ups and children prepare their Christmas celebration together. Presents, activities and customs.
Ages 5—8, 48 pages, 290mmx250mm, hardback
07459 39074, £8.99
Star of Wonder
Pat Alexander
A wonderful collection of Christmas stories and poems. Full of lively pages to read and enjoy.
Ages 7—12, 224 pages, paperback
07459 39323, £4.99
The Not-So-Wise Man
Alan MacDonald and Andrew Rowland
We all know about the 3 Wise Men who traveled to Bethlehem(伯利恒)and discovered the baby Jesus Christ. This is the tale of another one, who always missed the point.
Ages 5—9, 32 pages, 270mm×210mm, hardback.
07459 38922, £8.99
小题1:If you want to make a Christmas plan together with your children, which book do you   prefer?
A.Star of WonderB.The Not-So-Wise Man
C.First Festival: ChristmasD.My Very First Christmas Book
小题2:Which number would you dial if you want to order a book for your 2-year-old child?
A.07459 40560.B.07459 38922.
C.07459 45783.D.07459 44116.
小题3:If your child wants to read stories of animals, whose book will be your choice?
A.Pat Alexander.B.Beth Webb.C.Lois Rock.D.Elizabeth Goudge.
单项选择题