题目
How long is this cold weather going to _____.
A.take
B.last
C.stay
D.be
第1题
A. Internet Protocol address
B. Media Access Control address
C. Packet Layer Proto col address
D. Network Service Access Point address
E. Authority and Format Identifier address
第2题
阅读以下说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。
【说明】
以下程序为求行列式X(5,5)的值S。
【Visual Basic代码】
Private Function col (byval x (5,5 ) as integer ) as long
dim fesult as long
dim temp as long
dim I as integer
dim j as integer
dim k as imeger
result = 0
for I = to 5
(1)
for j = 1 to 5
if I+j>6 then
k= (1+j ) mod 5
else
k=1
endif
temp=temp*x (k,j )
(2)
result=(3)
(4)
(5)
End function
第3题
注意:不改动程序的结构,不得增行或删行。
import java.awt.*;
import javax.swing.*;
import java.util. Date;
import javax.swing.table.*;
import java.applet.*;
import java.io.*;
public class Example3_10 extends JApplet, JFrame
{
public void init()
{
FileModel fm = new FileModel();
JTable jt = new JTable();
jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
jt.setColumnSelectionAllowed(true);
JScrollPane jsp = new JScrollPane(jt);
getContentPane().add(jsp, BorderLayout.CENTER);
}
public static void main(String args[])
{
Example3_10 ft = new Example3_10();
ft.init();
JFrame. f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT ON CLOSE);
f.getContentPane() .add(ft.getContentPane());
f.setSize (300, 400);
f.show();
}
}
class FileModel extends AbstractTableModel
{
String[] columnName = new String[] {
"文件名", "大小", "最后修改时间"
}
Object[] [] data;
public FileModel() { this("."); }
public FileModel(String dir)
{
File file = new File(dir);
String files[] = file.list();
data = new Object [files.length] [columnName.length];
for (int i=0; i < files.length; i++)
{
File tmp = new File (files[i]);
data[i] [0] = tmp.getName();
data[i] [1] = new Long(tmp.length());
data[i] [2] = new Date(tmp.lastModified() );
}
}
public int getColumnNumber()
{
return columnName.length;
}
public int getRowCount()
{
return data. length;
}
public String getColumnName(int col)
{
return columnName[col];
}
public Object getValueAt(int row, int col)
{
return data[row] [col];
}
public Class getColumnClass(int c)
{
return getValueAt (0, c) .getClass();
}
}
第5题
A、How long time are you studying
B、How long do you study
C、How long have you been studying
D、How long time have you studied
第9题
注意:不改变程序的结构,不得增行或删行。
import java.awt.*;
import javax.swing.*;
import java.util.Date;
import javax.swing.table.*;
import java.applet.*;
import java.io.*;
public class advance extends JApplet, JFrame
{
public void init()
{
FileModel fm=new FileModel();
JTable jt=new JTable();
jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
jt.setColumnSelectionAllowed(true);
JScrollPane jsp=new JScrollPane(jt);
getContentPane().add(jsp, BorderLayout.CENTER);
}
public static void main(String args[])
{
advance ft=new advance();
ft.init();
JFrame. f=new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(ft.getContentPane());
f.setSize(300,400);
f.show();
}
}
class FileModel extends AbstractTableModel
{
String[] columnName=new String[] {
"文件名","大小","最后修改时间"
};
Object[][] data;
public FileModel() {this(".");}
public FileModel(String dir)
{
File file=new File(dir);
String files[]=file.list();
data=new Object[files.length] [columnName.length];
for(int i=0; i<files.length; i++)
{
File tmp=new File(files[i]);
data[i] [0]=tmp.getName();
data[i] [1]=new Long(tmp.length());
data[i] [2]=new Date(tmp.lastModified());
}
}
public int getColumnNumber()
{
return columnName.length;
}
public int getRowCount()
{
return data.length;
}
public String getColumnName(int col)
{
return columnName[col];
}
public Object getValueAt(int row, int col)
{
return data[row] [col];
}
public Class getColumnClass(int c)
{
return getValueAt(0,c).getClass();
}
}
第10题
Could you tell me () ?
A.how long you live here
B.how long have you lived here
C.how long you have lived here
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!