GWT Online Quiz


Advertisements


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.

Questions and Answers

Answer : B

Explaination

GWT stands for Google Web Toolkit.

Q 2 - Which method of a entry-point class is called when GWT application starts?

A - main()

B - onModuleLoad()

C - process()

D - execute()

Answer : B

Explaination

onModuleLoad() function gets called and acts similar to main method of a java application.

Answer : C

Explaination

GWT compiler generates .nocache.js file every time with the same name whenever a GWT application is compiled. So browser should always download the .nocache.js file to get the latest gwt application. gwt.js code actually appends a unique timestamp at the end of the file name so that browser always treat it a new file and should never cache it.

Q 4 - Which of the following gwt widget contains text, not interpreted as HTML using a <div>element, causing it to be displayed with block layout?

A - Label

B - HTML

C - Image

D - Anchor

Answer : A

Explaination

Label widget contains text, not interpreted as HTML using a <div>element, causing it to be displayed with block layout.

Q 5 - Which of the following gwt widget represents a simple <a> element?

A - Label

B - HTML

C - Image

D - Anchor

Answer : D

Explaination

Anchor widget represents a simple <a> element.

Q 6 - Which GWT widget represents a tabular view that supports paging and columns?

A - CellTable

B - Tree

C - CellTree

D - CellList

Answer : A

Explaination

CellTable widget represents a tabular view that supports paging and columns.

Q 7 - Which class is the base class of all layout panel classes?

A - Panel

B - FlowPanel

C - HorizontalPanel

D - VerticalPanel

Answer : A

Explaination

Panel is the abstract base class for all panels, which are widgets that can contain other widgets.

Q 8 - Which of the following widget represents a type of widget that can wrap another widget, hiding the wrapped widget's methods?

A - Composite

B - SimplePanel

C - ScrollPanel

D - FocusPanel

Answer : A

Explaination

Composite widget represents a type of widget that can wrap another widget, hiding the wrapped widget's methods. When added to a panel, a composite behaves exactly as if the widget it wraps had been added.

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?

A - Composite

B - FormPanel

C - PopupPanel

D - DialogBox

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 the javascript console, which is used by Firebug Lite (for IE), Safari and Chrome.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - PopupLogHandler

Answer : C

Explaination

ConsoleLogHandler logs to the javascript console, which is used by Firebug Lite (for IE), Safari and Chrome.


gwt_questions_answers.htm

Advertisements