题目内容

下列语句序列执行后,k 的值是( )。int x=2, y=5, k=0; switch( x%y ) { case 0: k=x+y; break; case 1: k=x-y; break; case 2: k=x*y; break; default: k=x/y; break; } System.out.println(k);

A. 2
B. 5
C. 10
D. 0

查看答案
更多问题

应用程序的main方法中有以下语句,则输出的结果是:( )。String s1="0.5", s2="12";double x=Double.parseDouble(s1);int y=Integer.parseInt(s2);System.out.println(x+y);

A. 12.5
B. 120.5
C. 12
D. 13.5

下列修饰符中与访问控制无关的是:( )

A. private
B. public
C. protected
D. class

How do you plan to the development of these technologies?

A. anticipate
B. awaken
C. accelarate
D. attach

The team is for a win after being defeated several times.

A. destined
B. desperate
C. decent
D. definite

答案查题题库