6.请看下面的程序段:public class class1{public static void main(String a[]) {int x [] = new int[8];System .out .println(x [1]);}}当编译和执行这段代码时会出现:
A. 有一个编译错误为“possible reference before assignment”
B. 有一个编译错误为“illegal array declaration syntax”
C. 有异常出现为“Null Pointer Exception”
D. 正确执行并且输出0
查看答案
5.下面哪个选项正确地声明了一个字符串数组:
A. char str[]
B. char str[][]
C. String str[]
D. String str[10]
同一个数组中可以存放多个不同类型的数据。( )
A. 对
B. 错
Too Much of a Good Thing – A Real AddictionThe internet is a double-edged sword. It’s hard to deny the 1) _____ changes it adds to people’s lives as it makes life easier. Like any technology, though, it has negative aspects, such as Internet 2) _____. College students are 3) _____ severely without the discipline and structure of home. What causes Internet addiction is the 4) _____ of endorphins, which sustains virtual rewards from the brain.These rewards are simple 5) _____, doing nothing but keeping students so 6) _____ that it hurts their studies, or spoils their lives. What’s the best defense against Internet addiction is 7) _____. Use the wonders of connectivity to enrich your studies, stay connected with distant and real-life friends and explore 8) _____ new worlds. The Internet is a powerful tool, but make sure that you use it 9) _____ for all the good value it offers and that you won’t let too 10) _____ of a good thing become something bad.
甲企业为增值税小规模纳税人,本月采购原材料2060千克,每千克50元(含增值税),运输途中的合理损耗为60千克,入库前的挑选整理费为500元,企业该批原材料的入账价值为()元。
A. 100500
B. 103500
C. 103000
D. 106500