- 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 - Google Web Toolkit (GWT) is a development toolkit to create RICH Internet Application(RIA).
B - GWT provides developers option to write client side application in JAVA.
C - GWT compiles the code written in JAVA to JavaScript code.
Answer : D
Explaination
All of the above options are correct.
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 - 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 - Using which of the following way, you can attach a stylesheet to GWT application?
A - Using a CssResource contained within a ClientBundle.
B - Using an inline <ui:style> element in a UiBinder template.
Answer : C
Explaination
Using both of the above ways, a stylesheet can be attached to a GWT application.
Q 5 - Which of the following gwt widget represents a single line text box?
Answer : D
Explaination
TextBox widget represents a single line text box.
Q 6 - Which of the following gwt widget represents a standard menu bar?
Answer : B
Explaination
MenuBar widget represents a standard menu bar widget. A menu bar can contain any number of menu items, each of which can either fire a Command or open a cascaded menu bar.
Q 7 - Which GWT widget represents a browsable view of a tree in which only a single node per level may be open at one time?
Answer : B
Explaination
CellBrowser widget represents a browsable view of a tree in which only a single node per level may be open at one time. 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 8 - Which of the following GWT widget represents a simple panel that makes its contents focusable?
Answer : D
Explaination
FocusPanel widget represents a simple panel that makes its contents focusable, and adds the ability to catch mouse and keyboard events.
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 sends log messages to the server, where they will be logged using the server side logging mechanism.
Answer : B
Explaination
SimpleRemoteLogHandler sends log messages to the server, where they will be logged using the server side logging mechanism.
To Continue Learning Please Login
Login with Google