- 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?
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 the purpose of 'script' tag in *.gwt.xml file in GWT?
D - This automatically injects the external CSS file located at the location specified by src.
Answer : C
Explaination
'script' tag in *.gwt.xml file automatically injects the external JavaScript file located at the location specified by src.
Q 3 - Which of the following is true about Host Page in GWT?
Answer : C
Explaination
The most important public resource is host page which is used to invoke actual GWT application. A typical HTML host page for an application might not include any visible HTML body content at all but it is always expected to include GWT application via a <script.../> tag.
Q 4 - Which of the following class is the superclass of all user-interface classes?
Answer : A
Explaination
The class UIObject is the superclass for all user-interface objects.
Q 5 - Which of the following gwt widget represents a standard check box?
Answer : A
Explaination
CheckBox widget represents a standard check box. This class also serves as a base class for RadioButton.
Q 6 - Which of the following gwt widget represents a rich text editor?
Answer : C
Explaination
RichTextArea widget represents a rich text editor.
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 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.
To Continue Learning Please Login
Login with Google