• 2022-05-29
    下列程序的输出结果是( )a=1;switch a case 01 disp('one') case {1,2} disp('two') case 3 disp('three') otherwise disp('four')end
    A: one
    B: two
    C: three
    D: four
  • B

    内容

    • 0

      中国大学MOOC: 下列程序的输出结果是( )。a=1;switch a case 0|4 disp(perfect) case {1,2} disp(ok) otherwise disp(no)end

    • 1

      下列程序的执行结果是()。switch 2 case {1,2} disp('perfect') case {1,2} disp('ok') case [1,2] disp('yes') otherwise disp('no') end A: perfect B: ok C: yes D: no

    • 2

      下列程序的输出结果是( )。 a=1; switch a<br/>case 3|4<br/>disp('perfect')<br/>case {1,2}<br/>disp('ok')<br/>otherwise<br/>disp('no') end A: ok B: perfect C: no D: 2

    • 3

      The output of the following program is ( ). a=1; switch a case 3|4 disp('perfect') case {1,2} disp('ok') otherwise disp('no') end A: ok B: perfect C: no D: 2

    • 4

      下列程序的输出结果是( )。<br/>a=1;<br/>switch<br/>a<br/>case 3|4<br/>disp('ok')<br/>case {1,2}<br/>disp('perfect')<br/>otherwise<br/>disp('no')<br/>end A: ok B: perfect C: no D: 2