- 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 the purpose of 'module' tag in *.gwt.xml file in GWT?
A - This provides name of the application.
C - This specifies the name of class which will start loading the GWT Application.
Answer : A
Explaination
'module' tag in *.gwt.xml file provides name of the application.
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 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 simple <a> element?
Answer : D
Explaination
Anchor widget represents a simple <a> element.
Q 6 - Which of the following gwt widget represents a file upload?
Answer : B
Explaination
FileUpload widget represents a file upload.
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 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 - Which of the following logger logs to the popup which resides in the upper left hand corner of application when this handler is enabled.
Answer : A
Explaination
PopupLogHandler logs to the popup which resides in the upper left hand corner of application when this handler is enabled.
To Continue Learning Please Login
Login with Google