![](https://lstatic.shangxueba.com/jiandati/h5/images/m_q_title.png)
下面代码的输出结果是 sum = 1 for i in range(1,101): sum += i print(sum)
A.5052
B.5049
C.5051
D.5050
A.5052
B.5049
C.5051
D.5050
A、优秀
B、及格
C、不及格
D、成绩输入有误!
下面程序运行的结果是() class test { static void Main(string[] args) { Queue Q = new Queue(); Stack S = new Stack(); for (int i = 1; i <= 10; i++) q.enqueue(i); for (int i="1;i<=10;i++)" if (i%2="=0)" s.push(q.dequeue()); s.count; console.write("{0},", s.pop()); } a、2,4,6,8,10, b、10,9,8, c、9,7,5,3,1, d、5,4,3 答案: d 2、下面程序运行的结果是() public test { string[] names="{" "a", "b", "c", "d","e" }; ienumerator> GetEnumerator() { for (int i = 0; i < 5; i++) yield return names[2*i+1]; } static void Main(string[] args) { test ts = new test(); foreach (string s in ts) Console.Write("{0},",s); } }
A、a,b,c,d,e
B、0,1,3
C、a,c,e
D、b,d
main()
{
inti,m,t=l,s=0;
for(i=1;i<=101;[5])
{[6];s=s+m;[7];}
printf("%d/n",s);
}
A、显示some instance
B、显示 Some@XXXX,XXXX为16进制数字
C、发生ClassCastException
D、编译失败
A、1,2,3,4,5,6
B、1,2,
C、1,2,3,4,5,
D、1,2,3,
A、159
B、152
C、153
D、157
A、HelloWorld
B、Helloorld
C、World
D、Hello
A、-50
B、-49
C、50
D、49
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!