网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面代码的执行后x值是() x = 2 x *= 3 + 5**2
A.15
B.56
C.8192
D.13
参考答案和解析
16
更多 “下面代码的执行后x值是() x = 2 x *= 3 + 5**2A.15B.56C.8192D.13” 相关考题
考题
当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
考题
当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
考题
设x和y均为int型变量,则执行下面的循环后,y值为()。include void main(){int x, y;f
设x和y均为int型变量,则执行下面的循环后,y值为( )。#include <iostream.h>void main(){int x, y;for(y= 1,x= 1 ;y<=50;y++){ if(x>=10) }break;if (x%2==1){ x+=5; continue;} x-=3;} cout<<y;A.2B.4C.6D.8
考题
当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
考题
设x和y为int型变量,则执行下面的循环后,y的值为( ) for(y=l, x=l; y=50; x==10) break; if(x%2==1){ x+=5; continue;} X -= 3; }A.2B.4C.6D.8
考题
单选题在执行语句if((x=y=2)=x(x=5))y*=x;后变量x,y的值应分别为()A
2、2B
5、2C
5、10D
执行时报错
热门标签
最新试卷