- 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 - GWT is extensible and custom widget can be created to cater to application needs.
Answer : C
Explaination
Both of the above options are correct.
Q 2 - What is default public path for static resources in GWT application?
A - public subdirectory underneath where the Module XML File is stored.
B - public subdirectory underneath where the client source files are stored.
C - public subdirectory underneath where the server source files are stored.
Answer : A
Explaination
The default public path is the public subdirectory underneath where the Module XML File is stored.
Q 3 - What is the purpose of setStyleName() 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 : A
Explaination
setStyleName() method will clear any existing styles and set the widget style to the new CSS class provided using style.
Q 4 - Which of the following gwt widget can contain HTML text and displays the html content using a <div> element, causing it to be displayed with block layout?
Answer : B
Explaination
HTML widget can contain HTML text and displays the html content using a <div> element, causing it to be displayed with block layout.
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 multiline text box?
Answer : A
Explaination
TextArea widget represents a multiline text box.
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 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 correct about GWT event handling mechanism?
A - GWT provides a event handler model similar to Java AWT or SWING User Interface frameworks.
B - GWT provides a list of interfaces corresponding to various possible events.
Answer : D
Explaination
All of the above options are correct.
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.
To Continue Learning Please Login
Login with Google