- 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 - 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 '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.
Answer : B
Explaination
No! By default, neither the browser nor GWT creates default id attributes for widgets.
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 acts as a suggestion box?
Answer : C
Explaination
SuggestBox widget acts as a suggestion box. SuggestBox widget represents a text box or text area which displays a pre-configured set of selections that match the user's input. Each SuggestBox is associated with a single SuggestOracle. The SuggestOracle is used to provide a set of selections given a specific query string.
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 formats its child widgets using the default HTML layout behavior?
Answer : B
Explaination
FlowPanel widget represents a panel that formats its child widgets using the default HTML layout behavior.
Q 8 - Which of the following GWT widget represents a panel that can pop up over other widgets?
Answer : C
Explaination
PopupPanel widget represents a panel that can pop up over other widgets. It overlays the browser's client area (and any previously-created popups).
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 logs to Firebug console.
Answer : D
Explaination
FirebugLogHandler logs to Firebug console.
To Continue Learning Please Login
Login with Google