网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
表达式5 if 5>6 else (6 if 3>2 else 5) 的值为()。
参考答案
更多 “表达式5 if 56 else (6 if 32 else 5) 的值为()。” 相关考题
考题
有下面程序段: a:=false;b:=false;c:=false; x:=15; if a then x:=x0 else if b then x:=x-5 else if c then x:=20 else x:=25; 假设所有变量均已说明,程序运行后x的值是( ) 。
A25B20C15D5
考题
假定所有变量均已正确说明,下列程序段运行后x的值是( )。a=b=c=0;x=12;if(!a)x--;else x=5;if(C) x=3;else x=4;A.11B.4C.12D.3
考题
下列块结构条件语句,正确的是( )。A.If x>10 Then print"a" Else if x>5 Then print"b" Else if x<5 Then print"c" End ifB.if x>10 Then print"a" Else if x>5 Print"b" Else Print"c" End ifC.If x>10 Then print"a" Else if x>5 Then print"b" Else x<5 Then Print"c" End ifD.If x>10 Then Print"a" Else if x>5 Then print"b: Else Print"c" End if
考题
若整型变量a的值为2、b的值为3,则下面程序段执行后整型变量c的值为( )。 If a>5 Then If b<4 Thenc=a-b Elsec=b-a Else If b>3 Thenc=a*b Elsec=aMod6 End IfA.2B.-1C.1D.6
考题
6. Do you have _________ to tell me?A. something elseB. else somethingC. else anythingD. anything else
考题
执行下列语句后整型变量a的值是 ______。 If(3-2)>2 Then a=10 Else If(10/2)=6 Then a=20 Else a=30 End IfA.10B.20C.30D.不确定
考题
当a=1,b=3,c=5,d=4时,执行下面一段程序后,x的值为______。if (ad) x=1;else if(a
当a=1,b=3,c=5,d=4时,执行下面一段程序后,x的值为______。if (a<6) if(c>d) x=1; else if(a<c) if (b>l) x=2; else x=3; else x=6; else x=7;A.1B.2C.3D.6
考题
当a=1、b=3、c=5、d=4时,执行下面一段程序后,x的值为______。if (a<b) if (c<d) x=1; elseif (a<c)if (b<d) x=2;else x=3;else x=6;else x=7;A.1B.2C.3D.6
考题
当a=4,b=5,c=7,d=6时,执行下面一段程序: if(a<B)if(c<D)x=1; else if(a<C)if(b<C)x=2: else x=3; else x=4; else x=5; 程序执行后,x的值为( )。A.1B.2C.3D.4
考题
有以下程序inculde stdio.hmain(){ int a=1,B=2,c=3,d=0;iF(a==1)iF(B!=2)iF(c==3) d=1;else d=2;else iF(c!=3) d=3;else d=4;else d=5;printF(“%d\n”,d);}程序远行后的输出结果是【 】。
考题
当a=1、b=2、c=3、d=4时,执行下面程序段后,x的值是( )。 if(a<B)if(c<D)x=1; else if(a<C)if(b<D)x=2: else x=3: else x=6: else x=7:A.1B.6C.3D.2
考题
设int i=10,j=11,k=12,x=0;执行语句: if(i>5) if(j>100) if(k>11) X=3; else x=4; else x=5; 后x的值是( )。A.0B.3C.4D.5
考题
下列与表达式“b=(a0?1:0)”的功能等价选项是()A.b=0; if(a>=0) if(a>0) b=1; else b=-1;B
下列与表达式“b=(a<0?-1:a>0?1:0)”的功能等价选项是( )A.b=0; if(a>=0) if(a>0) b=1; else b=-1;B.if(a>0) b=1; else if(a<0) b=-1; else b=0;C.if(A)if(a<0) b=-1; else if(a>0) b=1; else b=0;D.b=-1; if(A)if(a>0) b=1; else if(a==0) b=0; else b=-1;
考题
当a=1,b=3,c=5,d=4时,执行下面一段程序后,x的值为______。 if(a<b) if(c<d) x=1; else if(a<c) if(b<d) x=2; elsex=3; elsex=6; elsex=7;A.1B.2C.3D.6
考题
当a=1、b=3、c=5、d=4时,执行下面一段程序: if(a<B) if(c<D) x=1; else if(a<C) if(b<D) x=2; else x=3; eles x=6; else x=7;程序执行后,x的值为( )A.1B.2C.3D.6
考题
当a=1、b=3、c=5、d=4时,执行下面一段程序后,x的值为______。 If a<b Then If c<d Then x=1 Else If a<c Then If b<d Then x=2 Else x=3 End If Else x=6 End If End If Else x=7 End IfA.1B.2C.3D.6
考题
若整型变量a值为2、b的值为3,则下列程序段执行后整型变量c的值为______。 If a>5 then If b<4 Then c=a-b Else c=b-a Else If b>3 Then c=a*b Else c=a mod b End IfA. 2B.-1C.1D.6
考题
程序: class TestApp{ public static void main (String[] args){ int x=6; if (xl) System. out. println("xl"); else if (x5) System. out .println("x5"); else if (x10) System. out. println("xA、x5B、xlC、x10D、x29
考题
单选题程序: class TestApp{ public static void main (String[] args){ int x=6; if (xl) System. out. println("xl"); else if (x5) System. out .println("x5"); else if (xSystem. out .println( "xA
x5B
xlC
x10D
x29
考题
单选题程序: class TestApp{ public static void main (String[] args){ int x=6; if (xl) System. out. println("xl"); else if (x5) System. out .println("x5"); else if (x10) System. out. println("x
A
x5B
xlC
x10D
x29
考题
单选题在VB中,执行“IF A5 then b=10 else b=20”语句后(A变量),B值为()A
5B
10C
20D
10或20
热门标签
最新试卷
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)