试题与答案

在执行下面这段Java程序时: public class Test public

题型:单项选择题

题目:

在执行下面这段Java程序时:
public class Test
public static void main (String[] args)
String s1=args[0];
String s2=args[1];
String s3=args[2];


若编译程序后键入命令: java Test one two three,那么变量s1所引用的字符串为( )。

A.null

B.test

C.one

D.java

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0427/24d5b9ea1608abc796faddcc27200536.html

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

参考答案:C

试题推荐
题型:阅读理解

“Mom, can I bake some bread?” We were 15; my best friend, Hanna, and I, determined to try our hands at creating some beautiful bread.

“It’s not worth the trouble,” my mother said. “It takes lots of time and makes a big mess. Our bakery bread is delicious without all that effort.”

Begging was useless. Mom’s “no” meant “No!”

But several weeks later, opportunity knocked. My parents were going out for the evening. I immediately invited Hanna to be my partner in bread-baking crime.

We studied the recipe. That was easy. “Mix oil into flour then beat in four eggs, one at a time, with remaining sugar and salt.”

We were not good at breaking eggs. I tried to learn from my mother.

“Gradually add eight cups of flour. When dough (面团) holds together, squeeze it.”

We took turns working like that. “Is the dough ‘holding together’?” we asked each other.

I remembered my neighbor’s instructions: “If it’s too sticky, add some flour; if too dry, add water.”

We added water. Then more flour. Then more water. By then, the mass of our dough had grown very much.

“Place dough on floured surface and squeeze till smooth,” the recipe instructed.

We took turns burying our hands in the damp dough, pinching, squeezing, and feeling it leak between fingers. “Clean and oil bowl, and then return dough to bowl. Cover and let dough rise in a warm place for one hour.”

This was good news—we’d have a break. On the dirty kitchen chairs, we dreamed about our beautiful bread. “See?” we would tell my mom. “Isn’t it worth the work?”

Hanna and I couldn’t help glancing at the rising process every few minutes. But nothing happened.

“Maybe something will happen in the hot oven,” I said.

Unfortunately, when we removed the loaves from the oven, they were like hard stones.

Mom was right; it takes time and effort. It sometimes makes a mess. But still it feels good, somehow, to be part of that long, ongoing chain of bread bakers. Since that night, both Hanna and I have learned to do it right.

查看答案
题型:问答题

某酒店土地总面积为3000m2,土地使用年限为40年,从1998年10月8日起计;总建筑面积为10000m2,共5层,每层建筑面积为2000m2;首层有500m2建筑面积的大堂,其余出租作为咖啡厅,当地正常月租金为每平方米建筑面积100元,正常出租率为80%;其他楼层均为客房,共200间,当地同档次酒店客房的价格为每天200元,年平均入住率80%。该酒店正常经营每月总费用占客房收入的40%,其中出租税费为每月2万元。经调查得知附近商业用地同样使用年限的楼面地价为3000元/m2,土地报酬率为8%,建筑物报酬率为10%,酒店欲投保,请评估其2001年10月8日的保险价值。

估价计算如下:

1.有效毛收入=2000×100×12×80%+200×200×365×80%=13600000(元)。

2.总费用=200×200×365×40%=5840000(元)。

3.酒店总净收益=有效毛收入-总费用=13600000-5840000=7760000(元)。

4.酒店土地净收益=10000×3000×8%=2400000(元)。

5.酒店建筑物净收益=7760000-2400000=5360000(元)。

6.酒店建筑物价值

该酒店2001年10月8日的保险价值为63114000元。

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