c=[1]deffore():c.append(2)fore()print(c)输出结果是()
第1题:
下述程序的输出结果是( )。

A)2,2
B)1,1
C)3,4
D)1,2
第2题:
有以下程序
#include<stdio.h>
struct ord
{int x,y;} dt[2]={1,2,3,4};
main()
{
struct ord*p=dt;
printf(“%d,”,++(p一>x));printf(“%d\n”,++(p一>y));
}
程序运行后的输出结果是
A.1,2
B.4,1
C.3,4
D.2.3
第3题:
若有以下程序

则程序的输出结果是
A.2,2,2,4
B.2,1,2,-1
C.5,1,2,-1
D.1,2,3,4
第4题:
A.set([1,2,3])
B.([1,2,3])
C.{1,2,3}
D.[1,2,3]
第5题:
飞行中危险天气咨询服务包括:1)SIGMET;2)对流性SIGMET;3)AIRMET;4)PIREPS:().
第6题:
print({1,2,3}-{3,4,6})输出结果为:()
第7题:
print(list(zip([1,2],[3,4])))输出结果为:()
第8题:
a=10ifa==10:print(a-10)else:print[a]程序的输出结果是()。
第9题:
[1,2]
[1,2,3]
[1,2,3,4]
程序异常
第10题:
(1,2,3,4)
(1,2,3)
(4,1,2,3)
报错
第11题:
[1,2,3,4]
[(1,2),(3,4)]
[(1,3),(2,4)]
报错
第12题:
{-2,-2,-3}
{2,2,3}
{1,2}
报错
第13题:
有如下程序: #included<iostream> usingnamespacestd; classTestClass {private: intX,y; public: TestClass(inti,intj) {x=i; y=j;} voidprint() {cout<<"printl"<<endl;} voidprint()const {cout<<"print2"<<endl;}}; intmain() {constTestClassa(1,2); print(); return0;} 该程序运行后的输出结果是( )。
A.printl
B.print2
C.printlprint2
D.程序编译时出错
第14题:
有以下程序: #include<stdio.h> struct ord {int X,y;)dt[2]={1,2,3,4}; main( ) { struct ord*p=dt; printf("%d,",++(p->x));printf("%d\n",++(p->y)); } 程序运行后的输出结果是( )。
A.1,2
B.4,1
C.3,4
D.2,3
第15题:
有如下程序:
#included<iostream>
usingnamespacestd;
classTestClass
{private:
intX,y;
public:
TestClass(inti,intj)
{x=i;
y=j;}
voidprint()
{cout<<"printl"<<endl;}
voidprint()const
{cout<<"print2"<<endl;}};
intmain()
{constTestClassa(1,2);
print();
return0;}
该程序运行后的输出结果是( )。
A.printl
B.print2
C.printlprint2
D.程序编译时出错
第16题:
(37)有以下程序
#include <stdio.h>
struct ord
{ int x,y;}dt[2]={1,2,3,4};
main()
{
struct ord *p=dt;
printf("%d,",++(p->x)); printf("%d\n",++(p->y));
}
程序运行后的输出结果是
A)1,2
B)4,1
C)3,4
D)2,3
第17题:
print(list(enumerate([1,2])))输出结果为:()
第18题:
(1,2,3).append(4) 输出结果为:()
第19题:
已知x=(0,1,2,3),那么执行语句x.add(4)之后,x的值为()
第20题:
飞行中危险天气咨询服务包括:().1)SIGMET;2)对流性SIGMET;3)AIRMET;4)PIREPS:
第21题:
0
10
-10
程序异常
第22题:
[[0,1],[1,2]]
[(0,1),(1,2)]
[1,2]
[0,1,1,2]
第23题:
{0,1,2}
{1,2}
{1,2,3}
{1,0,1,2}