GWT Mock Test



This section presents you various set of Mock Tests related to GWT. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

GWT Mock Test III

Q 1 - Which of the following gwt widget represents a multiline text box?

A - TextArea

B - GWTTextArea

C - SuggestBox

D - TextBox

Answer : A

Explaination

TextArea widget represents a multiline text box.

Q 2 - Which of the following gwt widget represents a rich text editor?

A - GWTRichTextArea

B - ListBox

C - RichTextArea

D - TextBox

Answer : C

Explaination

RichTextArea widget represents a rich text editor.

Q 3 - Which of the following gwt widget represents a file upload?

A - GWTFileUpload

B - FileUpload

C - RichTextArea

D - TextBox

Answer : B

Explaination

FileUpload widget represents a file upload.

Q 4 - Which of the following gwt widget represents a hidden field?

A - TextArea

B - GWTHidden

C - Hidden

D - TextBox

Answer : C

Explaination

Hidden widget represents a hidden field.

Q 5 - Which of the following gwt widget represents a standard hierarchical tree?

A - Tree

B - MenuBar

C - CellTree

D - CellList

Answer : A

Explaination

Tree widget represents a standard hierarchical tree. The tree contains a hierarchy of TreeItems that the user can open, close, and select.

Q 6 - Which of the following gwt widget represents a standard menu bar?

A - Tree

B - MenuBar

C - CellTree

D - CellList

Answer : B

Explaination

MenuBar widget represents a standard menu bar widget. A menu bar can contain any number of menu items, each of which can either fire a Command or open a cascaded menu bar.

Q 7 - Which of the following gwt widget represents a standard GWT date picker?

A - Date

B - DateTime

C - DatePicker

D - GWTDatePicker

Answer : C

Explaination

DatePicker widget represents a standard GWT date picker.

Q 8 - Which of the following gwt widget represents a view of a tree?

A - Tree

B - MenuBar

C - CellTree

D - CellList

Answer : C

Explaination

CellTree widget represents a view of a tree. This widget will only work in standards mode, which requires that the HTML page in which it is run have an explicit <!DOCTYPE> declaration.

Q 9 - Which GWT widget represents a single column list of cells?

A - Tree

B - MenuBar

C - CellTree

D - CellList

Answer : D

Explaination

CellList widget represents a single column list of cells.

Q 10 - Which GWT widget represents a tabular view that supports paging and columns?

A - CellTable

B - Tree

C - CellTree

D - CellList

Answer : A

Explaination

CellTable widget represents a tabular view that supports paging and columns.

Q 11 - Which GWT widget represents a browsable view of a tree in which only a single node per level may be open at one time?

A - CellTable

B - CellBrowser

C - CellTree

D - CellList

Answer : B

Explaination

CellBrowser widget represents a browsable view of a tree in which only a single node per level may be open at one time. This widget will only work in standards mode, which requires that the HTML page in which it is run have an explicit <!DOCTYPE> declaration.

Answer : D

Explaination

Layout Panels can contain other widgets. These panels controls the way widgets to be shown on User Interface. Every Panel widget inherits properties from Panel class which in turn inherits properties from Widget class and which in turn inherits properties from UIObject class.

Q 13 - Which class is the base class of all layout panel classes?

A - Panel

B - FlowPanel

C - HorizontalPanel

D - VerticalPanel

Answer : A

Explaination

Panel is the abstract base class for all panels, which are widgets that can contain other widgets.

Q 14 - Which of the following panel formats its child widgets using the default HTML layout behavior?

A - Panel

B - FlowPanel

C - HorizontalPanel

D - VerticalPanel

Answer : B

Explaination

FlowPanel widget represents a panel that formats its child widgets using the default HTML layout behavior.

Q 15 - Which of the following panel lays all of its widgets out in a single horizontal column?

A - Panel

B - FlowPanel

C - HorizontalPanel

D - VerticalPanel

Answer : C

Explaination

HorizontalPanel widget represents a panel that lays all of its widgets out in a single horizontal column.

Q 16 - Which of the following panel lays all of its widgets out in a single vertical column?

A - Panel

B - FlowPanel

C - HorizontalPanel

