试题与答案

下面程序段的输出结果为 public class Test {public

题型:单项选择题

题目:

下面程序段的输出结果为 public class Test {public static void main(String args[]){ boolean a,b,c; a=(3<5); b=(a==true); System.out.printin( "a="+a+"b="+b) ; c-(b==false); System.out.println(b="+b+"e="+c) ;} }

A.a=true b=falseb=true c=false

B.a=true b=falseb=true c=true

C.a=true b=trueb=true c=false

D.a=false b=falseb=true c=false

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0407/e676df721e07991a3b38162619ccc286.html

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

m≥3或1<m≤2.本题考查命题的真假判断与应用,对两个命题为真时进行化简,正确理解“p或q”为真,p且q”为假的意义是解题的关键.先对命题p,q为真是,求出各自成立时参数所满足的范围,再根据“p或q”为真,p且q...

试题推荐
微信公众账号搜索答案