00330038003000301585067361821下列程序段执行结果是___________。 x = 1 print(type(x)) x = 1.0 print(type(x)) x = '1.0' print(type(x)A.<class 'int'> <class 'float'> <class 'str'>B.<class 'float'> <class 'int'> <class 'str'>C.<class 'str'> <class 'float'> <class 'int'>D.<class 'str'> <class 'int'> <class 'float'>

00330038003000301585067361821下列程序段执行结果是___________。 x = 1 print(type(x)) x = 1.0 print(type(x)) x = '1.0' print(type(x)

A.<class 'int'> <class 'float'> <class 'str'>

B.<class 'float'> <class 'int'> <class 'str'>

C.<class 'str'> <class 'float'> <class 'int'>

D.<class 'str'> <class 'int'> <class 'float'>


参考答案和解析
A

相关考题:

阅读以下说明,回答问题,将解答填入对应的解答栏内。[说明] 计算下列源代码的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

下列程序段的执行结果为 ______。 For x=5 To 1 Step-1 For Y=1 To 6-x Print Tab(Y+5);"*"; Next Y Print Next xA.***** **** *** ** *B.***** **** *** ** *C.* ** *** **** *****D.* *** ***** ******* *********

下列块结构条件语句,正确的是( )。A.If x>10 Then print"a" Else if x>5 Then print"b" Else if x<5 Then print"c" End ifB.if x>10 Then print"a" Else if x>5 Print"b" Else Print"c" End ifC.If x>10 Then print"a" Else if x>5 Then print"b" Else x<5 Then Print"c" End ifD.If x>10 Then Print"a" Else if x>5 Then print"b: Else Print"c" End if

下列程序段的执行结果为( )。 I=4 x=5 Do I=I+1 x=x+2 Loop Until I>=7 Print"I=";I Print"x=";xA.I=4 x=5B.I=7 x=15C.I=6 x=8D.I=7 x=11

下列程序段的执行结果为( )。 Dim x as integer If x Then Print x Else Print x+1 A. 1B. 0C. -1D. 显示出错信息

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

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

已知x代表某个百分制成绩,下列程序段用于显示对应的五级制成绩,正确的是( )A.If x>=60 Then Print"及格" Else If x>=70 Then Print"中" Else If x>=80 Then Print"良" Else If x>=90 Then Print"优" Else Print"不及格" End IfB.If x<90 Then Print"良" Else If x<80 Then Print"中" Else If x<70 Then Print"及格" Else If x<60 Then Print"不及格" Else Print"优" End IfC.If x>=90 then Print"优" Else If x>=80 Then Print"良" Else If x>=70 Then Print"中" Else If x>=60 Then Print"及格" Else Print"不及格" End If End SelectD.Select Case x Case x>=90 Print"优" Case x>=80 Print"良" Case x>=70 Print"中" Case x>=60 Print"及格" Case Else Print"不及格"

下列程序段的执行结果为 I=1 x=5 Do I= I + 1 x= x + 2 Loop Until I>=7 Print " I= ";I Print "x=";xA.I=4 x=5B.I=7 x=15C.I=6 x=8D.I=7 x=17

下列程序段的执行结果为 X=2 Y=5 If X * Y 0A.TrueB. 下列程序段的执行结果为 X=2 Y=5 If X * Y <1 Then Y=Y - 1 Else Y=-1 Print Y-X>0A.TrueB.FalseC.-1D.1

下列程序段( )能够正确实现条件:如果X<Y则A=15,否则A=-15。A.If X<Y Then A=15 A=-15 Prin AB.If X<Y Then A=15:Print A A=-15:Print AC.If X<Y Then A=1.5:Print A Else A=-15:Print A End IfD.If X<Y Then A=15 Else A=-15 Print A End If

下列程序段的执行结果为 For X=5 To 1 Step -1 For Y=1 To 6-X Print Tab(Y+5);"*"; Next Print NextA.***** **** *** ** *B.***** **** *** ** *C.* ** *** **** *****D. * *** ***** ******* *********

下列程序段的执行结果为 i=9 x=5 Do i=i + 1 x=x + 2 Loop Until i>=7 Print "i=":i Print "x=":XA.i=4x=5B.i=7x=15C.i=6x=8D.i=10x=7

如果x为整数且|x|>=100,则打印“OK”,否则打印“Error”,表示这个条件的单行格式 If语句是A.If Int((x)=x And Sqr(x)>=100 Then Print "OK" Else Print "Error"B.If Fix(x)=x And Abs(x)>=100 Then Print"OK"Else Print"Error"C.If Int(x)=x And (x>=100,x<=-100)Then Print"OK"Else Print"Error"D.If Fix(x)=x And x>=100 And x<=-100 Then Print "OK" Else Print "Error"

下面程序段执行结果为x=Iht(Rnd()+4)Select Case x Case 5 Print"excellent" Case 4 Print"good" Case 3 Print"paSS" Case Else Print "fail"End SelectA.excellentB.goodC.passD.fail

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

有如下程序: Private Type stu X As String Y As Integer End Type Private Sub Command1 Click( ) Dim a As stu X="ABCD" Y=12345 Print a End Sub 程序运行时出现错误,错误的原因是( )。A.Type定义语句没有放在标准模块中B.变量声明语句有错C.赋值语句不对D.输出语句Print不对

下列程序段的执行结果为 I=4 x=5 Do I=I + 1 X=K^2 Loop Until I>=7 Print"I=";I Print"x=";xA.I=4 x=258694B.I=7 x=256987C.I=6 x=365840D.I=7 x=390625

下列程序的执行结果是______。 X=-6^2 Print Sgn(x)+Abs(x)+Int(x)A.-36B.1C.-1D.-72

执行下面程序后输出的正确结果是 public class Test{ public stoic void main (String args[]){ byte x=3, y=4; long r=80L; System.out.print(r/y); System.out.print(","); System.out.print(x/y); } }A.20.0, 1B.20.0, 1.0C.20,0D.20, 1.0

下列程序段的执行结果为 I=9 X=5 Do I=I+1 x=x+2 Loop Until I >=7 Print"I=";I Print"x=";xA.I=4x=5B.I=7x=15C.I=6x=8D.I=10x=7

下面程序段运行后,显示结果是()。DimxIf x Then Print x Else Print x+1A、0B、1C、-1D、显示出错信息

下列程序段:Dim x If x Then Print x Else Print x+1运行后,显示的结果是()。A、1B、0C、-1D、出错

单选题下面程序段运行后,显示结果是()。Dim xIf x Then Print x Else Print x+1A0B1C-1D显示出错信息

单选题下面程序段运行后,显示结果是()。DimxIf x Then Print x Else Print x+1A0B1C-1D显示出错信息

单选题下列程序段:Dim x If x Then Print x Else Print x+1运行后,显示的结果是()。A1B0C-1D出错