为了定义三个整型数组 a1.a2.a3,下面声明正确的语句是▁▁。
A. intArray [ ] a1,a2; int a3[ ]={1,2,3,4,5};
B. int [ ] a1,a2; int a3[ ]={1,2,3,4,5};
C. int a1,a2[ ]; int a3={1,2,3,4,5};
D. int [ ] a1,a2; int a3=(1,2,3,4,5);
查看答案
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.