
- GWT Tutorial
- GWT - Home
- GWT - Overview
- GWT - Environment Setup
- GWT - Applications
- GWT - Create Application
- GWT - Deploy Application
- GWT - Style with CSS
- GWT - Basic Widgets
- GWT - Form Widgets
- GWT - Complex widgets
- GWT - Layout Panels
- GWT - Event Handling
- GWT - Custom Widgets
- GWT - UIBinder
- GWT - RPC Communication
- GWT - JUnit Integration
- GWT - Debugging Application
- GWT - Internationalization
- GWT - History Class
- GWT - Bookmark Support
- GWT - Logging Framework
- GWT Useful Resources
- GWT - Questions and Answers
- GWT - Quick Guide
- GWT - Useful Resources
- GWT - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.

GWT Mock Test IV
Q 1 - Which of the following widget is the base class for panels that contain only one widget?
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?
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?
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?
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?
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?
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.
Q 7 - Which of the following is correct about GWT event handling mechanism?
A - GWT provides a event handler model similar to Java AWT or SWING User Interface frameworks.
B - GWT provides a list of interfaces corresponding to various possible events.
Answer : D
Explaination
All of the above options are correct.
Q 8 - Using which of the following, a custom widget can be created?
A - Create a widget by extending Composite Class.
B - Create a widget using GWT DOM API in JAVA.
Answer : D
Explaination
All of the above options are correct.
Q 9 - Which of the following is correct about GWT UiBinder?
A - The UiBinder is a framework designed to separate Functionality and View of User Interface.
Answer : D
Explaination
All of the above options are correct.
Q 10 - Which of the following is correct about GWT UiBinder?
A - The UIBinder provides a declarative way of defining User Interface.
B - The UIBinder seperates the programmic logic from UI.
Answer : D
Explaination
All of the above options are correct.
Q 11 - Which of the following is correct about GWT RPC?
C - GWT RPC is asynchronous and client is never blocked during communication.
Answer : D
Explaination
All of the above options are correct.
Q 12 - Which of the following is correct about GWT RPC?
Answer : D
Explaination
All of the above options are correct.
Q 13 - Which of the following is not the core components of GWT RPC?
A - A remote service (server-side servlet) that runs on the server
B - Client code to invoke that service.
C - Java data objects which will be passed between client and server.
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?
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
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?
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.
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
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
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.
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.
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.
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.
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.
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.
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 |