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 not a mandatory component of GWT application?
Server-side code is a optional part of a GWT application.
Q 2 - What is the purpose of 'inherits' tag in *.gwt.xml file in GWT?
'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.
Q 3 - Why should a .nocache.js file never be cached?
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 - What is the purpose of setStylePrimaryName() function of a GWT widget?
setStylePrimaryName() method sets the object's primary style name and updates all dependent style names.
Q 5 - Which of the following gwt widget represents a single line text box?
TextBox widget represents a single line text box.
Q 6 - Which of the following gwt widget represents a hidden field?
Hidden widget represents a hidden field.
Q 7 - Which of the following is true about layout panels in GWT?
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?
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?
All of the above options are correct.
Q 10 - Which of the following logger logs to Firebug console.
FirebugLogHandler logs to Firebug console.