第1题:
请完成下列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);
}
}
}
}
第2题:
第3题:
An Active Directory database is installed on the C volume of a domain controller. You need to move the Active Directory database to a new volume What should you do()
第4题:
Given that Thing is a class, how many objects and reference variables are created by the following code?() Thing item, stuff; item = new Thing(); Thing entity = new Thing();
第5题:
A customer requires two 12X loops on their new POWER7 system. What is the smallest system that will support two loops?()
第6题:
The nomination for a new department head
Permission to begin a print advertising plan
An agreement on the content of a TV commercial
Funding approval for the production of a new item
第7题:
A new Item object is created with the preferred value in the id attribute.
The attribute id in the Item object is modified to the new value.
Compilation fails.
An exception is thrown at runtime.
The attribute id in the Item object remains unchanged.
第8题:
defining
using real objects
writing a passage by using new words
giving explanations
第9题:
Compilation fails.
An exception is thrown at runtime.
The attribute id in the Item object remains unchanged.
The attribute id in the Item object is modified to the new value.
A new Item object is created with the preferred value in the id attribute.
第10题:
Identify potential problem areas
Define intended coverage areas
Access compliance with local building codes
Determine the final location of APs and antennas
Identify sources of RF signal attenuation and RF interference
第11题:
The Work Item is not eligible for Purge.
The Work Item is eligible for a Permanent purge.
The Work Item is eligible for a Temporary purge.
The Work Item is not complete because it still has Open Notification.
The Work Item is eligible for both Temporary and Permanent purge.
第12题:
第13题:
第14题:
What are two objectives of a pre-site survey walkthrough? ()
第15题:
What are the six principles to remember when presenting new vocabulary in class?
第16题:
In order to use the item records at the site level, to what must the item be added? ()
第17题:
What must be created before populating the Tools application? ()
第18题:
Compilation fails.
Gobstopper Fizzylifting
Gobstopper Scrumdiddlyumptious
Scrumdiddlyumptious Fizzylifltng
Scrumdiddlyumptious Scrumdiddlyumptious
第19题:
He had to deal with harmful gases.
He criticized two West Virginia’s officials.
He prayed for the families of the miners.
He already knew the cause of the event.
第20题:
第21题:
Tool to collect syslog messages from multiple sources
User Tracking to track IP telephones
Diagnostic trace tools to analyze connectivity
Monitoring of Cisco voice elements
Problem alerts for operations personnel
第22题:
Item Sets
Item Master Owner
Vendors for the Items
Storeroom assignment
第23题:
Asset
Location
Storeroom
Rotating Asset