从道路红线向道路中心线方向平行布置的工程管线次序为()。
A.给水配水、电力电缆、电信电缆、燃气配气、燃气输气、热力干线、给水输水、雨水排水、污水排水
B.电力电缆、电信电缆、燃气输气、热力干线、给水配水、给水输水、雨水排水、污水排水
C.电力电缆、电信电缆、燃气配气、给水配水、热力干线、燃气输气、给水输水、雨水排水、污水排水
D.污水排水、雨水排水、给水输水、燃气配气、热力干线、给水配水、燃气配气、电信电缆、电力电缆
第1题
有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a; else return(fun(-a,-b)); } main() { printf("%d\n",fun(4,2)); } 程序的运行结果是______。
A.1
B.2
C.3
D.4
第2题
有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a; else return(fun(-a,-b)); } main() { printf("%d\n",fun(4,2)); } 程序的运行结果是______。
A.1
B.2
C.3
D.4
第3题
有以下程序:#include <stdio.h>int fun(int n){ if(n == 1) return 1; else return(n + fun(n - 1 ) );}main(){ int x; seanf("% d" ,&X) ;x = fun(x) ;pfinff("% d \n" ,x);} 执行程序时,给变量x输入10,程序的输出结果是()。
A.55
B.54
C.65
D.45
第4题
有如下程序: #include<iostream> using namespace std; long fun(int n) { if(n>2) return(fun(n-1)+fun (n-2)); else return 2; } int main() { cout<<fun(3)<<end1; return 0; } 则该程序的输出结果应该是 ()。
A.2
B.3
C.4
D.5
第5题
A.0
B.10
C.20
D.出错
第6题
A.0
B.10
C.20
D.出错
第7题
有如下程序: #include<iostream> using namespace std; long fun(int n) { if(n>2) return(fun(n-1)+fun(n-2)); return 2; } int main() { cout<<fun(3)<<end1; return 0; } 则该程序的输出结果应该是()。
A.2
B.3
C.4
D.5
第8题
如有下程序: #include<iostream> using namespace std; long fun(int n) { if(n>2) return(fun(n-1)+fun(n-2)); else return 2; } int main() { cout<<fun(3)<<endl; return 0; } 则该程序的输出结果应该是()。
A.2
B.3
C.
D.5
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!