- 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 - Google Web Toolkit (GWT) is a development toolkit to create RICH Internet Application(RIA).
B - GWT provides developers option to write client side application in JAVA.
C - GWT compiles the code written in JAVA to JavaScript code.
Answer : D
Explaination
All of the above options are correct.
Q 2 - What is the purpose of 'inherits' tag in *.gwt.xml file in GWT?
A - This provides name of the application.
C - This specifies the name of class which will start loading the GWT Application.
Answer : B
Explaination
'inherits' tag in *.gwt.xml file adds other gwt module in application just like import does in java applications. Any number of modules can be inherited in this manner.
Q 3 - What is the purpose of addStyleName() 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 : B
Explaination
addStyleName() method will add a secondary or dependent style name to the widget.
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 displays an image at a given URL?
Answer : C
Explaination
Image widget displays an image at a given URL.
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 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 10 - Which of the following logger logs to Firebug console.
Answer : D
Explaination
FirebugLogHandler logs to Firebug console.