1、下列语句输出的结果是________。 t=(1,2,3,7,9,0,5) print(t[1: -1])A.(1,2,3,7,9,0,5)B.(2, 3, 7, 9, 0)C.(1,2,3,7,9,0)D.(2,3,7,9,0,5)
1、下列语句输出的结果是________。 t=(1,2,3,7,9,0,5) print(t[1: -1])
A.(1,2,3,7,9,0,5)
B.(2, 3, 7, 9, 0)
C.(1,2,3,7,9,0)
D.(2,3,7,9,0,5)
参考答案和解析
12345.68
相关考题:
语句: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
执行语句Print "Sgn(-34)=";Sgn(-34)后,其输出结果是 A.Sgn(-34)=34 B.Sgn(-34)=-34 C.Sgn(-34)=+1 D.Sgn(-34)=-1
下面运行程序后,单击命令按钮,输出的结果是 【 】 。Private Sub Command1_Click()Dim a%(1 To 5),i%, s#For i=1 To 5a(i)=iNexts=Fun(a)Print "s="; s;End SubFunction Fun(a() As Integer)Dim t#, i%t=1For i=LBound(a) To UBound(a)t=t a(i)NextFun=tEnd Function
在窗体上画一个命令按钮(名称为Command1),并编写下列代码: Function Fun1(ByVa1 a As Integer,b As Integer)As Integer Dim t As Integer t=a-b b=t+a Fun1=t+b End Function Private Sub Command1Click( ) Dim X As Integer x=10 Print Fun1(Vun1(X,(Fun1(x,x-1))),x-1) End Sub 程序运行后,单击命令按钮,输出结果是( )。A.10B.0C.11D.21
下面运行程序后,单击命令按钮,输出出的结果是【 】。Private Sub Command1_Click( )Dim a% (1 To 5) ,i%, sFor i = 1 To 5a(i) =iNexts = Fun(a)Print"s="; s;End SubFunction Fun(a() As Integer)Dim t, i%t=1For i = LBound(A0To UBound(a)t=t * a(i)NextFun =tEnd Function
下列程序的运行结果是( )。 s=0:t=0:u=0 For x=1 To 3 For y=1 To x For z=y To 3 s=s+1 Next z t=t+1 Next y u=u+1 Next x Print s;t;uA.3 6 14B.14 6 3C.14 3 6D.16 4 3
语句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
某人设计了如下程序用于计算并输出7!(7的阶乘): Private Sub Command1_Click t = 0 For k = 7 To 2 Step -1 t = t * k Next Print t End Sub 执行程序时,发现结果是错误的。下面的修改方案中能够得到正确结果的是。 A.把t=0改为t=1 B.把For k=7 TO 2 Step -1改为For k=7 TO 1 Step -1 C.把For k=7 TO 2 Step -1改为For k=1 TO 7 D.把Next改为Next k
有如下事件过程,单击命令按钮扣,输出结果是 Private Sub Command1 Click( ) Dim b% (1 To4) ,j%, t# For j=1 To 4 b(j) =j Next j t=Tax(b( ) ) Print "t="; t, End Sub Function Tax (a( ) As Integer) Dim t#, i% t=1 For i=2 To UBound (A)t=t * a(i) Next i Tax=t End FunctionA.t=18B.t=24C.t=30D.t=32
下面程序运行时,单击窗体后,窗体上显示的结果是( )。 Private Sub Form_Click Dim I As Integer Dim sum As Long Dim t1 As Long t1=1:sum=0 For 1=1 To 3 t1=t1*I sum=sum+t1 Next I Print sum End SubA.3B.9C.5D.6
下列程序的输出结果是______。 class T44 implements Runnable { public void run() { System.out.print in (Thread.currentThread ( ).getName ( ) + "运行" ); } } public class ex44 { public static void main(String[] args) { Thread t1 = new Thread(new T44(), "t1"); Thread t2 = new Thread(new T44 () , "t2"); t1 .setPriority(Thread. MAX_PRIORITY); t2.setPriority(Thread.MIN_PRIORITY); t2. start (); t1 .start (); } }A.t1 运行 t2 运行B.t2 运行 t1 运行C.t1 运行 t1 运行D.t2 运行 t2 运行
以下语句的输出结果是______。 Private Sub Command1_Click() x=10 y=1 Print x+y=101; End SubA.11B.101C.110D.False
在窗体上画一个命令按钮(名称为Command1),并编写下列代码:Function Fun1(ByVa1 a As Integer,b As Integer)As IntegerDim t As Integert=a-bb=t+aFun1=t+bEnd FunctionPrivate Sub Command1Click( )Dim X As Integerx=10Print Fun1(Vun1(X,(Fun1(x,x-1))),x-1)End Sub程序运行后,单击命令按钮,输出结果是( )。A.10B.0C.11D.21
下面运行程序后,单击命令按钮,输出的结果是【 】。Private Sub Command1_Click()Dim a%(1 To 4),b%(3 To 6),i%,s1,s2For i=1 To 4a(i)=iNextFor i=3 To 6b(i)=iNexts1.= Fun(a)s2 =Fun(b)Print "s1 ="; s1; "s2 ="; s2End SubFunction Fun( a( ) As Integer)Dim t, i%t=1For i = LBound(A)To UBound(a)t=t * a(i)NextFun=tEnd Function
下面程序运行后,单击命令按钮,输出的结果是______。Private Sub Command1_Click()Dim a%(1 To 5),i%,sFor i=1 To 5a(i) =iNexts=Fun(A)Print "s=";s;End SubFunction Fun(a() As Integer)Dim t,i%t=1For i=LBound(A)To UBound(A)t=t*a(i)NextFun=tEnd Function
单选题语句Print Sgn(Abs(-6^2))的输出结果是()A-1B1C-36D36