问题 填空题

x、y、x均为int型变量,描述“x、y和z中至少有两个为正数”的表达式是______。

答案

参考答案:((x>0)&&(y>0))‖(x>0)&&(z>0)‖((y>0) &&(z>0))

解析: 题目要求“x、y和z中至少有两个为正数”,即x、y和z这3个数中必须有两个是正数,且这3个数中的哪两个数都有可能是正数,所以它们之间是或的关系。

改错题

短文改错。

     假定英语课上老师要求同桌之间交换修改作文,请你修改你同桌写的一篇作文。

文中共有10处语言错误,每句中最多有两处。错误涉及一个单词的增加、删除或修改。

增加:在缺词处加一个漏字符号(A),并在其下面写出该加的词。

删除:把多余的词用斜线(\)划掉。

修改:在错词下面画一横线,并在该词下面写出修改后的词。

注意:1. 每处错误及其修改均仅限一词; 

          2. 只允许修改10处,多者(从第11处起)不计分。

Dear Andy,

     I am an university student. I once thought life at the university is excellent, but now I changed my mind.

I have three roommates, and I was the last one move into the dormitory. Last term, we got along peaceful

and happily. But I find they are not willing to be with me now. They don't talk with me, and they've become

even cold toward me than before. Many time, I wanted to talk with my roommates about that how I felt, but

I failed to find an opening. When leaving alone, I always recall this sadness. I am an honest student. Why can

I win true friendship?

                                                                                                                                                 Yours,

                                                                                                                                                 Li Lei

________________________________________________________________________________

________________________________________________________________________________

单项选择题 A1/A2型题