A.投资利润率
B.财务净现值
C.财务内部收益率
D.销售利润率
E.现金回报率
第1题
有以下程序:
include <iostream>
using namespace std;
int f(int);
int main()
{
int i;
for(i=0;i<5;i++)
cout<<f(i)<<" ";
return 0;
}
int f(int i)
{
static int k=1;
for(;i>0;i--)
k+=i;
第2题
有下列程序: #include<iostream> using namespace std; class VAC{ public: int f() const{return3;} int f() {return 5;} }; int main(){ VAC v1; const VAC v2; cout<<v1.f()<<v2.f();
A.53
B.35
C.55
D.33
第3题
有以下程序: #include <iostream> #include <fstream> using namespace std; int main () { ofstream ofile; char ch; ofile.open ("abc.txt"); cin>>ch; while (ch!='#' ) { cin>>ch; ofile.put(ch);
A.程序编译时出错
B.abc#
C.abc
D.#
第4题
以下程序的运行结果是 。 #include <iostream> using namespace std; void main() { int a = 0, b = 1; for (; a<5 5="=" ; a++, b++) { if ((a+b ) % 0) continue; b +="a;" } , \n";>
第5题
若有以下程序: #include <iostream> using namespace std; int f() { static int i = 0; int s = 1; s+=i; i++; return s; } int main() { int i,a = 0; for(i = 0;i<5;i++) a+=f(); cout<<a<<endl; return 0; } 程序运行后,输出的结果是
A.20
B.24
C.25
D.15
第6题
若有以下程序:
include <iostream>
using namespace std;
int f(int x, int y)
{
return (y-x)*x;
}
int main()
{
int a=3,b=4,c=5,d;
d=f(f(a,b) ,f(a,c) );
cout<<d<<<end1;
return 0;
}
执行后的输出结果是【 】。
第7题
以下程序的输出结果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
第8题
有以下程序: #include <iostream> using namespace std; int s=0; class sample { static int n; public: sample (int i) { n=i; } static void add() { s+=n; } }; int sample::n=0;
A.2
B.5
C.7
D.3
第9题
有以下程序: #include <iostream> #include <strinq> using namespace std; int main() { char a[] = {'a'/'b'/'c'/'d','e','f','g','h','\0'}; int i j; i=sizeof(A) ; j=strlen(A) ; cout<<i<<","<<j<<end1; return 0; } 程序运行后的结果是()。
A.9,9
B.8,9
C.1,8
D.9,8
第10题
以下程序的输出结果是#include <iostream>using namespace std;int main(){ cout.fill('*'); cout.width(5); cous<<hex<<100<<end1; return 0;}
A.**100
B.***64
C.100**
D.64***
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!