Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 14 pts (TCOs 1–6) The column names that are displayed in a JTable can b

ID: 2246653 • Letter: Q

Question

Question 14 pts

(TCOs 1–6) The column names that are displayed in a JTable can be specified by using the _____ method of the DefaultTableModel.

Flag this Question

Question 24 pts

(TCOs 1–6) What is the output of the code below?
                   
         double num = 56.4321;
         System.out.printf("%.2f", 56.4321);

Flag this Question

Question 34 pts

(TCOs 1–6) The signature of a method consists of

Flag this Question

Question 44 pts

(TCOs 1–6) Assume int[ ] t = {1, 2, 3, 4}. What is t.length?

Flag this Question

Question 54 pts

(TCOs 1 ,2, and 6) If a class contains a main method, that method is executed

Flag this Question

Question 64 pts

(TCOs 1–6) Invoking _____ returns the first element in an ArrayList x.

Flag this Question

Question 74 pts

(TCO 1, 4, and 6) The maximum number of radio buttons that can be selected within a ButtonGroup is

Flag this Question

Question 84 pts

(TCOs 1–6) Which statements are most accurate regarding the following classes?

class A {
      private int i;
      protected int j;
}
class B extends A {
      private int k;
      protected int m;
}

Flag this Question

Question 94 pts

(TCOs 1–6) Suppose ArrayList x contains two strings [Beijing, Singapore]. Which of the following methods will cause the list to become [Beijing, Chicago, Singapore]?

Flag this Question

Question 104 pts

(TCOs 1, 5, and 6) The StringTokenizer method used to return the next field based on the delimiter character specified is

Flag this Question

Question 114 pts

(TCOs 1–6) Which of the following statements causes the program to terminate when closing the frame?

Flag this Question

Question 124 pts

(TCOs 1, 5, and 6) Which type of exception occurs if the write method of BufferedWriter cannot write data to the file?

Flag this Question

Question 134 pts

(TCOs 1–6) What layout manager should you use so that every component occupies the same size in the container?

Flag this Question

Question 144 pts

(TCOs 1–6) The event handler (e.g., actionPerformed) is a method in

Flag this Question

Question 154 pts

(TCOs 1–6) The _____ method of JOptionPane is used to display a message dialog box.

Flag this Question

Question 164 pts

(TCOs 1, 4, and 6) Menus are attached to windows by calling the _____ method.

Flag this Question

Question 174 pts

(TCOs 1–6) Suppose you wish to provide an accessor method for a double instance variable named percent, what should the signature method be?

Flag this Question

Question 184 pts

(TCOs 1, 4, and 6) The method used to add panels to a JTabbedPane is

Flag this Question

Question 194 pts

(TCOs 1–6) A constructor cannot

Flag this Question

Question 204 pts

(TCOs 1–6) Given the declaration Circle x = new Circle(), which of the following statements is most accurate?

Flag this Question

Question 214 pts

(TCOs 1, 5, and 6) To add a database driver to a NetBeans project, you can add the JAR file for the driver to what folder?

Flag this Question

Question 224 pts

(TCOs 1–6) _____ represents an entity in the real world that can be distinctly identified.

Flag this Question

Question 234 pts

(TCOs 1–6) To execute the query "select * from Address" using the Statement object named stmt that has been properly configured with a database connection, use

Flag this Question

Question 244 pts

(TCOs 1–6) Suppose that your program accesses a MySQL database. Which of the following statements is false?

Flag this Question

Question 254 pts

(TCOs 1–6) Which of the following statements is false?

Flag this Question

Question 264 pts

(TCOs 1–6) Which method can be used to write data to a text file opened with the BufferedWriter object outfile?

Flag this Question

Question 274 pts

(TCOs 1–6) Which type of exception occurs when creating a BufferedReader object for a nonexistent file?

Flag this Question

Question 284 pts

(TCOs 1–6) Which class can be used to write data into a text file?

Flag this Question

Question 294 pts

(TCOs 1–6) Result set meta data are retrieved through

Flag this Question

Question 304 pts

(TCOs 1–6) Clicking a JCheckBox object generates _____ events.

Flag this Question

Question 314 pts

(TCOs 1–6) The method _____ gets the contents of the text field txtName.

Flag this Question

Question 324 pts

(TCOs 1–6) The method _____ appends a string s into the text area jta.

Flag this Question

Question 334 pts

(TCOs 1–6) The method _____ gets the text (or caption) of the button btnAdd.

Flag this Question

Question 344 pts

(TCOs 1–6) A JList object can be populated with data stored in a(n) _____ object.

Flag this Question

Question 354 pts

(TCOs 1–6) The _____ method of a check box returns true if that button is “checked”.

.formatColumns

Explanation / Answer

Hi,

Below is the solution-

Ans 14 - JTable
Ans 24 - 56.43
Ans 34 - method name and parameter list.
Ans 44 - 4
Ans 54 - public
Ans 64 - x.get(0)
Ans 74 - 3 ( There can be only one radiobutton that can be selected from the group)
Ans 84 - The program has a runtime NullPointerException because test is null while executing test.x.
Ans 94 - x.add(1, "Chicago")
Ans 104 - tokens = new StringTokenizer(inputString, "%");
Ans 114 - JFrame.super(“Title here”);
Ans 124 - FileIOException
Ans 134 - a GridLayout
Ans 144 - getEventObject()
Ans 154 - String.
Ans 164 - setJMenuBar
Ans 174 - mutator, accessor.
Ans 184 - addPanel.
Ans 194 - no-argument constructor.
Ans 204 - an instance method.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote