- 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 GWT?
A - Application written in GWT is cross-browser compliant.
B - GWT automatically generates javascript code suitable for each browser.
C - GWT is open source and is licensed under the Apache License version 2.0.
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 is correct about UIObject class of GWT?
A - UIObject simply wraps a DOM element, and cannot receive events.
B - It provides direct child classes like Widget, MenuItem, MenuItemSeparator, TreeItem.
Answer : D
Explaination
All of the above options are correct.
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 GWT widget represents a tabular view that supports paging and columns?
Answer : A
Explaination
CellTable widget represents a tabular view that supports paging and columns.
Q 7 - Which of the following panel lays all of its widgets out in a single horizontal column?
Answer : C
Explaination
HorizontalPanel widget represents a panel that lays all of its widgets out in a single horizontal column.
Q 8 - 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 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 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.