10. Which of the following statements is correct? Select one: a. Methods of an inner class can access instance variables from the surrounding scope. b. If an interface variable refers to an object, then the object need not belong to a class. c. It is illegal to have variables whose type is an interface. d. Methods of an inner class cannot access final variables from the surrounding scope. 11. What\'s the difference between a text field and a text area? Select one: a. A text field is used for input only and a text area is used for output only. b. A text field can be edited by the user but a text area cannot. c. A text area can have scroll bars but a text field cannot. d. A text field is for a single line of text and a text area is for multiple lines of text. 12. Insert the missing statement(s) in the following code fragment. The code is intended to display a message \"Your cost is: \" in a text area and display the cost on the next line. Select one: a. b. c. d. 13. Consider the following code snippet: Which of the local variables can be accessed within the actionPerformed method? Select one: a. Only button can be accessed.. b. All of the local variables can be accessed. c. label and myOrder can be accessed. d. Only myOrder can be accessed. 14. Which statements will create an editable text field and assign “Your choice†to it? Select one: a. b. c. d. 15. ____ are generated when the user presses a key, clicks a button, or selects a menu item. Select one: a. Listeners b. Interfaces. c. Events. d. Errors. Solution Answer 11: d. A text field is for a single line of text and a text area is for multiple lines of text. Answer 12: d. result.setText(message + \"\ \"); result.append(cost); Answer 14: d. JTextField txt = new JTextField(\"Your choice \"); txt.setEditable(true) Answer 15: c. Events. .