each presents one side of the picture.
the second is the logical result of the first.
the first gives examples and the second generalizes.
both present the problems that customers encounter.
第1题:
下面程序的输出结果是【 】。
include<iostream>
using namespace std;
int x;
void funA(int&,int);
void funB(int,int&);
int main()
{
int first;
int second=5;
x=6;
funA(first,seconD) ;
fimB(first,seconD) ;
cout<<first<<" "<<second<<" "<<x<<end1;
return 0;
}
void funA(int &a,int B)
{
int first;
first=a+b;
a=2*b;
b=first+4;
}
void funB(int u,int &v)
{
int second;
second=x;
v=second+4;
x=u+v;
}
第2题:
第3题:
A、his second attenpt did either
B、so did his second attenpt
C、# neither did his second attenpt
D、so his second attenpt did
第4题:
public class Bootchy { int bootch; String snootch; public Bootchy() { this(”snootchy”); System.out.print(”first “); } public Bootchy(String snootch) { this(420, “snootchy”); System.out.print(”second “); } public Bootchy(int bootch, String snootch) { this.bootch = bootch; this.snootch = snootch; System.out.print(”third “); } public static void main(String[] args) { Bootchy b = new Bootchy(); System.out.print(b.snootch +“ “ + b.bootch); } } What is the result?()
第5题:
第6题:
下面程序的输出结果是______。
include<iostream>
using namespace std;
int x;
void funA(int&,int);
void funB(int,int&);
int main()
{
int first;
int second=5;
x=6;
funA(first,second);
funB(first,second);
cout<<first<<””<<second<<””<<x<<endl;
return 0;
}
void funA(int &a,int b)
{
int first;
first=a+b;
a=2*b;
b=first+4;
}
void funB(int u, int &v)
{
int second;
second=x;
v=second+4;
x=u+v;
}
第7题:
第8题:
执行下列程序,显示的结果是______。
first="china"
second=""
a=LEN(first)
i=a
DO WHILE i>=1
second=second+SUBSTR(first,i,1)
i=i-1
ENDDO
?second
第9题:
第10题:
An administrator is configuring RAID 1 in a server. The administrator has been given two matching 80GB SATA-2 hard drives, two SATA-2 cables, and a SATA-2 RAID adapter. How should the administrator BEST configure these drives?()