题目
第2题
第3题
第4题
第5题
第6题
In accordance with Sinotime,the Charterers will not be responsible for __________.
A.the expenses of all dock,harbour and tonnage dues at the ports of delivery and re-delivery unless incurred before delivery or after re-delivery
B.expenses of agencies and commissions
C.charges including any foreign general municipality or state taxes
D.expenses for all ropes,falls,slings and blocks actually used for loading and discharging
第7题
B.enterprises and units engaged in business directly related to import and export as defined by the Customs General Administration
C.enterprises engaged in Customs brokerage
D.enterprises engaged in Customs bonded business
第8题
注意:不改动程序的结构,不得增行或删行
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class Example3_4 extends Applet
{
public Color color = Color.red;
private int num= 1000;
public Counter theCounter;
private Button stop;
private Button start;
public void init()
{
stop = new Button("暂停");
start = new Button ("继续");
theCounter = new Counter(this);
stop.addActionListener(new Lst() implements ActionListener{
public void actionPerformed(ActionEvent e)
{
theCounter.sus();
}
});
start.addActionListener(new SuspenListener());
add(start);
add(stop);
theCounter.start();
}
public void paint(Graphics g)
{
g.setCotor(color);
g.drawString(String.valueOf(num),50,50);
}
public void setInt(int i)
{
num=i;
}
class SuspenListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
theCounter.conti ();
}
}
}
public class Counter extends Thread
{
Example3_4 example;
boolean isHold;
Counter (Example3_4 ex)
{
this.example = ex;
isHold = false;
}
public void sus()
{
isHold = true;
}
public synchronized void conti()
{
isHold = false;
notify();
}
public void run()
{
for (int i = 1000; i>0; i--)
{
if (i%2 == 1)
example.color = Color.red;
else
example.color = Color.blue;
example.setInt(i);
example.repaint();
try
{
sleep(1000);
synchronized {
while(isHold)
wait ();
}
}
catch (InterruptedException ie)
{}
}
}
}
<HTML>
<HEAD>
<TITLE>Example3_4</TITLE>
</HEAD>
<BO
第9题
上海进出口贸易公司(SHANGHAI IMPORT AND EXPORT CO.LTD.)于2007年3月1日与澳大利亚客户MANDARS IMPORTS Co.Ltd.签定一份订购合同。内容如下:
PURCHASE CONTRACT
P/C N0.:070101
DATE:MAR.1[st],07
THE SELLER: THE BUYER:
Shanghai Import and Export Co.Ltd. Mandars Imports Co.Ltd.
Address:No.1321 Zhongshan Road. 38 Queensway.2008
NSW Australia
Shanghai,China
We hereby confirm having sold to you the following goods on terms and conditions as stipulated bellows:
Description of goods:
Ladies Denim Skirt
Exactly like Artwork,but change the main label position to center back and cancel the zipper.
Fabric:
99% cotton 1%Elastic Construction:11×16+70D/88×46
Washing:
blue-grey like our sample no.MA212090
Changing:
Please put the Mandars hangtag not in center back,but in seam.
Please print at the back side of the
care label:
Product from Mandars 2008 NSW/AUSTRALIA
Packing:
Flat pack without folding 6 pieces assorted sizes per polybag,3 polybags in a master polybag and then into an export carton.
Maximum sizes of export cartons:
Length Width Height
60 42 variable
Color:Blue/grey
Marking of the cartons:
As per our information
Hangtag:MANDARS
Main label:MANDARS
Care label:
With correct Composition&washing instruction
Samples:
Counter samples:3 pieces in size 38 ex Shanghai 2007.3.15
Samples:
2 pieces in size 38 ex Shanghai 2007.4.20
Pre-production samples:
The Pre-production samples should be made after the fabric haVe been tested and passed by ITS Shanghai Branch,
Then will be sent to customers’quality assurance department."Go" for production can only be given after their approval.
Payment:
By confirmed and irrevocable L/C payable by beneficiary's drafts at 60 days after B/L date sight and remain valid in China for further 16 days after shipment.
Price Terms:
AUD7.00 per piece FOB Shanghai
Quantity:
18000 pieces
Amount:
AUD126000.00
Delivery Date:
2007.5.30Ex Shanghai by sea/Maersk
To Sydney,Australia with partial and transshipment allowed
Delivery Address:
Mandars Imp.Co.
Atm:Ken
Shipping agent:
National Containers Ltd
Size and color assortment.
Purchase conditions:
All garments manufacturers must meet the minimum manufacturing standards,comply with the SA8000, and all garments should be AZO-free and no nickel press buttons are used.
SELLER:Shanghai Import and Export Co.Ltd. BUYER:Mandars Imports Co.Ltd
销售合同审查操作
将下列合同条款译成中文并回答相关问题:
翻译规格表
第10题
阅读以下说明和Java程序代码,将应填入(n)处的字句写在对应栏内。
SMTP是发送E-mail的协议,常用以下5条命令发送E-mail:
HELO,与SMTP服务器握手,传送本机域名;
MAILFROM:,传送发信者的信箱名称;
RCPTTO:,传送接收者的信箱名称;
DATA,发送邮件数据(包括信头和信体);
QUIT,退出与SMTP服务器的连接。
2.试题中直接利用的类及方法如下:
(1)类ServerSocket(int port)实现TCP服务器接口(socket),它提供两种构造函数,用它们来指定服务器插口所用的端口,并监听到达的连接请求。类中的主要方法有:
accept():启动服务器插口监听并等待,直到建立连接为止,一旦建立连接就返回Socket类的一个对象。
getInetAddress():返回插口所连接的主机地址。
getLocaIPort():返回在服务器插口上建立了连接的端口。
close():关闭服务器插口。
(2)类InetAddress包装了Internet地址。类中的主要方法有:
getLocaIHost():返回一个代表本机Internet地址的InetAddress对象。
getaddress():获得数字表示的IP地址。
getHostName():获得域名。
(3)类Socket实现基于连接的客户插口。类中的主要方法有getInetAddress():返回一个与插口连接的客户机的Internet地址,其类型为InetAd-dress。getlnputStream():用来访问与插口相关的输入流。getOutputStream():用来访问与插口机关的输出琉。close():关闭插口。
(4)readLine()是输入流类的一个方法,用于服务器或客户从对方读入一行输入流信息。
(5)用户白定义类NVTInputStream(InputStream inStream, OutputStream outStream)实现了网络虚拟终端输入接口。
(6)用户自定义类NVTOutputStream(OutputStream outStream)实现了网络虚拟终端输接口。
3.下面是用Java语言实现的一个简单SMTP服务器程序的部分代码。
[程序代码]
import java.net. *:
import java.io. *;
import jdg. yan. NVTlnputStream; //用户自定义类包
import jdg. yan. NVTOutputStream; //用户自定义类包
public class SMTPServer App
{
public static void main(String args[])
{
SMTPServer server=new SMTPServer();
server. run();
}
}
class SMTPServer
{
static final int HELO=1;
static final int MAIL=2;
static final int RCPT=3;
static final int DATA=4;
static final int END_DATA=5;
static final int OUIT=6;
static final int FINISHED=9;
NVTOutputStream out;
NVTInputStream in;
String hostName;
public SMTPServer()
{
super();
}
public void run(){
try{
ServerSOcket server=(1);//在1145号端口建立下CP服务器插口
int localPort=server. getLocalPort();//监听连接端口
hostNama=(2);//获取本地主机域名
SVstem. out. prfntln("listening on port"+locaIPort+".");
boolean finished=false;
do {
Socket client=(3);//监听等待,直到建立连接,返回对象client
Stnng destName=(4);//获得所连接的客户主机IP地址的域名
int destPort=client. getPort();//所连接的客户主机端口号
System. out pnntln("Accepted connection to"+destNama+"on port"+destPort+"."
//控制台显示连接
out=new NVT0utputStream(client. get OutputStream());
In=new NVTInputStream((5));//建立与连接关联的输入流
(6);//接收邮件
(7);//关闭连接对象
}while(! finished);
}catch(UnknownHostException ex){
SVstem.out.printtn("UnknownHostException occurred.");//出错处理
}cath(lOException ex){
System. out. println("lOException occurred.");
}
}
vold getMail(){ //实现SMTP的子集,从客户接收邮件
out. println("Server220"+hostName+"Ready!");
int state=HELO; //设置状态为HELO,state保存与客户通信的状态
do{ //接收并处理从邮件客户接收到的命令
String line="";
out. println("Server 250 HELO, OK!");
try{
line=(8);//从虚拟终端读取一行
if(line==null)state=FINISHED;
}catch(IOException ex){
System. out. prmntln("Server IOExceptlon occurred.");
System.exit(1);
}
switch(state){
case HELO:
if((9))//若该行信息为传送本机域名
{
out. println("Server 250 Hello");
System. out. println(line);
state=MAIL;
}else{
out. println("Server 500 ERROR");
System. out. println("Server"+line);
}
state=FINISHED;
break'
case MAIL: //省略代码
case RCPT:
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!