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 II

Answer : C

Explaination

The most important public resource is host page which is used to invoke actual GWT application. A typical HTML host page for an application might not include any visible HTML body content at all but it is always expected to include GWT application via a <script.../> tag.

Q 2 - What is the default style name of any GWT widget?

A - gwt-<classname>

B - <classname>-style

C - style-<classname>

D - css-<classname>

Answer : A

Explaination

By default, the class name for each component is gwt-<classname>. For example, the Button widget has a default style of gwt-Button and similar way TextBox widgest has a default style of gwt-TextBox.

Q 3 - Do GWT compiler creates default Id attribute for its Widget by default?

A - true

B - false

Answer : B

Explaination

No! By default, neither the browser nor GWT creates default id attributes for widgets.

Answer : C

Explaination

Using both of the above ways, a stylesheet can be attached to a GWT application.

Answer : C

Explaination

Using both of the above ways, a stylesheet can be attached to a GWT application.

Q 10 - Which of the following class is the superclass of all user-interface classes?

A - UIObject

B - Widget

C - Panel

D - None of the above.

Answer : A

Explaination

The class UIObject is the superclass for all user-interface objects.

Q 14 - Which of the following gwt widget contains text, not interpreted as HTML using a <div>element, causing it to be displayed with block layout?

A - Label

B - HTML

C - Image

D - Anchor

Answer : A

Explaination

Label widget contains text, not interpreted as HTML using a <div>element, causing it to be displayed with block layout.

Q 15 - Which of the following gwt widget can contain HTML text and displays the html content using a <div> element, causing it to be displayed with block layout?

A - Label

B - HTML

C - Image

D - Anchor

Answer : B

Explaination

HTML widget can contain HTML text and displays the html content using a <div> element, causing it to be displayed with block layout.

Q 16 - Which of the following gwt widget displays an image at a given URL?

A - Label

B - HTML

C - Image

D - Anchor

Answer : C

Explaination

Image widget displays an image at a given URL.

Q 17 - Which of the following gwt widget represents a simple <a> element?

A - Label

B - HTML

C - Image

D - Anchor

Answer : D

Explaination

Anchor widget represents a simple <a> element.

Q 18 - Which of the following gwt widget represents a standard push button?

A - Button

B - PushButton

C - ToggleButton

D - RadioButton

Answer : A

Explaination

Button widget represents a standard push button.

Q 19 - Which of the following gwt widget represents a normal push button with custom styling?

A - Button

B - PushButton

C - ToggleButton

D - RadioButton

Answer : B

Explaination

PushButton widget represents a normal push button with custom styling.

Q 20 - Which of the following gwt widget represents a stylish stateful button which allows the user to toggle between up and down states?

A - Button

B - PushButton

C - ToggleButton

D - RadioButton

Answer : C

Explaination

ToggleButton widget represents a stylish stateful button which allows the user to toggle between up and down states.

Q 21 - Which of the following gwt widget represents a standard check box?

A - CheckBox

B - GWTCheckBox

C - RadioBox

D - RadioButton

Answer : A

Explaination

CheckBox widget represents a standard check box. This class also serves as a base class for RadioButton.

Q 22 - Which of the following gwt widget represents a mutually-exclusive selection radio buttons?

A - CheckBox

B - RadioBox

C - GWTRadioBox

D - RadioButton

Answer : D

Explaination

RadioButton widget represents a mutually-exclusive selection radio buttons.

Q 23 - Which of the following gwt widget represents a list of choices to the user, either as a list box or as a drop-down list?

A - CheckBox

B - ListBox

C - SuggestBox

D - GWTListBox

Answer : B

Explaination

ListBox widget represents a list of choices to the user, either as a list box or as a drop-down list.

Q 24 - Which of the following gwt widget acts as a suggestion box?

A - CheckBox

B - ListBox

C - SuggestBox

D - GWTSuggestionBox

Answer : C

Explaination

SuggestBox widget acts as a suggestion box. SuggestBox widget represents a text box or text area which displays a pre-configured set of selections that match the user's input. Each SuggestBox is associated with a single SuggestOracle. The SuggestOracle is used to provide a set of selections given a specific query string.

Q 25 - Which of the following gwt widget represents a single line text box?

A - TextArea

B - GWTTextBox

C - SuggestBox

D - TextBox

Answer : D

Explaination

TextBox widget represents a single line text box.

Answer Sheet

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