- 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 not a core component of GWT framework?
Answer : D
Explaination
Web Browser is not a core component of GWT framework.
Q 2 - What is the purpose of 'stylesheet' tag in *.gwt.xml file in GWT?
D - This automatically injects the external CSS file located at the location specified by src.
Answer : D
Explaination
'stylesheet' tag in *.gwt.xml file automatically injects the external CSS file located at the location specified by src.
Q 3 - Which of the following is correct about entry-point class?
Answer : C
Explaination
A module entry-point is any class that is assignable to EntryPoint and that can be constructed without parameters. When a module is loaded, every entry point class is instantiated and its EntryPoint.onModuleLoad() method gets called.
Q 4 - What is the purpose of setStylePrimaryName() 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 : D
Explaination
setStylePrimaryName() method sets the object's primary style name and updates all dependent style names.
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 view of a tree?
Answer : C
Explaination
CellTree widget represents a view of a tree. This widget will only work in standards mode, which requires that the HTML page in which it is run have an explicit <!DOCTYPE> declaration.
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 panel represents a panel that contains HTML, and which can attach child widgets to identified elements within that HTML?
Answer : C
Explaination
HTMLPanel represents a panel that contains HTML, and which can attach child widgets to identified elements within that HTML.
Q 9 - Which of the following is not the core components of GWT RPC?
A - A remote service (server-side servlet) that runs on the server
B - Client code to invoke that service.
C - Java data objects which will be passed between client and server.
Answer : D
Explaination
Database is not a core component of GWT RPC.
Q 10 - GWT client and server both serialize and deserialize data automatically so developers are not required to serialize/deserialize objects and data objects can travel over HTTP.
Answer : A
Explaination
GWT client and server both serialize and deserialize data automatically so developers are not required to serialize/deserialize objects and data objects can travel over HTTP.