网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面代码的输出结果是 z = 12.12 + 34j print(z.real)
A.34
B.34.0
C.12
D.12.12
参考答案和解析
12.12
更多 “下面代码的输出结果是 z = 12.12 + 34j print(z.real)A.34B.34.0C.12D.12.12” 相关考题
考题
执行下面代码,结果为():name_list=[]ifname_listandname_list[100]=='张三':print('OK')
A.程序报错B.OKC.NULLD.无输出
考题
已有变量定义和函数调用语句:int a=25;print_value(a);下面函数的正确输出结果是void print_value(int *x){printf("%d\n",++*x);}A.23B.24C.25D.26
考题
有如下程序: DefStr X-Z X="123'’ Y="456" Z=X$+Y$ Print Z$ End 运行后,输出的结果是( )。A.显示出错结果B.123456C.579D.579
考题
以下程序的输出结果是 ( ) fun (int x,int y, int z) { z=x * x+y * y;} main( ) { int a=31; fun(5,2,a); print{("%d",a); }A.0B.29C.31D.无定值
考题
执行下面程序后输出的正确结果是( )。 public class Test{ public static void main(String args[]){ System.out.print(100%3); System.out.print(","); System.out.print(100%0); } }A.1,1B.1,1.0C.1.0, lD.1.0,1.0
考题
下面程序的输出结果是()。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
考题
下面代码的输出结果是多少?char var[10];int test(char var[]){return sizeof(var);};A.4SXB
下面代码的输出结果是多少?char var[10];int test(char var[]){return sizeof(var);};A.4B.9C.11D.10
考题
下面程序的运行结果是( )。 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
考题
下面程序的输出结果是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
考题
在窗体中添加一个命令按钮,并编写如下程序: Private Sub Command1_CliCk() X=1∶Y=2∶Z=3 X=Y∶Y=Z∶Z=X Print Z End Sub 程序执行后,输出的结果是______。A.3B.0C.2D.1
考题
有如下程序: DefStr X-Z X="123" Y="456", Z=X$+Y$ Print ZS End 运行后,输出结果是( )。A.显示出错信息B.123456C.579D.579
考题
下面程序的输出结果是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
考题
给定以下JAVA代码,这段代码编译运行后输出的结果是( )publicclassTest{publicstaticintaMethod(inti)throwsException{try{returni/10;}catch(Exceptionex){thrownewException("exceptioninaaMothod");}finally{System.out.print("finally");}}publicstaticvoidmain(String[]args){try{aMethod(0);}catch(Exceptionex){System.out.print("exceptioninmain");}System.out.print("finished");}}A、finallyexceptioninmainfinishedB、exceptioninmainfinallyC、finallyfinishedD、finallyexceptioninmainfinished
考题
下面程序的输出结果是()。includevoid main(){int x=-1,y=5,z;z=(x++
下面程序的输出结果是( )。#include<iostream.h>void main(){int x=-1,y=5,z;z=(x++<0) (y-->=0);cout<<x<<'\t'<<y<<'\t'<<z<<end1;}A.-1 5 0B.-1 4 1C.0 4 1D.0 4 0
考题
下面程序段的输出结果是:int a = 2;System.out.print( a++);System.out.print( a);System.out.print(++a);
A.333B.334C.234D.233
考题
填空题代码print(re.match(’^[a-zA-Z]+$’,’abcDEFG000’))的输出结果为()。
热门标签
最新试卷