用户user1在宿主目录下有文件index.html,继续执行命令“vi~/index.htm”将有()操作效果。
A:新建文件index.htm B:打开已有文件index.htm C:新建文件的内容将覆盖index.htm的已有内容 D:删除该文件
It is nearly 25 years since The Economist cooked up the Big Mac index. It was devised in September 1986 as a fun way to explain "purchasing-power parity", by comparing the prices of hamburgers in different countries. But burgernomics has since provided serious food for thought. Some economists think the Big Mac index has been surprisingly accurate in predicting long-run movements in exchange rates. It has also provided a few hot tips (and some half-baked ones) for investors.
When the euro was launched in 1999, almost everybody reckoned it would immediately rise against the dollar. But the Big Mac index suggested that the euro was already overvalued. Soros Fund Management, a prominent hedge fund, later said that it sniffed at the sell smell coming from the Big Mac index, but resisted the temptation to bite. It was cheesed off when the euro promptly fell. Today, our burger barometer suggests that the euro is again overvalued against the other main currencies, and it highlights the euro area’s internal problems, showing that Greece, Italy, Portugal and Spain have lost competitiveness relative to Germany.
Burgernomics is also a handy check on whether governments are understating inflation. It supports claims that Argentina has been cooking the books: over the past decade, Big Mac prices there have, on average, risen by well over ten percentage points more each year than the official consumer-price index—a far bigger gap than in any other country. But bingeing on burgernomics can be unhealthy. American politicians cite the Big Mac index as proof that the yuan is massively undervalued. It is true that burgers are cheap in China, but so they should be in all emerging economies, because wages are much lower. If the index is adjusted for GDP per person, it shows that the yuan is now close to its fair value against the dollar.
Studies suggest that the Big Mac index fairly closely tracks the purchasing-power-parity rates calculated by more sophisticated methods. Yet whereas those fancier techniques require researchers to gather thousands of prices in each country and take two years to produce, the Big Mac index relies on a single product, so the results are almost instant.
Official economic statistics are published only after a lag and are subject to big revisions. This explains the popularity of some quirky but timely indicators. When Alan Greenspan was chairman of the Federal Reserve, he monitored several unusual measures. One favourite, supposedly, was sales of men’s underwear, which are usually pretty constant, but drop in recessions when men replace them less often. The Old Lady of Threadneedle Street is perhaps too prim to inspect men’s underpants. Instead, the Bank of England tracks data on internet searches for telltale terms. It has, for example, found that the trend in searches for "estate agents" can be a predictor of house prices.
The example of Soros Fund Management proved that
A:the Big Mac index’s indication as to euro’s value was trustworthy. B:there were some obvious problems within the euro area. C:euro’s value increased as everyone expected. D:the firm benefited a lot from the Big Mac index’s predication.
以下是用ASP实现的一个在线留言系统。
index.html 文档如下:
<html>
<head>
<title>在线留言系统</title>
</head>
<body>
<p align= "center" ><font color="#006699">在线留言系统</font></p>
<form method="post" action="submit.asp">
<table border="0" cellspacing="l" width="89%">
<tr>
<td>姓名: </td>
<td>< (2) name="name" size="30" class="text"maxlength="20"></td>
</tr>
<tr>
性别: </td>
<td>< (3) name="sex" size="1"
<option selected>请选择你的性别</option>
<option value="男">男</option>
<option value:"女">女</option>
</select></td>
</tr>
<tr>
<td><b>简短留言: </b></td>
<td>< (4) name:"content" rows="6" cols="45" class="tsxt"></textarea></td>
</tr>
<tr>
<td>< (5) name="submit" class:"btn" value="提交留言"></td>
<td>< (6) name=:Bl" value="全部重填" class="btn"></td>
</tr>
</table>
</form>
</body>
</html>
submit.asp 文档的内容如下:
<%
If request, form("name"):" " Then
response. write" <script>alert (’请填写留言人的姓名! ’; history, back ( ) </script>"
response. end
End If
If request.form("sex")=’ ’" or request. form("sex")="请选择你的性别" Then
request. write" <script>alert (’请选择留言人的性别’); history, back ( ) </script>"
response, end
End If
If len( (7) )>100 Then
request.write"<script>alert(’留言不能超过100字!’) ; history, back( )</script>"
response. end
End If
%>
<!--#include file="conn.asp"-->
<%
dim rs, sql
set rs=server. (8)
sql="select * from data where ( id is null)"
rs.open sql, conn, 1, 3
rs. (9)
rs("name")= (10)
rs ("sex") =request. form("sex")
rs("content")= request. form(" content")
rs ("date") =now ( )
rs("ip")=request.ServerVariables("remote addr")
rs. (11)
rs. close
conn. close
response.redirect "success.asp"
%>
A:index.html B:index.php C:index.asp
窗体上有名称为Text1、Text2的两个文本框,和一个由3个单选按钮构成的控件数组Optionl,如图1所示。程序运行后,如果单击某个单选按钮,则执行Text1中数值与该单选按钮所对应的运算(乘1、乘10或乘100),并将结果显示在Text2中,如图2所示。为了实现上述功能,在程序中的横线处应填入的内容是( ) Private Sub Optionl Click(Index As Integer) If Text1.Text<>" "Then Select Case__________________ Case 0 Text2.Text=Text1.Text Case 1 Text2.Text=Text1.Text*10 Case 2 Text2.Text=Text1.Text*100 End Select End If End Sub
A:Optionl.Index B:Index C:Optionl(Index) D:Optionl(Index).Value
在窗体上画1个名为Text1的文本框和1个名为Label1的标签,再画4个名为Op1的单选按钮控件数组,其Index属性按季度顺序为0~3,如图1所示。在文件Sales.txt中按月份顺序存有某企业某年12个月的销售额。要求在程序执行时,鼠标单击一个单选按钮,则Text1中显示相应季度的销售总额,并把相应的文字显示在标签上。如图 2所示是单击“第二季度”单选按钮所产生的结果。请选择可在空白处填写的合适语句( )。 Option Base 1 Dim sales(12) As Long Private Sub Form_Load( ) open"c:/sales.txt"For Input As #1 For k=1 To 12 Input #1,sales(k) Next k Close #1 End Sub Private Sub ______ (Index As Integer) Dim sum As Long,k As Integex,month As Integer sum=0 month=Index*______ For k=1 To 3 month=month+1 sum=sum+sales(month) Next k Label1.Caption=______.Caption &"销售总额:" Text1=sum End Sub
A:Op1_Click 3 Op1(Index) B:Op1_Click 0 Option1(Index) C:Option1_Cliek 1 Op1(Index) D:Option1_Click 2 Option1(Index)
在窗体上画1个名为Text1的文本框和1个名为Label1的标签,再画4个名为Op1的单选按钮控件数组,其Index属性按季度顺序为0~3,如图1所示。在文件Sales.txt中按月份顺序存有某企业某年12个月的销售额。要求在程序执行时,鼠标单击一个单选按钮,则Text1中显示相应季度的销售总额,并把相应的文字显示在标签上。如图2所示是单击“第二季度”单选按钮所产生的结果。请选择可在空白处填写的合适语句( )。 Option Base 1 Dim sales(12) As Long Private Sub Form_Load( ) Open "c:/sales.txt" For Input As #1 Fork= 1 To 12 Input #1, sales(k) Next k Close #1 End Sub Private Sub ______ (Index As Integer) Dim sum As Long, k As Integer, month As Integer sum=0 month=Index* Fork=1 To 3 month=month+1 sum=sum+sales(month) Next k Label1. Caption=______.Caption & "销售总额:" Text 1=sum End Sub
A:Op1_Click 3 Op1 (Index) B:Op1_Click 0 Option1 (Index) C:Option1_Cliek 1 Op1 (Index) D:Option1_Click 2 Option1 (Index)
变量定义语句Dim Index&与下面的______等价。 ( )
A:Dim Index As Long B:Dim Index As Integer C:Dim Index As Single D:Dim Index As Double
阅读下列程序说明和程序,在每小题提供的若干可选答案中,挑选一个正确答案。
【程序说明】
设有图书表TSH,包括字段(总编号、分类号、书名、作者、出版单位、单价);读者表DZH(借书证号、姓名、性别、单位、职称、地址);借阅表JY(借书证号、总编号、借阅日期、备注)。下面程序的功能是打印已借书读者的借书证号、姓名、单位以及借阅图书的书名、单价、借阅日期。 【程序】 SET TALK OFF SELECT 1 USE DZH (9) TO DSHH SELECT 2 USE TSH INDEX ON 总编号 TO SHH SELECT 3 USE JY SET RELATION TO 借书证号 INTO A (10) LIST (11) TO PRINT CLOSE ALL SET TALK ON RETURN |
A:INDEX ON 借书证号 B:INDEX ON 分类号 C:INDEX ON 书名 D:INDEX ON 姓名
您可能感兴趣的题目