【单选题】【消耗次数:1】
当a=1,b=3,c=5,d=4,执行完下面一段程序后x的值是:ifa<b)ifc<d)x=1;elseifa<c)ifb<d)x=2;elsex=3;elsex=6;elsex=7
18
2
3
6
参考答案:
复制
纠错
相关题目
【单选题】 假定所有变量均已正确说明,下列程序段运行后x的值是a=b=c=0;x=35;if!a)x--;elseifb);ifc)x=3;elsex=4;
①  34
②  4
③  35
④  3
【单选题】 以下程序段运行后,x[1]的值为()。intx[5]={5,4,3,2,1};x[1]=x[3]+x[2+2]-x[3-1];
①  6
②  0
③  1
④  5
【单选题】 设:inta=1,b=2,c=3,d=4,m=2,n=2;执行(m=a>b)&&(n=c>d)后n的值为()。
①  1
②  2
③  3
④  4
【简答题】 解线性方程组<img class="jc-formula" data-tex="\begin{ cases } x_{ 1 }+3{ x }_{ 2 }-{ 2x }_{ 3 }+{ x }_{ 4 }=1 \\ 2{ x }_{ 1 }+5{ x }_{ 2 }-3{ x }_{ 3 }+{ x }_{ 4 }=3 \\ -3{ x }_{ 1 }+4{ x }_{ 2 }+8{ x }_{ 3 }-2{ x }_{ 4 }=4 \\ 6{ x }_{ 1 }-{ x }_{ 2 }-6{ x }_{ 3 }+4{ x }_{ 4 }=2 \end{ cases }" src="https://huaweicloudobs.ahjxjy.cn/9D3F9AFD766D2E70840A2BC2711DEC75.png" style="vertical-align: middle;"/>.
【单选题】 执行以下语句后b的值为( )。 Int a=5,b=6,w=1,x=2,y=3,z=4; (a=wx)(b=y
①  6
②  0
③  1
④  4
【单选题】 集合A={a,b,c},A上的二元关系R={<a,a>&lt;A,A&gt;,&lt;B,B&gt;,&lt;A,C&gt;<b,b><a,c>},则R具有以下性质()。</a,c></b,b></a,a>
①  自反性、反对称性、传递性
②  反自反性、反对称性、传递性
③  对称性、传递性
④  反对称性、传递性
【单选题】 设a=5,b=6,c=7,d=8,则执行下列语句后,x的值为:______。 x= IIF((a>b) And (c<d),10,20)
①  300
②  20
③  30
④  10
【简答题】 求解方程组<img class="jc-formula" data-tex="\begin{ cases } { x }_{ 1 }-2{ x }_{ 2 }+3{ x }_{ 3 }-{ x }_{ 4 }=1 \\ 3{ x }_{ 1 }-5{ x }_{ 2 }+5x_{ 3 }-3{ x }_{ 4 }=2 \\ 2{ x }_{ 1 }-3{ x }_{ 2 }+2{ x }_{ 3 }-2{ x }_{ 4 }=1 \end{ cases }" src="https://huaweicloudobs.ahjxjy.cn/D2F7DBEDF74F0DA535C0BD6A61FA9854.png" style="vertical-align: middle;"/>
【简答题】 求方程组<img class="jc-formula" data-tex="\begin{ cases } x_{ 1 }-{ x }_{ 2 }-{ x }_{ 3 }+{ x }_{ 4 }=0 \\ { x }_{ 1 }-{ x }_{ 2 }+{ x }_{ 3 }-3{ x }_{ 4 }=0 \\ { x }_{ 1 }-{ x }_{ 2 }-2{ x }_{ 3 }+3{ x }_{ 4 }=0 \end{ cases }" src="https://huaweicloudobs.ahjxjy.cn/D4C08D0A4459C36BE868755327686B0E.png" style="vertical-align: middle;"/>的全部解。
【简答题】 求如下方程组的全部解<img class="jc-formula" data-tex="\begin{ cases } { x }_{ 1 }+5{ x }_{ 2 }-{ x }_{ 3 }-{ x }_{ 4 }=-1 \\ x_{ 1 }-2{ x }_{ 2 }+{ x }_{ 3 }+3{ x }_{ 4 }=3 \\ 3{ x }_{ 1 }+8{ x }_{ 2 }-{ x }_{ 3 }+{ x }_{ 4 }=1 \\ { x }_{ 1 }-9{ x }_{ 2 }+3{ x }_{ 3 }+7{ x }_{ 4 }=7 \end{ cases }" src="https://huaweicloudobs.ahjxjy.cn/A62CC30A0D3B926B3452EB7F99DCE879.png" style="vertical-align: middle;"/>.
随机题目
【单选题】 下列情形中属于民事法律事实的是()
①  A 日出
②  B 备课
③  C 赠与
④  D 恋爱
【单选题】 下列社会关系中,应属于民法调整对象的是 ( )
①  A.梁某和郭某签订的房屋租赁合同关系
②  B.梁某代郭某去传达室领取信件的关系
③  C.粱某向税务机关缴纳税款的关系
④  D.梁某因驾车违章与交管部门形成的处罚与被处罚的关系
【单选题】 —Be sure to get up earlier tomorrow morning. —______ , I’ll be as early as a bird.
①  No, I will
②  Of course not
③  I’m afraid I can
④  OK, I will
【单选题】 The young man struggled to _______ where he was at the time the murder took place.
①  reduce
②  respond
③  respond
④  recall
【单选题】 Why not ______with me? Violent exercise might help to shake you out of your disappointment in love.
①  do some sports
②  to do some sports
③  by doing some sports
④  about to do some sports
【单选题】 —Youshouldhavethankedherbeforesheleft.— Imeant_______,butwhenIwasleavingIcouldntfindheranywhere.
①  to do
②  to
③  doing
④  doing so
【单选题】 A Chinese traditional wedding ceremony will ______us perfectly.
①  follow
②  join
③  combine
④  suit
【单选题】 The number of people invited______ sixty, but a number of them______ absent for different reasons.
①  were; was
②  was; was
③  was; were
④  were; were
【单选题】 Whatsurprisedmewasnotwhathesaidbut_______hesaidit.
①  the way
②  in the way that
③  in the way
④  the way which
【单选题】 —Are you a teacher?—No, but I ________ once. I worked in a middle school for three years.
①  am
②  will
③  do
④  was