- 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 - 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 - 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 - Using which of the following way, you can attach a stylesheet to GWT application?
A - Using a <link> tag in the host HTML page.
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 simple <a> element?
Answer : D
Explaination
Anchor widget represents a simple <a> element.
Q 6 - Which GWT widget represents a single column list of cells?
Answer : D
Explaination
CellList widget represents a single column list of cells.
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 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 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 10 - 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.