【简答题】以下程序执行后的输出结果是 class Program { static void Main(string[] args) { int[] a = {12,9,76,-90,23,100,87,32}; for (int i = 2; i < 4; i++) { int t; for (int j=i + 1; j <5; j++) { if (a[i] < a[j]) { t=a[i];...
【简答题】下面程序的功能是已知两个集合A、B,输出A、B两集合的交集。请在81题答题处完善程序。 例如:A={23,45,21,-9,4,-32,6,58,2},B={3,21,8,-32,23},则交集为{21,-32,23}。 #include void sort(int a[],int n) { int i,j,t; for(i=1;i { t=a[i]; j=i-1; while( 1 ) // 降...
【简答题】Most systems are constructed around a (1), a metal (2) containing a series of slots linked through a (3), to a 16- or 32-bit processor. Memory is added by plugging a (4) board into one of the open slo...
【简答题】本程序序的功能:合并两个已经按照升序排列的一维数组。例如合并前数组a[10]={1,3,5,7,9},b [5l= {2,4,8,16,32),合并后a[10]={1, 2,3, 4,5,7,8,9 ,16 ,32)。 #include int main() { int i,j,k,a[10]={1,3,5,7,9},b[5]={2,4,8,16,32}; for(k=0;ka[k+4]) a[k...
【简答题】//【E5_2.c】判断键盘上输入的字符是否为英文字母、数字字符、字符/和其他字符。 // 1. ASCII码值小于等于32的为cotrol character // 2. 0~9为digit // 3. A~Z为capital letter // 4. a~z为lower letter // 5. 剩余的为oter character #include "stdio.h" void main()...
【简答题】有以下程序 #include void main( ) { int a[4][4]={{1,2,-3,-4},{0,-5,-9,13},{-11,23,0,-24},{-17,32,-23,0}}; int i,j,s=0; for(i=0;i<4;i++) { for(j=0;j<4;j++) { if(a[i][j]<0) continue; if(a[i][j]==0) break...
【单选题】Crafter's Supply purchased some fixed assets 2 years ago at a cost of $3 9 , 5 00. It no longer needs these assets so it is going to sell them today for $2 6 ,000. The assets are classified as 5-year ...
【判断题】垂直交通通道要求具有通畅、坚固、抗震、防火、通风、采光、美观的特点( )
【单选题】 public class a { 2. public void method1() { 3. try { 4. B b=new b(); 5. b.method2(); 6. // more code here 7. } catch (TestException te) { 8. throw new RuntimeException(te); 9. } 10. } 11. }...
A.
Line 33 must be called within a try block.
B.
The exception thrown by method1 in class a is not required to be caught.
C.
The method declared on line 31 must be declared to throw a RuntimeException.
D.
On line 5 of class a, the call to method2 of class b does not need to be placed in a try/catch block.
【简答题】If A=[1,2;5,4;9,5;32,4],so A(1,2)+A(2,2)=(_);