- 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 Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to GWT. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following is not a core component of GWT framework?
Answer : D
Explaination
Web Browser is not a core component of GWT framework.
Q 2 - Which method of a entry-point class is called when GWT application starts?
Answer : B
Explaination
onModuleLoad() function gets called and acts similar to main method of a java application.
Q 3 - Which of the following is true about Host Page in GWT?
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 4 - Using which of the following way, you can attach a stylesheet to GWT application?
A - Using a CssResource contained within a ClientBundle.
B - Using an inline <ui:style> element in a UiBinder template.
Answer : C
Explaination
Using both of the above ways, a stylesheet can be attached to a GWT application.
Q 5 - 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?
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 6 - Which of the following gwt widget represents a standard hierarchical tree?
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 7 - Which class is the base class of all layout panel classes?
Answer : A
Explaination
Panel is the abstract base class for all panels, which are widgets that can contain other widgets.
Q 8 - 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 9 - 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 10 - 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.