>> s=8;>> switch scase {9,10}s1=‘优秀'case {8,7,6}s1=‘合格'otherwises=‘不合格'end输出结果为
A. 合格
B. S1=‘优秀’
C. S1=‘合格’
D. Error
下列程序输出结果为>> str='The result is 100.';>> len=length(str);>> s=[];>> for n=1:lenif str(n)>'9'|str(n)<'0' breakends=[s str(n)];ends
A. ‘’
B. [ ]
C. '100'
D. ‘The result is’
下列程序输出结果为>> str='The result is 100.';>> len=length(str);>> s=[];>> for n=1:lenif str(n)>'9'|str(n)<'0' continueends=[s str(n)];ends
A. s=[ ]
B. ‘The result is’
C. s=100
D. 100
下列程序输出结果为>> a=[1 2 3]>> keyboardK>> a=[1 2 4];K>> return
A. a=[1 2 3]
B. a=[1 2 4]
C. K>>
D. error