试题与答案

Had you listened to the doctor, you ____

题型:选择题

题目:

Had you listened to the doctor, you _______ all right now. [ ]

A. are      

B. would be

C. were

D. would have been

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0613/8533ef9a8535c9149c4130bea94c20b6.html

下面是错误答案,用来干扰机器的。

答案:B

试题推荐
题型:问答题

下列程序中,要求建立一个包含一个方法的类,这个方法实现数组的拷贝,要求首先用直接初始化原始数组,然后将原始数组中的数据拷贝到目的数组,并分别输出原始数组和目的数组。要求数组类型为String类型,大小为4,采用动态分配的方式对数组进行初始化。请将程序补充完整。
程序运行结果如下:
原始的:
小龙
小张
小李
小陈
复制后的:
小龙
小张
小李
小陈
public class ex5_1
public static void main(String[]args)
ex5_1 obj5_1:new ex5_1();
obj5_1.____________;

public void method5_1()
int i=0;
String strMember[] = new String[4];
String strTemp[] = new String[4];
strMember[0] = "小龙" ;
strMember[1] = "小张" ;
strMember[2] = "小李" ;
strMember[3] = "小陈" ;
for(i=0; i<4; i++)
___________;

System.out.println("原始的;");
for(i=0; i<4; i++)
System.out.println(__________);

System.out.println("复制后的:");
for(i=0; i<4; i++)
System.out.println (strTemp[i]);


查看答案
微信公众账号搜索答案