What are the speakers mainly discussing?
A.A product order
B.Information about computer
C.Declining sales
D.Post office items
第1題
有如下程序 #include<iostream.h> void main() { float x=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0/x; else y=1.0; cout < < y; } 該程序的輸出結果是
A.0
B.0.25
C.0.5
D.1
第2題
有如下程序 #include<iostream.h> void main() { float X=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0/x; else y=1.0; cout<<y; } 該程序的輸出結果是
A.0
B.0.25
C.0.5
D.1
第3題
有如下程序 #include<iostream.h> void main() { float x=2.O,y; if(x<O.0)y=0.0; else if(x<10.O)y=1.0/x; else y=1.0; cout<<y; } 該程序的輸出結果是
A.0
B.0.25
C.0.5
D.1
第4題
有如下程序 #include <stdio.h> int main(void) { float x=2.0,y; if(x<0.0) y="0.0;" else printf("%f\n",y); return 0; } 該程序的輸出結果是()。> A、1.000000
B、0.250000
C、0.500000
D、0.000000
第5題
有如下程序段 &include<iostream.h> void main() {int a=14,b=15,x; char c='A': x=(a && b) && (c<'B'=; cout<<x;= 執行該程序段后,x的值為
A.ture
B.FALSE
C.0
D.1
第6題
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b) ,a-c) ;}程序運行后的輸出結果是
A.編譯出錯
B.9
C.21
D.9
第7題
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b),a-c);} 程序運行后的輸出結果是()。
A.編譯出錯
B.9
C.21
D.9
第8題
有以下程序: #include<iostream.h> float tun(int X,int Y) {return(X+Y);} void main {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,B.,a—C.; 程序運行后的輸出結果是()。
A.編譯出錯
B.9
C.21
D.9.0
第9題
有如下程序段 &include<iostream.h> void main() {int a=14,b=15,x; char c='A' x=(a&&b)&&(c<'B'=; cout<<x;= 執行該程序段后,x的值為
A.ture
B.假
C.0
D.1
第10題
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b),a-c);} 程序運行后的輸出結果是()。
A.編譯出錯
B.9
C.21
D.9
為了保護您的賬號安全,請在“上學吧”公眾號進行驗證,點擊“官網服務”-“賬號驗證”后輸入驗證碼“”完成驗證,驗證成功后方可繼續查看答案!