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

Q 1 - Which of the following is not a mandatory component of GWT application?

A - Module descriptors

B - Public resources

C - Server-side code

D - Client-side code

Answer : C

Explaination

Server-side code is a optional part of a 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 : 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 5 - Which of the following gwt widget represents a single line text box?

A - TextArea

B - GWTTextBox

C - SuggestBox

D - TextBox

Answer : D

Explaination

TextBox widget represents a single line text box.

Q 6 - Which of the following gwt widget represents a hidden field?

A - TextArea

B - GWTHidden

C - Hidden

D - TextBox

Answer : C

Explaination

Hidden widget represents a hidden field.

Answer : D

Explaination

Layout Panels can contain other widgets. These panels controls the way widgets to be shown on User Interface. Every Panel widget inherits properties from Panel class which in turn inherits properties from Widget class and which in turn inherits properties from UIObject class.

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 is the way using which you can internationalize a GWT application?

A - Static String Internationalization

B - Dynamic String Internationalization

C - Localizable Interface

D - All of the above.

Answer : D

Explaination

All of the above options are correct.

Q 10 - Which of the following logger logs to Firebug console.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - FirebugLogHandler

Answer : D

Explaination

FirebugLogHandler logs to Firebug console.

gwt_questions_answers.htm
Advertisements