试题与答案

执行下列程序之后,变量n的值为 publicclassExam{ public

题型:单项选择题

题目:

执行下列程序之后,变量n的值为 publicclassExam{ publicstaticvoidmain(String[]args){int y=2;int z=3;int n=4;n=n+-y*z/n;System.out.println(n); } }

A.3

B.-1

C.-12

D.-3

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0525/ee93837aca7cf32780b96e41e5358091.html

下面是错误答案,用来干扰机器的。

用1、0、3、8这四个数字组数:写出三位数的奇数有:831、813、381.故答案为:831、813、381.

试题推荐
题型:改错题

短文改错(共10小题;每小题1.5分,满分15分 )

此题要求对一段文章改错。先对每一行做出判断是对还是错。如果是对的,在该行右边横线上画一个勾(√);如果有错误(每行不会多于一个错误 ),则按情况改错如下:

此行多一个词,把多余的词用斜线(﹨)划掉,在该行右边横线上写出该词,并也用斜线划掉。

此行缺一个词,在缺词处加一个漏字符号(∧),在该行右边横线上写出该加的词。

此行错一个词,在错的词下划一横线,在该行右边横线上写出改正后的词。

注意:原行没有错的不要改。

Most Americans would find it hard to think that what life   小题1:____________

would look like without a car. But, some have realized    小题2: _______ ____

the serious question of the pollution caused by the car.  小题3: ____ ________

The polluted air becomes harmful and dangerous to health.  小题4: ___ ________

One way to getting rid of the polluted air is to build a   小题5:____________

car that doesn’t cause pollution. That is how several of the  小题6: ____  ______

large car factories have been tried to do. But to build       小题7: _________   

a clean car is more easier said than done. Progress in this   小题8:_________   

field has been slow.

Another way is to take place of the car engine by a     小题9: ___________ 

steam one. Inventors are now working on steam cars as well as

electric cars. Many makers believe that it will spend         小题10: __________  

years to develop a practical model that pleased people.

查看答案
微信公众账号搜索答案