1. | What does the following line of code do? Textfield text = new Textfield(10); |
|
Hint
Half-n-half Clue
| |
|
2. | When we invoke repaint() for a java.awt.Component object, the AWT invokes the method: |
| Half-n-half Clue
| |
|
3. | Which of the following methods can be used to draw the outline of a square within a java.awt.Component object? (A) fillRect() (B) drawLine() (C) drawRect() (D) drawString() (E) drawPolygon() |
| Half-n-half Clue
| |
|
4. | Which of the following applet tags is legal to embed an applet class named Test into a Web page? |
| Half-n-half Clue
| |
|
5. | Which of the following statements are true? (A) Unicode characters are all 16 bits. (B) UTF characters are all 24 bits. (C) Reader class has methods that can read integers and floats. (D) File class may be used to rename a file. (E) DataOutputStream objects are used to write primitive data to a file. |
| Half-n-half Clue
| |
|
6. | The setBackground() method is part of the following class in java.awt package: |
| Half-n-half Clue
| |
|
7. | Which of the following methods can be used to change the size of a java.awt.Component object? (A) dimension() (B) setSize() (C) area() (D) size() (E) resize() |
| Half-n-half Clue
| |
|