The moose likes Mock Exam Errata and the fly likes MindQ's Mock up Exam - q53 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Mock Exam Errata
Reply 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
 
 
subject: MindQ's Mock up Exam - q53
 
Threads others viewed
GridBagLayout - pl help
Problem with split panes
which is correct?
setResizable & BorderLayout
GridBagLayout
MyEclipse, The Clear Choice