- 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.
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 - 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 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 contains text, not interpreted as HTML using a <div>element, causing it to be displayed with block layout?
Answer : A
Explaination
Label widget contains text, not interpreted as HTML 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 standard GWT date picker?
Answer : C
Explaination
DatePicker widget represents a standard GWT date picker.
Q 7 - Which of the following panel arranges two widgets in a single vertical column and allows the user to interactively change the proportion of the hight dedicated to each of the two widgets?
Answer : B
Explaination
VerticalSplitPanel widget represents a A panel that arranges two widgets in a single vertical column and allows the user to interactively change the proportion of the height dedicated to each of the two widgets. Widgets contained within a VertialSplitPanel will be automatically decorated with scrollbars when necessary.
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 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 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.