问题
单项选择题
下列表达式中,可以正确表示x≤0或x≥1的关系是( )。
A) (x>=1)‖(x<=0) B) x>1‖x=0 C) x>=10Rx<=0 D) x>=1&&x<=0
答案
参考答案:A
解析: 题中要求x的取值是小于等于0或者大于等于1,这说明表达式是或的关系,所以在写成C语言表达式应是逻辑或的关系,逻辑或运算符是“‖”。
下列表达式中,可以正确表示x≤0或x≥1的关系是( )。
A) (x>=1)‖(x<=0) B) x>1‖x=0 C) x>=10Rx<=0 D) x>=1&&x<=0
参考答案:A
解析: 题中要求x的取值是小于等于0或者大于等于1,这说明表达式是或的关系,所以在写成C语言表达式应是逻辑或的关系,逻辑或运算符是“‖”。
阅读下面短文,从短文后所给各题的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。 A teacher teaching math to seven-year-old Laiq asked him, “If I give you one apple and one apple and one apple , how many apples will you have?” With a few seconds Laiq confidently, “Four!” The confused teacher was expecting a(n) correct answer, three. She was disappointed. “Maybe the child didn’t hear ” she thought. She , “Laiq, listen carefully. If I give you one apple and one apple and one apple, how many apples will you have?” Laiq had seen the on his teacher’s face. He again on his fingers. But within him he was also the answer that would make the teacher happy. This time hesitatingly he replied, “Four.” The disappointment stayed on the teacher’s face. Suddenly she that Laiq liked strawberries. She thought maybe he didn’t like apples and that was why he couldn’t answer the question. This time with an excitement in her she asked, “If I give you one strawberry and one strawberry and one strawberry, then how many will you have?” Seeing the teacher , young Laiq calculated on his fingers again. There was no pressure on him, but a little on the teacher. She wanted her new to succeed. a hesitating smile young Laiq replied, “Three?” The teacher now had a smile. Her approach had succeeded. She wanted to herself. But one last thing remained. she asked him, “Now if I give you one apple and one apple and one more apple , how many will you have ?” Confidently Laiq answered, ‘Four!” The teacher was “How Laik , how?” She demanded in a little annoyed voice. In a voice that was and hesitating young Laik replied, “Because I already have one in my bag.” The story tells us: someone gives you an answer that is from what you expect, don’t think they are wrong. There shall be an angle(角度) that you may not have thought about yet.
|