网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
63、下列程序段的输出结果是 a={"a":2,"b":3,"c":6} a.pop("b") print(a["a"]+len(a))
参考答案和解析
B
更多 “63、下列程序段的输出结果是 a={"a":2,"b":3,"c":6} a.pop("b") print(a["a"]+len(a))” 相关考题
考题
下列程序段,运行后窗体上输出结果是 Private Sub Commnad1_Click() a=5∶b=4∶c=3∶d=2 x=3>2*b Or a=c And b<>c Or c>d Print X End SubA. 1 B. True C. False D. 2
考题
语句:print sgn(-6^2)+Abs(-6^2)+int(-6^2)的输出结果是( )A.-36B.1C.-1D.-7252967.以下语句a=sqr(3)print format(a,####.###)的输出结果是( )A.1.732B. 0001.732C.###1.732D. 1.7320
考题
下面程序的输出结果是()。includemain(){int a[]={1,2,3,4,5,6,7,8,7,10},*p;p=a;print
下面程序的输出结果是( )。 #include<stdio.h> main() {int a[]={1,2,3,4,5,6,7,8,7,10},*p; p=a; printf("%d\n",*p+8); }A.0B.1C.10D.9
考题
执行以下语句后,输出的结果是 s$=“ABCDEFGHI” Print Mid$(s$,3,4) Print Len(s$)A.ABCD 11B.CDEF 11C.EFGH 11D.HIJK 11
考题
若有以下程序段: int r=8; print("%d\n",r1): 输出结果是( )。 A.16B.8S
若有以下程序段: int r=8; print("%d\n",r1): 输出结果是( )。A.16B.8C.4D.2
考题
语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A.-36B.1C.-1S
语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A.-36B.1C.-1D.-72
考题
下面程序的输出结果是()。includeClass example{int a;public:example(int B.{a=b++
下面程序的输出结果是( )。 #include<iostream.h> Class example {int a; public: example(int B.{a=b++;} void print(){a=a+1 cout<<a<<““;} void print()const{cout<<a<<““;} }; void main() {example x(3); Const example y(2); x.print();A.2 2B.4 3C.4 2D.3 2
考题
下面程序的输出结果是 include class example {int a; public: example(int b) {a=
下面程序的输出结果是#include<iostream.h>class example{int a;public:example(int b) {a=b++;}void pnnt( ) {a=a+1;cout < < a < <" ";}void print( ) const{cout < < a < <" ";}};void main( ){example x(3) ;const example y(2) ;x.print( ) ;y.print( ) ;}A.2 2B.4 3C.4 2D.3 2
考题
有下列程序段,其输出结果是( )。 a=0:b=0 For i=-1 To -2 Step -1 For j=1 To 2 b=b+1 Next j a=a+1 Next i Print a;bA.2 3B.-2 2C.4 2D.2 4
考题
下面程序的运行结果是( )。 X=-2.3y=125z=Len(StrS(x)+StrS(y))Print Z A.4B.8
下面程序的运行结果是( )。 X=-2.3y=125z=Len(StrS(x)+StrS(y))Print ZA.4B.8C.9D.3
考题
以下程序的输出结果是_______。 main() { int a[4][4]={{1,3,5},{2,4,6},{3,5,7}); Print("%d%d%d%d\n",a[0][3],a[l][2],a[2] [1],a[3][0]); }A.650B.1470C.5430D.输出值不定
考题
下面程序的输出结果是includeclass example{ int a;public: example(int b){a=b++;
下面程序的输出结果是 #include<iostream.h> class example { int a; public: example(int b){a=b++;} void print(){a=a+1; cout<<a<<" ";} void print()const{cout<<a<<" ";} }; void main() { example x(3); const example y(2); x.print(); y.print(); }A.2 2B.4 3C.4 2D.3 2
考题
设a、b、c为整型变量,其值分别为1、2、3,以下程序段的输出结果是______。 a=b:b=c:c=a Print a;b;cA.1 2 3B.2 3 1C.3 2 1D.2 3 2
考题
下面程序段的输出结果是:int a = 2;System.out.print( a++);System.out.print( a);System.out.print(++a);
A.333B.334C.234D.233
考题
单选题有以下程序:#include int sum(int *array,int len){ if(len == 0) return array[0]; else return array[0]+sum(array+1,len-1);}main(){ int i=1,j=3; printf(%d,,i++); { int i = 0; i+=j*2; printf(%d,%d,,i,j); } printf(%d,%d,i,j);}程序运行后的输出结果是( )。A
1,6,3,1,3B
1,6,3,2,3C
1,6,3,6,3D
1,7,3,2,3
考题
单选题以下程序段的输出结果是()(□表示空格) Print"a";Tab(3);"b"A
a□bB
□a□□□□bC
a□□□bD
a□□b
热门标签
最新试卷