网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序booleana=false;booleanb=true;ooleanc=(a&&b)&&(!b);bintresult=c==false?1:2;执行完后,c与result的值是()。
A.c=false;result=1;
B.c=true;result=2;
C.c=true;result=1;
D.c=false;result=2;
参考答案
更多 “ 以下程序booleana=false;booleanb=true;ooleanc=(abintresult=c==false?1:2;执行完后,c与result的值是()。 A.c=false;result=1;B.c=true;result=2;C.c=true;result=1;D.c=false;result=2; ” 相关考题
考题
boolean a=false;boolean b=true;boolean c=(ab)(!b);boolean result=(ab)(!b); boolean result=(ab)(!b); 执行完后,正确的结果是( )。A.c=false;result=falseB.c=true,result=trueC.c=true;result=falseD.c=false;result=true
考题
下面程序段: boolean a=false; boolean b=true; boolean c=(a||b)(b); boolean result=(a|b)(b); 执行完后,正确的结果是A.c=false;result=falseB.c=true,result=trueC.c=true;result=falseD.c=false;result=true
考题
下面程序段: boolean a=false; boolean b=true; boolean c=(aB) (!B) ; boolean result=(aB) (!B) ; 执行完后,正确的结果是( )。A.c=false;result=falseB.c=true,result=trueC.c=tree;result=falseD.c=false;result=trae
考题
下面程序段:boolean a=false;boolean b=true;boolean c=(ab)(!b);boolean result=(ab)(!b);执行完后,正确的结果是A.c=false;result=falseB.c=true,result=trueC.c=true;result=falseD.c=false;result=true
考题
下面程序段; boolean a=false; boolean b=true; boolean c=(a||b)(b); boolean result=(a|b)(b); 执行完后,正确的结果是A.c=false;result=falseB.c=true;result=trueC.c=true;result=falseD.c=false;result=true
考题
下面关于布尔类型变量的定义中,正确的是()A.boolean a=TRUE;B.boolean b=FALSE;C.boolean c='true';D.boolean d=false;
考题
写出以下程序段对应的执行结果 int i = 10,j = 10; boolean b = false; if (b = i == j) System.out.print("True"); else System.out.print("False");
考题
【单选题】下面关于布尔类型变量的定义中,正确的是()A.boolean a=TRUE;B.boolean b=FALSE;C.boolean c='true';D.boolean d=false;
热门标签
最新试卷