Flag this Question Question 14 pts (TCOs 1–6) The component that can be used to
ID: 2246643 • Letter: F
Question
Flag this Question
Question 14 pts
(TCOs 1–6) The component that can be used to display query results from a database in a grid of rows and columns is
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) A key part of enabling the JVM to locate and call method main to begin the app’s execution is the _____ keyword, which indicates that main can be called without first creating an object of the class in which the method is declared.
Flag this Question
Question 64 pts
(TCOs 1–6) Invoking _____ returns the first element in an ArrayList x.
Flag this Question
Question 74 pts
(TCOs 1, 4, and 6) Consider a form with a ButtonGroup with three radio buttons, and two check boxes. What is the total number of radio buttons and check boxes that can be selected at any time?
Flag this Question
Question 84 pts
(TCOs 1–6) Analyze the following code.
public class Test {
int x;
public Test(String t) {
System.out.println("Test");
}
public static void main(String[ ] args) {
Test test = null;
System.out.println(test.x);
}
}
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) Which statement sets up a tokens object that will use the % as a field delimiter?
Flag this Question
Question 114 pts
(TCOs 1–6) The title of a JFrame can be set by using which statement in the constructor of your class that extends JFrame?
Flag this Question
Question 124 pts
(TCOs 1, 5, and 6) Which type of exception occurs if the file cannot be created by a FileWriter object?
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 _____ method of an event object returns the object that caused the event.
Flag this Question
Question 154 pts
(TCOs 1–6) The datatype returned by the JOptionPane.showInputDialog method is
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) Set methods are also commonly called _____ methods, and get methods are also commonly called _____ methods.
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 programmer-defined constructor that has no arguments is called a(n)
Flag this Question
Question 204 pts
(TCOs 1–6) A method that is associated with an individual object is called
JTable.Explanation / Answer
Hi,
Below are the answers-
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.
Regards,
Vinay Singh
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.