
- 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 correct about module descriptors in GWT application?
B - A module descriptor file extension is *.gwt.xml.
C - * in *.gwt.xml is the name of the application and this file should reside in the project's root.
Answer : D
Explaination
All of the above options are correct.
Q 2 - What is default public path for static resources in GWT application?
A - public subdirectory underneath where the Module XML File is stored.
B - public subdirectory underneath where the client source files are stored.
C - public subdirectory underneath where the server source files are stored.
Answer : A
Explaination
The default public path is the public subdirectory underneath where the Module XML File is stored.
Q 3 - What is the purpose of setStyleName() function of a GWT widget?
B - This method will add a secondary or dependent style name to the widget.
D - This method sets the object's primary style name and updates all dependent style names.
Answer : A
Explaination
setStyleName() method will clear any existing styles and set the widget style to the new CSS class provided using style.
Q 4 - 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?
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 5 - Which of the following gwt widget represents a simple <a> element?
Answer : D
Explaination
Anchor widget represents a simple <a> element.
Q 6 - Which of the following gwt widget represents a rich text editor?
Answer : C
Explaination
RichTextArea widget represents a rich text editor.
Q 7 - Which of the following panel formats its child widgets using the default HTML layout behavior?
Answer : B
Explaination
FlowPanel widget represents a panel that formats its child widgets using the default HTML layout behavior.
Q 8 - 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 9 - 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 10 - 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.