已知xml文档包含如下内容(list为根元素): <list> <item id="0001"> <price>18</price> </item> <item id="0002"> <price>15</price> </item> <item/> <product> <item id="01"></item> </product> </list> 使用xslt进行转换时,语句<xsl:template match=”/list/item[@id]”>能够匹配到()个item元素。
第1题:
YoucreateaWebpagethatcontainsthefollowingcode.Youneedtoprovidethefollowingimplementation.EachtimetheAddFilebuttonisclicked,anewdivelementiscreated.ThenewdivelementisappendedaftertheotherfileuploaddivelementsandbeforetheAddFilespan.Eachnewelementhasauniqueidentifier.Whichcodesegmentshouldyouuse?()
A.$("#AddFile").click(function(){varid="File"+++lastId;varitem=$(".File:first").clone(true);$("input:file",item).attr({id:id,name:id});item.insertBefore("#AddFile");});
B.$("#AddFile").click(function(){varid="File"+++lastId;$(".File:first").clone(true).attr({id:id,name:id}).insertBefore("#AddFile");});
C.$("#AddFile").click(function(){varid="File"+++lastId;});
D.$("#AddFile").click(function(){varid="File"+++lastId;varitem=$(".File:first").clone(true);$("input:file",item).attr({id:id,name:id});item.insertAfter("input[type=file]");});
第2题:
有如下命令序列: USE ORDERS LIST OFF AVERAGE OTY TO AQTY FOR ITEM=”奔腾2” INDEX ON ITEM TO XRD TOTAL ON ITEM TO TTT FILEDS QTY ?AQTY 其中LIST命令显示的结果是: ITEM QTY 奔腾2 150 HP打印机 260 奔腾2 220 华硕主板 314 HP打印机 380 奔腾2 122 执行以上命令序列,?AQTY命令显示的值是( )。
A.241
B.220
C.164
D.150
第3题:
A.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue()
B.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getFirstChild().getNodeValue()
C.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue()
D.((Element)doc.getElementsByTagName(“PERSON”).item(0)).item(0).getNodeValue()
第4题:
print({x:’item’+str(x**2)forxin(2,4,6)})输出什么?()
第5题:
An application needs a table for each connection that tracks the ID and Name of all items previously ordered and committed within the connection. The table also needs to be cleaned up and automatically removed each time a connection is ended. Assuming the ITEMS table was created with the following SQL statement:CREATE TABLE items item_no INT, item_name CHAR(5), item_qty INT)Which of the following SQL statements will provide the table definition that meets the specified requirements?()
A.DECLARE GLOBAL TEMPORARY TABLE tracker AS (SELECT item_no, item_name FROM items) WITH NO DATA ON COMMIT PRESERVE ROWS ON DISCONNECT DROP TABLE
B.DECLARE GLOBAL TEMPORARY TABLE tracker AS (SELECT item_no, item_name FROM items) WITH NO DATA ON COMMIT PRESERVE ROWS
C.CREATE TABLE systmp.tracker AS (SELECT item_num, item_name FROM items) WITH NO DATA ON COMMIT PRESERVE ROWS
D.CREATE TABLE tracker AS (SELECT item_num, item_name FROM items) ON COMMIT PRESERVE ROWS ON DISCONNECT DROP TABLE
第6题:
A.POPULATE_LIST
B.POPULATE_GROUP
C.POPULATE_LIST_ITEM
D.POPULATE_LIST_FROM_GROUP
E.POPULATE_LIST_ITEM_FROM_GROUP
第7题:
请完成下列Java程序:实现2个下拉式菜单,一个包含exit菜单项,另一个包含item1和item2共2个菜单项。要求选择exit菜单项时,退出程序;选择item1菜单项之后,item1项变为不可选而item2可选;选择item2菜单项时,item2变为不可选而item1可选。
注意:请勿改动main()主方法和其他已有语句内容,仅在下划线处填入适当的语句。
程序运行结果如下:
import java.awt.*;
import java.awt.event.*;
public class ex18_2 extends Frame. implements ActionListener {
private choiceHandler ch;
private MenuItem item1;
private MenuItem item2;
public static void main(String[] arg) {
new ex18_2 ( );
}
ex18_2 ( ) {
setTitle("ex18_2");
MenuItem item;
ch = new choiceHandler();
MenuBar mb = new MenuBar();
Menu fm = new Menu("File");
fm.addSeparator();
fm.add(item = new MenuItem("Exit"));
item.addActionListener(this);
fm.add(item);
mb.add(fm);
Menu mm = new Menu("Choice");
mm.add(item1 = new MenuItem("item1"));
item1.addActionListener(ch);
mm.add(item2 = new MenuItem("item2"));
item2.addActionListener(ch);
mb.add(mm);
setMenuBar(mb);
setSize(200,200);
show();
}
public void actionPerformed(ActionEvent ae) {
if(ae.getActionCommand().equals("Exit"))
System.exit(0);
else
System.out.println(ae.getActionCommand());
}
class choiceHandler implements ActionListener {
public void actionPerformed(ActionEvent ae) {
String strCommand = ae.getActionCommand();
if(_________________) {
item2.setEnabled(true);
item1.setEnabled(false);
} else if(______________________) {
item2.setEnabled(false);
item1.setEnabled(true);
}
}
}
}
第8题:
在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程:
PrivateSub Form_Load()
List1.AddItem "Item1"
List1.AddItem "Item2"
List1.AddItem "Item3"
End Sub
Private Sub Command1_Click()
List1.List(List1.Listcount) ="AAAA"
End Sub
程序运行后,单击命令按钮,其结果为
A.把字符串"AAAA"添加到列表框中,但位置不能确定
B.把字符串"AAAA"添加到列表框的最后(即"Item3"的后面)
C.把列表框中原有的最后一项改为"AAAA"
D.把字符串"AAAA"插入到列表框的最前面(即"Item1"的前面)
第9题:
A.Strinfotrace:brdcp=btrm,brdid=XXX,item=“rssi”;
B.Strinfotrace:brdtp=btrm,brdid=XXX,item=“rssi”;
C.Strinfotrace:brdtp=btrm,id=XXX,item=“rssi”;
D.Strinfotrace:brdcp=btrm,id=XXX,item=“rssi”。
第10题:
display有()属性值?