- 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 - 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 'inherits' 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 : B
Explaination
'inherits' tag in *.gwt.xml file adds other gwt module in application just like import does in java applications. Any number of modules can be inherited in this manner.
Q 3 - What is the purpose of addStyleName() 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 : B
Explaination
addStyleName() method will add a secondary or dependent style name to the widget.
Q 4 - Which of the following is correct about UIObject class of GWT?
A - UIObject simply wraps a DOM element, and cannot receive events.
B - It provides direct child classes like Widget, MenuItem, MenuItemSeparator, TreeItem.
Answer : D
Explaination
All of the above options are correct.
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 standard hierarchical tree?
Answer : A
Explaination
Tree widget represents a standard hierarchical tree. The tree contains a hierarchy of TreeItems that the user can open, close, and select.
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 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 internationalization technique uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their values?
A - Static String Internationalization
Answer : A
Explaination
Static String Internationalization is most prevalent and requires very little overhead at runtime; is a very efficient technique for translating both constant and parameterized strings;simplest to implement. Static string internationalization uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their values.