File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mock Exam Errata and the fly likes MindQ's Mock up Exam - q53 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "MindQ Watch "MindQ New topic
Author

MindQ's Mock up Exam - q53

shinylee
Greenhorn

Joined: Nov 01, 2000
Posts: 7
53. A component that should resize vertically but not horizontally should be placed in a:
a) BorderLayout in the North or South location
b) FlowLayout as the first component
c) BorderLayout in the East or West location
d) BorderLayout in the Center location
e) GridLayout
The correct answer is c), but I think a) is the right one.
Am I right? Thanks!
J. Daniel
Greenhorn

Joined: Nov 03, 2000
Posts: 6
Originally posted by shinylee:
53. A component that should resize vertically but not horizontally should be placed in a:
a) BorderLayout in the North or South location
b) FlowLayout as the first component
c) BorderLayout in the East or West location
d) BorderLayout in the Center location
e) GridLayout
The correct answer is c), but I think a) is the right one.
Am I right? Thanks!


Reading through this question, it states that the component should resize its height (vertically) but not its width (horizontally). An object in North/South would resize its width when a window is resized to be wider, but its height remains constant. An object in East or West allows its height to change, but not its width. Thus, c is the correct answer. Best of luck to you on the exam!
-J
krishna kumar
Greenhorn

Joined: Nov 18, 2000
Posts: 4
Going through the Question..I thought C is the right answer.
In the BorderLayout The Height is Constraint in Noth and South. And Width is Constraint in East and West. so u cann't change the size horizontally for the Components added to East and West. So the answer is right.
U can try the following Program to get a clear Idea:
import java.awt.*;
class TestSize extends Frame
{
TestFlow()
{

add(new Button("One"),"East");
pack();
show();
}
public static void main(String s[])
{ new TestSize();}
}
All the best for the Exam...
------------------
Krishna Kumar R
CBSI,6 th Floor
B Towers
Airport Rd
Bangalore
U can reach me at yourskk@usa.net


Krishna Kumar R<BR>CBSI,6 th Floor<BR>B Towers<BR>Airport Rd<BR>Bangalore<P>U can reach me at yourskk@usa.net
 
jQuery in Action, 2nd edition
 
subject: MindQ's Mock up Exam - q53