Write a line of code that declares a variable named layout of type LayoutManager and initializes it with a new object, which when used with a container can lay out components in a rectangular grid of equal-sized rectangles, 3 components wide and 2 components high.()
第1题:
A.Point p = Line.getPoint();
B.Line.Point p = Line.getPoint();
C.Point p = (new Line()).getPoint();
D.Line.Point p = (new Line()).getPoint();
第2题:
You define the following regular expression of currency values:regex tx = new regex("^-?\d+(\.\d{2})?$")You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use.What should you do?()
A.The tx.Matches(Bill)
B.The tx.Equals(Bill)
C.The tx.Match(Bill)
D.The tx.IsMatch(Bill)
第3题:
第4题:
Which three objects can be components of a menu module?()
第5题:
When selecting a Network Interface Card (NIC), which of the following factors need to be considered?()
第6题:
Given the following code fragment: public void create() { Vector myVect; myVect = new Vector(); } Which of the following statements are true?()
第7题:
How does the weighty property of the GridBagConstraints objects used in grid bag layout affect the layout of the components?()
第8题:
You define the following regular expression of currency values: regex tx = new regex("^-?/d+(/./d{2})?$") You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use. What should you do?()
第9题:
o
a
p
A
第10题:
The declaration on line 2 does not allocate memory space for the variable myVect.
The declaration on line 2 allocates memory space for a reference to a Vector object.
The statement on line 2 creates an object of class Vector.
The statement on line 3 creates an object of class Vector.
The statement on line 3 allocates memory space for an object of class Vector.
第11题:
The type of application used on the network
The type of system bus used by the computers
The type of memory installed in each computer
The type of media used in the network topology
The type of protocols used in the network
The physical layout of the network hosts
第12题:
第13题:
In object-oriented(51), objects can be viewed as reusable components, and once the programmer has developed a(52)of these components, he can(53)the amount of new coding required. But(52)a(54)is no simple task because the integrity of the Original software design is critical. Reusability can be a mixed blessing for user, too, as a programmer has to be able to find the object he needs. But if(55)is your aim, reusability is worth the risk.
A.programming
B.creating
C.indisposing
D.library
E.maximize
第14题:
A. The type of application used on the network
B. The type of system bus used by the computers
C. The type of memory installed in each computer
D. The type of media used in the network topology
E. The type of protocols used in the network
F. The physical layout of the network hosts
第15题:
When servicing a laptop, which of the following components usually requires the keyboard to beremoved before the component can be replaced?()
第16题:
Which statement is true?()
第17题:
Which of the following can be used to insert a new line below the current line inside a vi session?()
第18题:
Given the following code, write a line of code that, when inserted at the indicated location, will make the overriding method in Extension invoke the overridden method in class Base on the current object. class Base { public void print( ) { System.out.println("base"); } } class Extention extends Base { public void print( ) { System.out.println("extension"); // insert line of implementation here } } public class Q294d { public static void main(String args[]) { Extention ext = new Extention( ); ext.print( ); } } Fill in a single line of implementation.()
第19题:
You work as an application developer at Certkiller .com. Certkiller .com has instructed you to create a class named MetricFormula. This class will be used to compare MetricUnit and EnglishUnit objects.The MetricFormula is currently defined as follows (Line numbers are used for reference purposes only): 1. public class MetricFormula2. { 3. 4. } You need to ensure that the MetricFormula class can be used to compare the required objects. What should you do? ()
第20题:
A
B
C
D
第21题:
Compilation of class A fails.
Line 28 prints the value 3 to System.out.
Line 28 prints the value 1 to System.out.
A runtime error occurs when line 25 executes.
Compilation fails because of an error on line 28.
第22题:
It affects which grid cell the components end up in.
It affects how the extra vertical space is distributed.
It affects the alignment of each component.
It affects whether the components completely fill their allotted display area vertically.
第23题:
The value of s is 14-dic-2000.
The value of s is Dec 14, 2000.
An exception is thrown at runtime.
Compilation fails because of an error in line 13.