下面代码的输出结果是() x=3.1415926 print(round(x) ,round(x,1))A.3.14 3B.3 3.1C.6.28 3D.3.1415926 3.1
下面代码的输出结果是() x=3.1415926 print(round(x) ,round(x,1))
A.3.14 3
B.3 3.1
C.6.28 3
D.3.1415926 3.1
参考答案和解析
B
相关考题:
运行下面程序后,正确的输出结果是 ______。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
执行下面程序,第一行输出结果是【 】,第二行输出结果是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
执行下面的程序后,输出的结果是 K=1 For j=1 To 4 X=X - 1: y=0 For k=1 To 4 X=X + 1: y=y + 1 Next k Next j Print X;yA.1 4B.13 4C.12 8D.20 6
以下程序段的输出结果是( )。 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
下面程序的输出结果是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)
单选题连续执行以下命令后,最后一条命令的输出结果是( )。x=25.6? INT(x),FLOOR(x),ROUND(x,0)A25,25,25B25,25,26C26,25,26D26,26,26
单选题下面语句的运行结果是( )。STORE -5.8 TO x?INT(x),CEILING(x),ROUND(x,0)A-5,-5,-5B-5,-5,-6C-5,-6,-5D-6,-6,-6