1) The exportObject() method belong to the a. locate register class b. naming class c. unicastRemoteObject class – R*** 2) the method of the unicastremoteobject class is used to remove the remote object from a. object() b. unexportobject() – R*** c. unimportobject() 3) the method of the session class is used to retrieve the default session a. getdefaultInstance() – R*** < Lay Gia Tri Default Cua Session b. getinstance() - < Tao New Session Object c. getproperty() 4) the getSize() method of the folder class may not return the exact size of the contents if the message has a. coded cotents b. encoded contents c. decoded contents**** 5) the list() method of naming class is used to retrieve all the names bound a a. ip address - b. rml-registry*** c. socket 6) the method of the serversocket class is used to retrieve the binding state of the socket a. isbound() – b. close()R*** c. getlnetaddress 7) The getcontentlength() method is used to a. retrieve the content length of the resource that is referenced by the URL connection - R**** b. returns -1 the content length is known c. returns 0 if the content length is invalid 8) which of the following option helps to set the nimbus look and feel through the command line? a) java-dswing defaultlaf=com.sun.java.swing.plaf.nimbus.nimbuslookandfeel – R/// b) java- dswing.defaultlaf=com.sun.java.swing.nimbus.nimbuslookandfeel c) java- dswing.laf=com.sun.java.swing.plaf.nimbus.nimbuslookandfeel d) java-dswing.laf=com.sun.java.swing.nimbus.nimbuslookandfeel 9) which of the following method is used to specify automatic gap among the component and the container? a. setautocreategaps(true) b. setautocreategapsspace(true) c. setautocreatecontainergaps(true)R*** d. setAutocreatecomponentgaps(true) 10) which of the following method is used to specify the preferred gap between a component and the container border? a. addgap().*. b. addpreferredgap()… c. addcomponentgap() - R - d. addcontainergap()… 11) which of the following code snippets attaches a row fillter to a Jtable? a. // CreateTableModel() is//user-defined method TableModel model = createTableModel(); TableRowsorter sorter = new TableRowSorter(model); sorter.setRowFillter(RowFillter.regexFillter(".^A.*) JTable table = new JTable(myModel); table.setRowSorter(sorter); b. createTableModel() is user-//defined method TableModel model = createTableModel(); TableSorter sorter = new TableSorter(model); sorter.setFillter(RowFillter.regexFillter(".^A.*)' JTable table = new JTable(myModel); table.setRowSorter(sorter); c. create TableModel() is user-//defined method TableModel model = createTableModel(); TableSorter sorter = new TableSorter(model); sorter.setFillter(RowFillter.regFillter(".^A.*")); JTable table = new JTable(myModel); table.setRowSorter(sorter); d. createTableModel() is user-defined // method TableModel model = createTableModel(); TableSorter sorter = new TableSorter(model); sorter.setFillter(RowFillter.regexFillter(".^A.*")); JTable table = new JTable(myModel); table.setRowSorter(sorter); 12) constructor creates a horizontal slider bar with the range 0 to 100 and initial value of 50. a. JSlider(int orientation) b. JSlider(int value)*** c. JSlider() - R d. JSlider(int min, int max, int value) 13) a is similar to a JMenuItem with the additional feature of selecting and deselecting them a. JCheckBoxMenuItem – R*** b. JCheckBoxMenu c. JMenuItem d. JMenuList 14)The JColorChooser has a method which returns an object of the ColorSelectionModel interface. a.getSelectedModel() b.getModelSelection() c.getSelectionModel() – R*** d.getSelection() 15) the server application has to bind the remote object with a in the registry a. referenc b. name – R* c. remote reference d. entry 16) A javax.mail.Session object can be created by invoking the static ________ method. a. getInstance() – R*** b. getProperties() c. getSession() d. initiateSession() 17) A JPopup is more convernient than the standard menus because it involves more mouse movements a. true - Not Sure b. false R*** 18) The addSeparator() method adds a separator at the ____________of the pop-up menu a. beginning b. end c. center – R*** d. anywhere 19) the JFileChooser has which of the following methods ? 1. showDialog() 2. showSaveDialog() 3. showOpenDialog() 4. showNewDialog() a. 1 2 3 – R*** b. 2 3 4 c. 1 3 4 d. 1 2 3 4 20) Which of the following methods of JFileChooser returns an instance of the File representing the file selected from the dialog box? a. getSelectedFile() – R*** b. getCurrentDirectory c. getFile() d. all of the above 21) the class has methods to parse and convert text to a date. a. SimpleDateFormat b. DateFormat c. DateTimeFormat – R*** 22) the class connot be instantilated as it is an abstract class a. URL connection b. URL c. ServerSocket class*** 23) the method is used to retrieve the setting of the connect timeout of the URL in milliseconds a. getContentType() b. getConnectTimeout() - R *** c. setConnectTimeout() 24) a timeout value of zero of the setConnectTimeout() method indicates a. infinite timeout R*** b. opening a communication link to the resource referenced c. an exception raised 25) in the lnetAddress() method the local address is returned as a a. IP address R*** b. URL address c. ServerSocket Address . line? a) java- dswing defaultlaf=com.sun .java. swing.plaf.nimbus.nimbuslookandfeel – R/// b) java- dswing.defaultlaf=com.sun .java. swing.nimbus.nimbuslookandfeel c) java- dswing.laf=com.sun .java. swing.plaf.nimbus.nimbuslookandfeel d). java- dswing.defaultlaf=com.sun .java. swing.nimbus.nimbuslookandfeel c) java- dswing.laf=com.sun .java. swing.plaf.nimbus.nimbuslookandfeel d) java- dswing.laf=com.sun .java. swing.nimbus.nimbuslookandfeel 9) which of the following method is used to specify. remote object with a in the registry a. referenc b. name – R* c. remote reference d. entry 16) A javax.mail.Session object can be created by invoking the static ________ method. a. getInstance()