网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

运行以下程序,输出结果为: lst=[ '1' , int('1') , eval('1') , (1) ] s=set(lst) print(len(s))


参考答案和解析
2
更多 “运行以下程序,输出结果为: lst=[ '1' , int('1') , eval('1') , (1) ] s=set(lst) print(len(s))” 相关考题
考题 ( 34 )有以下程序#include stdio.hint fun (){ static int x=1;x*2; return x;}main (){ int i,s=1 ,for ( i=1;i=2;i++ ) s=fun () ;printf ( " %d \ n " ,s ) ;}程序运行后的输出结果是A ) OB ) 1C ) 4D ) 8

考题 下列程序的输出结果为( )。 S1=”1”:S2=”2”:SI=Val(S1)+Val(S2):S2=Val(”12”) If S1S2 Then P int S1-S2 Else Print S2-S1A.-9B.9C.-12D.0

考题 以下程序运行后的输出结果是【】。includemain(){int k=1,s=0; do{ if((k%2)!=0)continue; 以下程序运行后的输出结果是【 】。include<stdio.h>main(){ int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf("s+%d\n",s);}

考题 以下程序的输出结果是【 】。include defineN 5 int fun(int *s,int a,int n) {int j; *s= 以下程序的输出结果是【 】。include <stdio.h>define N 5int fun(int *s,int a,int n){ int j;*s=a j=n;while(a!=s[j]) j-;return j;main(){ int s[N+1]; int k:for(k=1 ;k<=N;k++) s[k]=k+1:print f("%d\n",fun(s,4,N));}

考题 有以下程序: #includestdio.h int fun {static int x=1; x+=1;return X; } main {int i,S=1; for(i=1;i=S;i++)s+=fun; printf("%d\n",s); } 程序运行后的输出结果是( )。A.11B.21C.6D.120

考题 以下程序的输出结果是【】。 include using namespace std; int main() {int s,i;for(s= 以下程序的输出结果是【 】。include <iostream>using namespace std;int main(){int s,i;for(s=0,i=1;i<3;i++)s+=i;cout<<s<<end1;return 0;}

考题 以下程序的输出结果是includelong fun(int n){ long s;if(n==1||1n==2) s=2;else s 以下程序的输出结果是 #include<iostream.h> long fun(int n) { long s; if(n==1 | | 1n==2) s=2; else s=n-fun(n-1) ; return s; } void main( ) {cout < < fun(3) ;}A.1B.2C.3D.4

考题 以下程序运行后,输出结果为______。 main() { int a[2][3]={1,3,5,7,9,11},*s[2],**pp,*p: s[0]=a[0],s[1]=a[1]; pp=s; p=(int*)malloc(sizeof(int)); **pp=s[1][1]; p=*pp; printf("%d\n",*p); }A.1B.7C.9D.11

考题 以下程序段运行后消息框的输出结果为______。s="Access"Dim str As StringFor i=1 To Len(s)str=UCase(Mid(S,I,I))+strNext iMsgBox str

考题 以下程序运行后输入:3,abcde回车,则输出结果是【 】include move(char *str, 以下程序运行后输入:3,abcde回车,则输出结果是【 】include <string.h>move(char *str, int n){ char temp; int i;temp=str[n-1];for(i=n-1;i>0;i--) str[i]=str[i-1];str[0]=temp;}main( ){ char s[50]; int n, i, z;scanf("%d,%s",n,s);z=strlen(s);for(i=1; i<=n; i++) move(s, z);printf("%s\n",s);}

考题 有以下程序 int f (int A) { return a%2; } main ( ) { int s[8]={1,3,5,2,4,6),i,d=0; for (i=0; f(s[i]; i++) d +=s[i]; print f ("%d\n", D) ; } 程序运行后的输出结果是A.9B.11C.19D.21

考题 若有以下程序段: int r=8; print("%d\n",r1): 输出结果是( )。 A.16B.8S 若有以下程序段: int r=8; print("%d\n",r1): 输出结果是( )。A.16B.8C.4D.2

考题 以下程序的输出结果是()。includeint fun(int n,int *s){ int f1,f2;if(n==0||n==1)*s= 以下程序的输出结果是( )。 #include<stdio.h> int fun(int n,int *s) { int f1,f2; if(n==0||n==1) *s=1; else { fun(n-1,f1); fun(n-2,f2); *s=f1+f2; } } void main() { int x; fun(6,x); printf("\n%d" ,x);}A.7B.13C.9D.10

考题 下列程序的输出结果为( )。S1=”1”:S2=”2”:SI=Val(S1)+Val(S2):S2=Val(”12”)If S1S2 Then P int S1-S2 Else Print s1-S2A. -9B. 9C. -12D. 0

考题 有如下程序: Private Sub Command1_Click() as="A WORKER IS HERE" x = Len(a$) For i=1 To x - 1 b$ =Mid$(a$, i,3) If b$ ="WOR" Then S=S+ 1 Next Print S End Sub 单击命令按钮,程序运行结果为A.1B.2C.3D.5

考题 有以下程序:include using namespace std;class sample{private: int x; static int 有以下程序:#include <iostream>using namespace std;class sample{private: int x; static int y;public: sample(int a); static void print(sample s);};sample:: sample(int a){ x=a; y+=x;}void sample:: print(sample s){ cout<<"x="<<s. x<<",y="<<y<<end1;}int sample:: y=0;int main(){ sample s1(10); sample s2(20); sample:: print(s2); return 0;}程序运行后的输出结果是( )。A.x=10,y=20B.x=20,y=30C.x=30,y=20D.x=30,y=30

考题 下列程序段运行后消息框的输出结果为______。s="Access"Dim Str As StringFor i=1 To Len(s)str=UCase(Mid(S,i,1) ) +strNext IMsgBox str

考题 以下程序运行后,输出结果是 ( ) fut(int * * s,int p[2][3]) { * * s=p[1][1];} main( ) { int a [2] [3]= {1, 3, 5, 7, 9, 11}, * p; p=(int * )malloc (sizeof(int)); fut(p,a); printf("%d\n",* p); }A.1B.7C.9D.11

考题 有以下程序#inculde stdio.hint Fun(){ ststic int x=1;x*=2;return x;}main (){ int i,s=1;For(i=1;I=2,I + +) s =Fun();printF(“%d\n”,s);}程序运行后的输出结果是A.0B.1C.4D.8

考题 有以下程序: #includestdio.h int fun( ) {static int x=1; X*=2: return x; } main( ) {int i,S=1; for(i=1;i=3;i++)S*=fun( ); printf("%d\n",s); } 程序运行后的输出结果是( )。A.0B.10C.30D.64

考题 有以下程序#includestdio.hint fun( ){static int x=1;x+=1;return x;}main( ){int i,s=1;for(i=1;i=s;i++)s+=fun( );printf(”%d\n”,s);}程序运行后的输出结果是( )。A.11B.21C.6D.120

考题 有如下程序: Private Sub Commandl_Click( ) a$="A WORKER IS HERE" x=Len(a$) For i=1,To x-1 b$=Mid$(a$,i,3) If b$="WOR" Then S=S+1 Next Print S End Sub 单击命令按钮,程序运行结果为A.1B.2C.3D.5

考题 执行以下两条语句后,lst的结果是1. lst = [3, 2, 1]2. lst.append(lst)() A.[3, 2, 1, [3, 2, 1]]B.[3, 2, 1, […]],其中“…”表示无穷递归C.抛出异常D.[3, 2, 1, lst]

考题 在创建S1-MME接口消息任务是,需要输入的eNodeBID可以通过以下哪个命令获得()。A、DSP S1APLEB、DSP S1APLNKC、LST S1APLNKD、LST S1APLE

考题 查询LTE使用频点的命令是()A、LST S1B、LST PDSCHC、LST CELLD、LST SECTOR

考题 单选题有以下程序:#include #include void fun(int*p1,int*p2,int*s){ s=(int*)malloc(sizeof(int)); *s=*p1+*p2; free(s);}main(){ int a=1,b=40,*q=a; fun(a,b,q); printf(%d,*q);}程序运行后的输出结果是(  )。A 42B 0C 1D 41

考题 单选题有以下程序:#include int fun(){ static int x=1; x*=2; return x;}main(){ int i,s=1; for(i=1;i=2;i++)s=fun(); printf(%d,s);}程序运行后的输出结果是(  )。A 0B 1C 4D 8

考题 单选题有以下程序#include #include void fun(int*p1,int*p2,int*s){ s=(int*)malloc(sizeof(int)); *s=*p1+*p2;}main(){ int a[2]={1,2}, b[2]={10,20},*s=a; fun(a,b,s); printf(%d,*s);}程序运行后的输出结果是(  )。A 1B 10C 11D 2