中国大学MOOC: @num = (3,5,2,1,4);@num = sort(@num);push(@num, (6,7,8,9));pop(@num);shift(@num);执行以上语句后,@num=?
举一反三
- @num = (3,5,2,1,4);@num = sort(@num);push(@num, (6,7,8,9));pop(@num);shift(@num);执行以上语句后,@num=? A: (2,3,4,5,6,7,8) B: (3,5,2,1,4,6,7,8,9) C: (1,2,3,4,5,6,7,8,9) D: (1,2,3,4,5,6,7,8)
- 中国大学MOOC: 执行如下代码片段后,num的值为:int num = 5;num = (num % 2) == 0 ? num – 1 : num + 1;
- 执行如下代码片段后,num的值为:int num = 5;num = (num % 2) == 0 ? num – 1 : num + 1; A: 1 B: 4 C: 5 D: 6
- 智慧职教: 执行下列语句后,变量num的值是多少?var num=3; num+=5; num=num+"4"; num=num*2;
- unsignedcharnum;num=0X98;num=num%10;num=num%10;num=?() A: 15 B: 8 C: 9 D: 2