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 IV

Q 1 - Which of the following widget is the base class for panels that contain only one widget?

A - Composite

B - SimplePanel

C - ScrollPanel

D - FocusPanel

Answer : B

Explaination

SimplePanel is the base class for panels that contain only one widget.

Q 2 - Which of the following GWT widget represents a simple panel that wraps its contents in a scrollable area?

A - Composite

B - SimplePanel

C - ScrollPanel

D - FocusPanel

Answer : C

Explaination

ScrollPanel widget represents a simple panel that wraps its contents in a scrollable area.

Q 3 - Which of the following GWT widget represents a simple panel that makes its contents focusable?

A - Composite

B - SimplePanel

C - ScrollPanel

D - FocusPanel

Answer : D

Explaination

FocusPanel widget represents a simple panel that makes its contents focusable, and adds the ability to catch mouse and keyboard events.

Q 4 - Which of the following GWT widget wraps its contents in an HTML <FORM> element?

A - Composite

B - FormPanel

C - PopupPanel

D - DialogBox

Answer : B

Explaination

FormPanel widget represents a panel that wraps its contents in an HTML <FORM> element.

Q 5 - Which of the following GWT widget represents a panel that can pop up over other widgets?

A - Composite

B - FormPanel

C - PopupPanel

D - DialogBox

Answer : C

Explaination

PopupPanel widget represents a panel that can pop up over other widgets. It overlays the browser's client area (and any previously-created popups).

Q 6 - Which of the following GWT widget represents a form of popup that has a caption area at the top and can be dragged by the user?

A - Composite

B - FormPanel

C - PopupPanel

D - DialogBox

Answer : D

Explaination

DialogBox widget represents a form of popup that has a caption area at the top and can be dragged by the user. Unlike a PopupPanel, calls to PopupPanel.setWidth(String) and PopupPanel.setHeight(String) will set the width and height of the dialog box itself, even if a widget has not been added as yet.

Answer : D

Explaination

All of the above options are correct.

Answer : D

Explaination

All of the above options are correct.

Answer : D

Explaination

Database is not a core component of GWT RPC.

Q 14 - Which of the following interface a java data object should implement so that it can be transferred over the wire in GWT RPC?

A - isSerializable

B - isTransferrable

C - isWirable

D - wirable

Answer : A

Explaination

A java data object should implement isSerializable interface so that it can be transferred over the wire in GWT RPC.

Q 15 - Which of the following is the way using which you can internationalize a GWT application?

A - Static String Internationalization

B - Dynamic String Internationalization

C - Localizable Interface

D - All of the above.

Answer : D

Explaination

All of the above options are correct.

Q 16 - Which tag of *.gwt.xml is used to support internationalization in GWT application?

A - extend-property

B - property

C - value

D - None of the above.

Answer : A

Explaination

extend-property tag with attribute name set as locale and values as language specific locale, say de for german locale.

Q 17 - GWT client and server both serialize and deserialize data automatically so developers are not required to serialize/deserialize objects and data objects can travel over HTTP.

A - true

B - false

Answer : A

Explaination

GWT client and server both serialize and deserialize data automatically so developers are not required to serialize/deserialize objects and data objects can travel over HTTP.

Q 18 - Which of the following internationalization technique uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their values?

A - Static String Internationalization

B - Dynamic String Internationalization

C - Localizable Interface

D - None of the above.

Answer : A

Explaination

Static String Internationalization is most prevalent and requires very little overhead at runtime; is a very efficient technique for translating both constant and parameterized strings;simplest to implement. Static string internationalization uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their values.

Q 19 - In which of the following internationalization technique host page contains the localized strings therefore, applications are not required to be recompiled when we add a new locale?

A - Static String Internationalization

B - Dynamic String Internationalization

C - Localizable Interface

D - None of the above.

Answer : B

Explaination

Dynamic String Internationalization is very flexible but slower than static string internationalization. Host page contains the localized strings therefore, applications are not required to be recompiled when we add a new locale. If GWT application is to be integrated with an existing server-side localization system, then this technique is to be used.

Q 20 - Which of the following logger logs to stdout and logged messages can only be seen in Development Mode in the DevMode window.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - PopupLogHandler

Answer : A

Explaination

SystemLogHandler logs to stdout and logged messages can only be seen in Development Mode in the DevMode window.

Q 21 - Which of the following logger logs by calling method GWT.log. These messages can only be seen in Development Mode in the DevMode window.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - PopupLogHandler

Answer : B

Explaination

DevelopmentModeLogHandler logs by calling method GWT.log. These messages can only be seen in Development Mode in the DevMode window.

Q 22 - Which of the following logger logs to the javascript console, which is used by Firebug Lite (for IE), Safari and Chrome.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - PopupLogHandler

Answer : C

Explaination

ConsoleLogHandler logs to the javascript console, which is used by Firebug Lite (for IE), Safari and Chrome.

Q 23 - Which of the following logger logs to Firebug console.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - FirebugLogHandler

Answer : D

Explaination

FirebugLogHandler logs to Firebug console.

Q 24 - Which of the following logger logs to the popup which resides in the upper left hand corner of application when this handler is enabled.

A - PopupLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - FirebugLogHandler

Answer : A

Explaination

PopupLogHandler logs to the popup which resides in the upper left hand corner of application when this handler is enabled.

Q 25 - Which of the following logger sends log messages to the server, where they will be logged using the server side logging mechanism.

A - PopupLogHandler

B - SimpleRemoteLogHandler

C - ConsoleLogHandler

D - FirebugLogHandler

Answer : B

Explaination

SimpleRemoteLogHandler sends log messages to the server, where they will be logged using the server side logging mechanism.

Answer Sheet

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