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 3 - Do GWT compiler creates default Id attribute for its Widget by default?

A - true

B - false

Answer : B

Explaination

No! By default, neither the browser nor GWT creates default id attributes for widgets.

Q 4 - Which of the following gwt widget can contain HTML text and displays the html content using a <div> element, causing it to be displayed with block layout?

A - Label

B - HTML

C - Image

D - Anchor

Answer : B

Explaination

HTML widget can contain HTML text and displays the html content using a <div> element, causing it to be displayed with block layout.

Q 5 - Which of the following gwt widget represents a mutually-exclusive selection radio buttons?

A - CheckBox

B - RadioBox

C - GWTRadioBox

D - RadioButton

Answer : D

Explaination

RadioButton widget represents a mutually-exclusive selection radio buttons.

Q 6 - Which of the following gwt widget represents a multiline text box?

A - TextArea

B - GWTTextArea

C - SuggestBox

D - TextBox

Answer : A

Explaination

TextArea widget represents a multiline text box.

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 GWT widget represents a simple panel that makes its contents focusable?

A - Composite

B - SimplePanel

C - ScrollPanel

D - FocusPanel

Answer : D

Explaination

FocusPanel widget represents a simple panel that makes its contents focusable, and adds the ability to catch mouse and keyboard events.

Answer : D

Explaination

All of the above options are correct.

Q 10 - Which of the following logger logs by calling method GWT.log. These messages can only be seen in Development Mode in the DevMode window.

A - SystemLogHandler

B - DevelopmentModeLogHandler

C - ConsoleLogHandler

D - PopupLogHandler

Answer : B

Explaination

DevelopmentModeLogHandler logs by calling method GWT.log. These messages can only be seen in Development Mode in the DevMode window.


gwt_questions_answers.htm

Advertisements