![GWT Tutorial](/gwt/images/gwt-mini-logo.jpg)
- GWT Tutorial
- 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 Useful Resources
- GWT - Questions and Answers
- GWT - Quick Guide
- GWT - Useful Resources
- GWT - Discussion
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.
![Questions and Answers](/images/questions_and_answers.png)
Q 1 - Which of the following is correct about GWT?
B - GWT provides easy integration with Junit and Maven.
C - GWT provides Widgets library provides most of tasks required in an application.
Answer : D
Explaination
All of the above options are correct.
Q 2 - What is the purpose of 'entry-point' 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 : C
Explaination
'entry-point' tag in *.gwt.xml file specifies the name of class which will start loading the GWT Application.
Answer : B
Explaination
No! By default, neither the browser nor GWT creates default id attributes for widgets.
Q 4 - What is the purpose of removeStyleName() 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 : C
Explaination
removeStyleName() method will remove given style from the widget and leaves any others associated with the widget.
Q 5 - Which of the following gwt widget represents a standard push button?
Answer : A
Explaination
Button widget represents a standard push button.
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 of the following panel represents a rectangular grid that can contain text, html, or a child Widget within its cells?
Answer : D
Explaination
Grid widget represents a rectangular grid that can contain text, html, or a child Widget within its cells. It must be resized explicitly to the desired number of rows and columns.
Q 8 - Which of the following GWT widget wraps its contents in an HTML <FORM> element?
Answer : B
Explaination
FormPanel widget represents a panel that wraps its contents in an HTML <FORM> element.
Q 9 - Which of the following is the way using which you can internationalize a GWT application?
A - Static String Internationalization
Answer : D
Explaination
All of the above options are correct.
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.