Which of the following, according to the passage, contribute(s) to alcoholism? Ⅰ. the need to reduce tensions and anxieties Ⅱ. the anxieties resulting from guilt feelings about previous drinking bouts Ⅲ. punishment for alcoholic behavior
A.Ⅰ only
B.Ⅰ and Ⅱ only
C.Ⅰ,Ⅱ, and Ⅲ
D.Ⅱ and Ⅲ only
第1题
以下程序的输出结果是 。 #include <iostream> using namespace std; int fun(int k) { static int m=1; int n=2; m=k+m+n++; return m; } void main() { for(int i=0; i<3; i++)> <<’\t’; }>
第2题
有以下程序: #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.#
第3题
有以下程序: #include<iostream> using namespace std; Class sample { private: int n; public: sample(){} sample(int m) { n=m; } sample add(sample s1,samplc s2) { this-->n=s1.n+s2.n; return(*this); } void disp(
A.n=10
B.n=5
C.n=20
D.n=15
第4题
有以下程序: #include <iostream> using namespace Std; int main() { int a = 15,b = 21,m = 0; switch(a%3) { case 0: m++; break; case 1: m++; switch(b%2) {
A.1
B.2
C.3
D.4
第5题
有以下程序#include <iostream>using namespace std;int a;int fun ();int main (){ extern int a; int b; a = 100; b = fun(); cout<<b<<end1; return 0;}int fun{){ extern int a; return (10*a ;} 其程序运行后的输出结果是
A.100
B.10
C.1000
D.10000
第6题
有以下程序: #include<iostream> using namespace std; class sample { private: int x; public: sample(int A) { x=a; friend double square(sample s); }; double square(sample s) { return S.X*S.K; } int main() { sa
A.20
B.30
C.900
D.400
第7题
第8题
以下程序的输出是【 】。
include<iostream>
using namespace std;
fun(intm)
{
static int n=1;
n=m*n;
return(n);
}
void main()
{
int i;
for(i=1;i<=3;i++) cout<<fun(i);
}
第9题
有以下程序: #include<iostream> using namespace std; class sample { private: int n; public: sample(){} sample(int m) { n=m; } sample add(sample s1,sample s2) { this->n=s1.n+s2.n; return(*this); }
A.n=10
B.n=5
C.n=20
D.n=15
第10题
以下程序的运行结果是 。 #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";>
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!