已知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元素。A、3B、2C、1D

题目

已知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元素。

  • A、3
  • B、2
  • C、1
  • D、0

相似考题
参考答案和解析
正确答案:B
更多“已知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元素。A、3B、2C、1D、”相关问题
  • 第1题:

    有如下命令序列: 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


    正确答案:C

  • 第2题:

    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


    参考答案:B

  • 第3题:

    print({x:’item’+str(x**2)forxin(2,4,6)})输出什么?()

    • A、[2,’item4’,4,’item16’,6,’item36’]
    • B、{2:’item4’,4:’item16’,6:’item36’}
    • C、{2,4,6}
    • D、{’item4’,’item16’,’item36’}

    正确答案:B

  • 第4题:

    使用CSS,要隐藏元素,应选用()显示方式。

    • A、display:none
    • B、display:block
    • C、display:inline
    • D、display:list-item

    正确答案:A

  • 第5题:

    在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个子元素的值的代码是()。 

    • 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();

    正确答案:B

  • 第6题:

    翻译:Please quote us your price for 100 units of Item 6 in your catalog.


    正确答案: 请报价你方目录上产品6100。

  • 第7题:

    What is a rotating item?()

    • A、A rotating item is an individual item that is defined with a common item number. An item is designated as rotating because one wants to be able to create individual asset records by using the information (Classification, Specification,and Item Assembly Structure) contained on the item record.
    • B、A rotating item is a set of items that are defined with a specific code. An item is designated as rotating because one does not want to be able to create individual asset records by using the information (Classification, Specification, and Item Assembly Structure) contained on the item record.
    • C、A rotating item is a set of kits that are defined with a specific description and GL. An item is designated as rotating because one has the single cost to manage prefers to be able to create individual asset records by using the information (Classification, Specification, and Item Assembly Structure) contained on the assembly record.
    • D、A rotating item is an individual item that is defined with a common item number and can be a spare part. An item is designated as rotating because one wants to be able to create multiple asset records by using the information (Classification, Specification, and Item Assembly Structure) contained on the item set records.

    正确答案:A

  • 第8题:

    在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个资源的值的代码是()。 

    • 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()

    正确答案:B

  • 第9题:

    What does the FIND_MENU_ITEM built-in function return?()

    • A、The internal ID of a menu. 
    • B、The internal ID of a menu item. 
    • C、The internal ID of a menu module. 
    • D、The internal ID of form module to which the menu is attached.

    正确答案:B

  • 第10题:

    单选题
    Given: What is the result? ()
    A

     A new Item object is created with the preferred value in the id attribute.

    B

     The attribute id in the Item object is modified to the new value.

    C

     Compilation fails.

    D

     An exception is thrown at runtime.

    E

     The attribute id in the Item object remains unchanged.


    正确答案: E
    解析: 暂无解析

  • 第11题:

    单选题
    在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个子元素的值的代码是()。
    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();


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    What does the FIND_MENU_ITEM built-in function return?()
    A

    The internal ID of a menu. 

    B

    The internal ID of a menu item. 

    C

    The internal ID of a menu module. 

    D

    The internal ID of form module to which the menu is attached.


    正确答案: B
    解析: 暂无解析

  • 第13题:

    请完成下列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);

    }

    }

    }

    }


    正确答案:strCommand.equals(”item1”) strCommand.equals(”item2”)
    strCommand.equals(”item1”) strCommand.equals(”item2”) 解析:本题主要考查AWT建立菜单的基本方法和事件处理机制,以及控制菜单项的可选与否。解题关键是熟悉菜单的创建和设置方法,掌握菜单的事件处理模型,通过事件处理机制实现对菜单项的设置。本题中,第1个空,判断菜单命令是由选择 item1项发出的,则进行相关的设置;第2个空,判断菜单命令是由选择item2项发出的,则进行相关的操作。

  • 第14题:

    通过telnet连接BTS3612基站,跟踪反向RSSI的实时值,使用的命令为()

    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”。


    参考答案:B

  • 第15题:

    display有()属性值?

    • A、block
    • B、nline
    • C、inline-block
    • D、table
    • E、list-item

    正确答案:A

  • 第16题:

    Given the following table definition: STOCK: item VARCHAR(30) status CHAR(1) quantity INT price DEC(7,2) If items are indicated to be out of stock by setting STATUS to NULL and QUANTITY and PRICE to zero, which of the following statements would be used to update the STOCK table to indicate that all the items whose description begins with the letter "S" are out of stock?()

    • A、UPDATE stock SET (status = NULL; quantity, price = 0) WHERE item LIKE S%
    • B、UPDATE stock SET (status, quantity, price) = (NULL, 0, 0) WHERE item LIKE S%
    • C、UPDATE stock SET status = NULL, SET quantity = 0, SET price = 0 WHERE item LIKE 'S%'
    • D、UPDATE stock SET (status = NULL), (quantity = 0), (price = 0) WHERE item LIKE S%

    正确答案:B

  • 第17题:

    public class ItemTest {  private final mt id;  public ItemTest(int id) { this.id = id; }  public void updateId(int newId) { id = newId; }  public static void main(String[] args) {  ItemTest fa = new ItemTest(42);  fa.updateId(69);  System.out.println(fa.id);  }  }  What is the result?() 

    • A、 Compilation fails.
    • B、 An exception is thrown at runtime.
    • C、 The attribute id in the Item object remains unchanged.
    • D、 The attribute id in the Item object is modified to the new value.
    • E、 A new Item object is created with the preferred value in the id attribute.

    正确答案:A

  • 第18题:

    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

    正确答案:B

  • 第19题:

    在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个子元素的值的代码是()。 

    • A、((Element).doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue;
    • B、 ((Element).doc.getElementsByTagName(“PERSON”).item(0)).getFristChild().getNodeValue();
    • C、 ((Element).doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue();
    • D、 ((Element).doc.getElementsByTagName(“PERSON”).item(0)).item(0).getNodeValue();

    正确答案:C

  • 第20题:

    Which built-in copies values from a record group into a list item? ()

    • A、POPULATE_LIST 
    • B、POPULATE_GROUP 
    • C、POPULATE_LIST_ITEM 
    • D、POPULATE_LIST_FROM_GROUP 
    • E、POPULATE_LIST_ITEM_FROM_GROUP

    正确答案:A

  • 第21题:

    单选题
    Which built-in copies values from a record group into a list item? ()
    A

    POPULATE_LIST 

    B

    POPULATE_GROUP 

    C

    POPULATE_LIST_ITEM 

    D

    POPULATE_LIST_FROM_GROUP 

    E

    POPULATE_LIST_ITEM_FROM_GROUP


    正确答案: E
    解析: 暂无解析

  • 第22题:

    问答题
    翻译:Please quote us your price for 100 units of Item 6 in your catalog.

    正确答案: 请报价你方目录上产品6100。
    解析: 暂无解析

  • 第23题:

    单选题
    通过telnet连接BTS3612基站,跟踪反向RSSI的实时值,使用的命令为()
    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”。


    正确答案: B
    解析: 暂无解析