11、下面代码的输出结果是x = 12.34;print(type(x))A.<class 'bool'>B.<class 'complex'>C.<class 'float'>D.<class 'int'>

11、下面代码的输出结果是x = 12.34;print(type(x))

A.<class 'bool'>

B.<class 'complex'>

C.<class 'float'>

D.<class 'int'>


参考答案和解析
A

相关考题:

下面语句的输出结果为______。x!=3.1415926Print x

阅读以下说明,回答问题,将解答填入对应的解答栏内。[说明] 计算下列源代码的McCabe环数,画出控制流程图并用罗马数字标出区域。read x,y,z;type =“scalene”;if (x= =y or x = = z or y= = z)type =“isosceles ”;if (x = = y and x = = z) type =“equilateral”;if (x>= y+ z Or y>= x+20rz>=x+ y) type= “not a triangle”;if (x<=0 or y<= 0 or z <=0) type =“bad inputs”;print type;

以下程序的输出结果是【 】。x=12.7x=Int(x+0.5)Print X

已有变量定义和函数调用语句:int a=25;print_value(a);下面函数的正确输出结果是void print_value(int *x){printf("%d\n",++*x);}A.23B.24C.25D.26

下面的程序的运行结果是__________func main() {x := 1{ x := 2 fmt.Print(x)}fmt.Println(x)}

若有以下变量定义和函数调用语句: int a=25; print_value(a); 则执行下面函数后正确的输出结果是( )。 void print_value(int*x) { cout<<++*x<<endl; }A.23B.24C.25D.26

以下程序的输出结果是______。 include define FUDGE(y)2.84+y define PR(a) printf( 以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT1(a) PR(a);putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*x); }A.11B.12C.13D.15

下面程序段的输出结果是【 】。For X=1.5 To 5 Step 1.5Print X;Next X

运行下面程序后,正确的输出结果是 ______。Private Sub Command1_ Click() x = 6 if x >6 then Print "x>6": Else if x <8 then Print "x<8"; Else if x = 6 then Print "x=6": End if End if End ifEnd SubA.x<8 x=6B.x<8C.x=6D.x<8或x=6

以下程序的输出结果是______。includedefine FUDGE(y)2.84+ydefine PR(A)printf("%d" 以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(A) printf("%d",(int)(a) ) #define PRINT1(A) PR(a) ;putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*X); }A.11B.12C.13D.15

执行下面程序,第一行输出结果是【 】,第二行输出结果是47。Option ExplicitPrivate Sub Form_Click( )Dim A As IntegerA=2Call Sub1 (A) End SubPrivate Sub1 (x As Integer)x=x*2+1If x<10 ThenCall Sub1 (x)End Ifx=x*2+1Print xEnd Sub

下面程序的输出结果是()。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

下面程序的输出结果是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);A.22B.43C.42D.32

以下程序段的输出结果是( )。 x=1 y=4 Do Until y4 x= x * y y=y+1 Loop Print XA.1SX 以下程序段的输出结果是( )。 x=1 y=4 Do Until y4 x= x * y y=y+1 Loop Print XA.1B.4C.8D.20

下面程序的输出结果是 ( ) main( ) { char x=040; print{("%d\n",x=x<<1);}A.100B.160C.120D.64

以下语句的输出结果是______。 Private Sub Command1_Click() x=10 y=1 Print x+y=101; End SubA.11B.101C.110D.False

下面程序的输出结果是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

以下程序输出什么?"""x=1"""whilex:print(x) A.运行结果显示NameError:name'x'isnotdefinedB.运行结果无限循环输出1C.它等价于下面的程序#x=1whilex:print(x)D.它等价于下面的程序whilex:print(x)

下面程序的输出结果是#includeclass example{int a:public:example(intB.{a=n++;}void print(){a=a+1;cout a ” ”;}void print()const{cout;}}void main(){example x t(3);const example y(2);x.print();y.print();}A.2 2B.4 3C.4 2D.3 2

下面程序运行后,输出的结果是() 10 A=5:B=9 20 X=A-B 30 IF AB THEN X=A+B 40 PRINT X 50 ENDA、-4B、5C、9D、4

代码print(3,4)是Python2.x的输出格式。

分析下面的代码:varx=[’Hello’];document.write(x[1])输出结果是undefined。()

下面语句的输出结果是()。x=10:y=3Print(x*y)/8A、5B、6C、3D、4

下列程序段运行后输出的结果是()。 Private Sub Form_Click Dim X#, Y# X = 5: Y = 6 Print X + Y = 11 End SubA、X+Y=11B、5+6=11C、11D、True

单选题有以下程序:#include #define F(x) 2.84+x#define PR(a) printf(%d,(int)(a))#define PRINT(a) PR(a);putchar('')main(){ PRINT(F(5)*2);}程序运行后的输出结果是(  )。A12B13C15D11

单选题下面语句的输出结果是()。x=10:y=3Print(x*y)/8A5B6C3D4

单选题下面程序运行后,输出的结果是() 10 A=5:B=9 20 X=A-B 30 IF AB THEN X=A+B 40 PRINT X 50 ENDA-4B5C9D4

单选题下列程序段运行后输出的结果是()。 Private Sub Form_Click Dim X#, Y# X = 5: Y = 6 Print X + Y = 11 End SubAX+Y=11B5+6=11C11DTrue