- 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 - 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.
Answer : B
Explaination
No! By default, neither the browser nor GWT creates default id attributes for widgets.
Q 4 - Which of the following is correct about UIObject class of GWT?
B - More complex styling behavior can be achieved by manipulating an object's secondary style names.
Answer : C
Explaination
Both of the above options are correct.
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 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 lays all of its widgets out in a single vertical column?
Answer : D
Explaination
VerticalPanel widget represents a panel that lays all of its widgets out in a single vertical column.
Q 8 - Which of the following widget is the base class for panels that contain only one widget?
Answer : B
Explaination
SimplePanel is the base class for panels that contain only one widget.
Q 9 - Which of the following GWT widget represents a form of popup that has a caption area at the top and can be dragged by the user?
Answer : D
Explaination
DialogBox widget represents a form of popup that has a caption area at the top and can be dragged by the user. Unlike a PopupPanel, calls to PopupPanel.setWidth(String) and PopupPanel.setHeight(String) will set the width and height of the dialog box itself, even if a widget has not been added as yet.
Q 10 - Which of the following logger sends log messages to the server, where they will be logged using the server side logging mechanism.
Answer : B
Explaination
SimpleRemoteLogHandler sends log messages to the server, where they will be logged using the server side logging mechanism.