D - VerticalPanel

Answer : D

Explaination

VerticalPanel widget represents a panel that lays all of its widgets out in a single vertical column.

Q 17 - Which of the following panel arranges two widgets in a single horizontal row and allows the user to interactively change the proportion of the width dedicated to each of the two widgets?

A - HorizontalSplitPanel

B - VerticalSplitPanel

C - HorizontalPanel

D - VerticalPanel

Answer : A

Explaination

HorizontalSplitPanel widget represents a panel that arranges two widgets in a single horizontal row and allows the user to interactively change the proportion of the width dedicated to each of the two widgets. Widgets contained within a HorizontalSplitPanel will be automatically decorated with scrollbars when necessary.

Q 18 - Which of the following panel arranges two widgets in a single vertical column and allows the user to interactively change the proportion of the hight dedicated to each of the two widgets?

A - HorizontalSplitPanel

B - VerticalSplitPanel

C - HorizontalPanel

D - VerticalPanel

Answer : B

Explaination

VerticalSplitPanel widget represents a A panel that arranges two widgets in a single vertical column and allows the user to interactively change the proportion of the height dedicated to each of the two widgets. Widgets contained within a VertialSplitPanel will be automatically decorated with scrollbars when necessary.

Q 19 - Which of the following panel represents a flexible table that creates cells on demand?

A - HorizontalPanel

B - VerticalPanel

C - FlexTable

D - Grid

Answer : C

Explaination

FlexTable widget represents a flexible table that creates cells on demand. It can be jagged (that is, each row can contain a different number of cells) and individual cells can be set to span multiple rows or columns.

Q 20 - Which of the following panel represents a rectangular grid that can contain text, html, or a child Widget within its cells?

A - HorizontalPanel

B - VerticalPanel

C - FlexTable

D - Grid

Answer : D

Explaination

Grid widget represents a rectangular grid that can contain text, html, or a child Widget within its cells. It must be resized explicitly to the desired number of rows and columns.

Q 21 - Which of the following panel displays all of its child widgets in a 'deck', where only one can be visible at a time?

A - DeckPanel

B - DockPanel

C - HTMLPanel

D - SimplePanel

Answer : A

Explaination

DeckPanel is a panel that displays all of its child widgets in a 'deck', where only one can be visible at a time. It is used by TabPanel.

Q 22 - Which of the following panel lays its child widgets out 'docked' at its outer edges, and allows its last widget to take up the remaining space in its center?

A - DeckPanel

B - DockPanel

C - HTMLPanel

D - SimplePanel

Answer : B

Explaination

DockPanel widget represents a panel that lays its child widgets out 'docked' at its outer edges, and allows its last widget to take up the remaining space in its center.

Q 23 - Which of the following panel represents a panel that contains HTML, and which can attach child widgets to identified elements within that HTML?

A - DeckPanel

B - DockPanel

C - HTMLPanel

D - SimplePanel

Answer : C

Explaination

HTMLPanel represents a panel that contains HTML, and which can attach child widgets to identified elements within that HTML.

Q 24 - Which of the following panel represents a panel that represents a tabbed set of pages, each of which contains another widget?

A - DeckPanel

B - DockPanel

C - HTMLPanel

D - TabPanel

Answer : D

Explaination

TabPanel widget represents a panel that represents a tabbed set of pages, each of which contains another widget. Its child widgets are shown as the user selects the various tabs associated with them. The tabs can contain arbitrary HTML.

Q 25 - Which of the following widget represents a type of widget that can wrap another widget, hiding the wrapped widget's methods?

A - Composite

B - SimplePanel

C - ScrollPanel

D - FocusPanel

Answer : A

Explaination

Composite widget represents a type of widget that can wrap another widget, hiding the wrapped widget's methods. When added to a panel, a composite behaves exactly as if the widget it wraps had been added.

Answer Sheet

Question Number Answer Key
1 A
2 C
3 B
4 C
5 A
6 B
7 C
8 C
9 D
10 A
11 B
12 D
13 A
14 B
15 C
16 D
17 A
18 B
19 C
20 D
21 A
22 B
23 C
24 D
25 A
gwt_questions_answers.htm
Advertisements