Olete.in
Articles
Mock Tests
🧪 Google Web Toolkit (GWT) MCQ Quiz Hub
Google Web Toolkit multiple choice questions set 1
Choose a topic to test your knowledge and improve your Google Web Toolkit (GWT) skills
1. In a Google Web Toolkit web application, the following argument is passed to the JUnitShell: -Dgwt.args="-help" What will the output be?
It will throw an error.
It will print the command help keywords in the console.
It will print help to the console.
It will run Google Web Toolkit in production mode.
2. What code is the first to run in a GWT application
The class Extending EntryPoint registered in your gwt.xml file.
The method public static void Main(String[] args)
both (a) and (b)
None of These
3. The core GWT defined in gwt.xml should inherit which module?
com.google.gwt.user.User
com.google.gwt.User
com.google.gwt.core.Core
com.google.gwt.user.Core
4. What is a benefit of using HTML5 with GWT?
Better performance and larger data storage.
Data is compressed and encrypted.
More secure data transfer.
There is no benefit.
5. What must be inherited before using HTTP types in your application?
PHP module.
GHB HTTP module.
GWT HTTP module
PDF module.
6. What does the acronym GWT stand for?
Google Wrapper Toolset
GNU Web Toolkit
Google Web ToolKit
Google Webapp Tester
7. When you want to test JavaScript, what test case wrapper would you use to launch a web browser to test it?
GWTTestCase
GcaseTest
GcaseTest
Gtest
8. What two files must be edited before adding GWT logging?
The pdf file and the java file.
The ftp.php file and the .java file.
The php file and .java file.
The .gwt.xml file and the .java file.
9. What is the default locale when not specified?
en.
jp.
esp.
uk.
10. GWT's logging framework uses the same syntax and behavior on the server side. What does this allow?
This allows you to write short-hand logs.
This allows you to share logging code between the server-side and the client-side.
This allows you to combine the logs into a single log.
This allows you to write logs to any file type.
11. What do you use to integrate GWT with a third-party Javascript library?
JavaScript Overlays.
The JavaScript Native Interface.
AJAX Command Center.
The JavaScript Console.
12. What class is used to unit test GWT code?
GTWtest
GWTTestCase
HTTPtest
Gtest
13. What type of processing is taking place within the web server?
Internal processing.
Client-side processing.
Server-side processing.
External processing.
14. What language is GWT client side code written in.
Ruby
Python
Java
C++
15. The path for translatable code from Java to JS is:
shared
defined in gwt.xml
client and shared
client
16. How do you use XSRF protection when using RequestBuilder and RequestCallback classes?
Set a custom value for a cookie.
Change cookies to a custom cookie.
Set a custom number of cookies.
Set a custom header to include the value of your cookie.
17. A GWT application can be configured through a file with the extension:
.gwt
.html
.xml✖
.gwt.xml
18. The EntryPoint interface has which method?
onModuleLoad()
onStart()
onLoad()
onInit()
19. JSNI stands for:
JavaScript Native Interface
JavaScript Naming Interface
JavaScript Natural Interface
JavaScript National Interface
20. Which of the following is a recommended Java GUI designer for GWT?
Java GUI
GWT Designer
Java GWT
GWT GUI
21. If a logger does not contain a dot, what does this mean?
It has the Root Logger as its parent.
It has flawed syntax.
It means nothing.
It is a child logger.
22. Which of these is NOT a method in AsyncCallback?
onfailure()
onerror()
onsuccess()
(All of these)
23. What argument would you use to run a manual test within a solo browser?
-runStyle Manual:1
-runSoloSingle
Browser.1
Single-solo.
24. Which of the following does GWT not include
Compiler
Browser plugin
DOM Api
Java applet plugin
25. Which of these is not a class for JSON manipulation:
JSONArray
JSONString
JSONObject
JSONObject
26. The server-side of a AsyncCallback is a:
RemoteServiceServlet
HttpServlet
RemoteServlet
AsyncServiceServlet
27. As of version 2.6 of GWT what is the newest version of Java syntax supported by GWT?
Java 4
Java 7
Java 5
Java 6
28. Which is NOT a Panel widget in GWT:
HorizontalPanel
CanvasPanel
VerticalPanel
DecoratorPanel
29. Which of the following is one of the three classes used when programming delayed logic?
TimerCommand
IncrementalTime
DeferredCommand
Time
30. When does GWT perform its locale-related work?
At compile time.
At startup time.
At bind time.
At sandbox time.
31. The top level panel in GWT is?
HTMLPanel
RootPanel
DOMPanel
TopPanel
32. A JSNI method has to be declared as what?
native✔
js
javascript
jsni
33. What is the extension of a GWT bootstrap script?
.js
.gwt.js
.cache.js
.nocache.js
34. What does GWT use to stylize the visuals of their user interface?
DOM
CSS
PHP
HTML
35. Strictly speaking, GWT is a:
Compiler
Interpreter
Browser plug-in
JVM
36. Code splitting to minimize JS downloads can be achieved with:
GWT.runJS()
GWT.runSync()
GWT.split()
GWT.runAsync()
37. Home Google Web Toolkit MCQ Human readable strings matched with tags at compile time are considered what? Google Web Toolkit Quiz Google Web Toolkit Human readable strings matched with tags at compile time are considered what?
Static strings.
Elastic strings.
Static tags.
Elastic tags.
38. How are loggers organized?
In a map structure.
In a box and whisker plot.
In a tree structure.
In a chart.
39. What servlet container is used for testing during development time?
Jetson.
Jetty.
Devlet.
Jetlet.
40. An AJAX call in GWT can be implemented with:
SyncCallback()
AsyncCallback()
XmlHttpRequest()
AJAXCallback()
41. Which of the following is a correct JSNI method delaration?
def helloWorld={return "Hello World";}
public native String helloWorld() /*-{ return "Hello World"; }-*/;
public native String helloWorld() { return "Hello World"; };
function helloWorld(){return "Hello World";}
42. History events in GWT are implemented as a:
Array
Queue
Stack
List
43. A custom widget in GWT should extend which class?
Widget
Composite
Panel
Div
44. What feature is built into GWT 2.3 to prevent web attacks?
XSRF protection.
Web protection.
Secure Node 3.0
Web secure 2.0
45. How does one correctly invoke the clear() method to clear their HTML5 data?
clearme()
HTML5clear()
myStorage.clear();
clear()HTML5
46. If a single class cannot be serialized, will its object types be serialized as well?
Only if its sub-class is serialized.
Only if its root is serialized.
Yes
No.
47. What does ActivityMapper do?
It maps activities.
It lists activities.
It tells you what activity is taking place.
It maps Places to corresponding Activities.
48. Presenters and Views should be binded by:
Interface
Inheritance
Encapsulation
Class
49. The biggest difference between MVP Part1 and Part2 is:
UiViewer
Presenter
View
UiBinder
50. If an exception is launched in a AsyncCallback, which method is invoked?
onCallbackException()
onError()
onFailure()
onException()
51. How do you access javascript in GWT?
Javascript Eval method
JSNI
HTML Javascript injection
You cannot access Javascript
52. A CSS can be applied to a Widget with which method?
setStyle()
setCSS()
setCSSStyleName()
setStyleName()
53. What type of binding is a feature of the GWT compiler?
Deferred binding.
Dynamic binding.
Inferred binding.
Static binding.
54. GWT supports the following browsers:
Internet Explorer 6, 7, 8, 9
Safari 5, 6
Firefox (all)
Google Chrome
55. A EventHandler is a:
Data type
Class
Inner class
Interface
56. Which JRE feature is not supported in GWT client side code?
Reflection
Java AutoBoxing
Java Math
Collections
57. When does gwtTearDown() run?
At the beginning of every test method.
When the test method has failed.
In the middle of every test method.
At the completion of every test method.
58. What is one way to prevent XSRF attacks in GWT?
Firewalls.
Cross-site scripting.
Session cookie duplication.
Virus scanning.
59. The P in MVP stands for:
Programming
Process
Presentation
Presenter
60. When there is a dot between two loggers, what does this indicate?
The loggers are in error.
The loggers are siblings.
The loggers are in conflict
The loggers are not related.
61. A ClickHandler extends:
MouseEventHandler
MouseHandler
MouseButtonsHandler
EventHandler
62. Is it necessary to use GWT's history mechanism with MVP development?
No
Yes, and it must be used in conjunction with MVP framework.
Yes
Yes, because MVP framework is built upon it.
63. Which of the following is not a security weakness in GWT?
Forging requests
Leaking Data
SafeHTML guidelines.
Cross-site scripting.
64. History management and view transition logic is the responsibility of a:
Presenter
AppController
ViewPresenter
ViewController
65. Which of the following is not a HTML5 feature supported by GWT?
Client-side storage
Audio
PDF
Canvas
66. Which Java package is NOT emulated by GWT?
java.lang.annotation
java.io
java.math
java.lang.reflect
67. HTTP requests can be handled easily by:
HttpBuilder
HttpRequestBuilder
HttpInvoker
RequestBuilder
68. To listen to DOM events a Widget must invoke:
retreiveEvents()
getEvents()
listenToEvents()
sinkEvents()
69. Which library can be use for client-side dependency injection?
Spring
Guice
GWTIN
GIN
70. Generating many different version of JavaScript on a per browser basis is known as what?
JSNI Binding
Deferred Binding
UserAgent Binding
JS Binding
71. A deferred binding implementation can be generated in GWT with:
GWT.createAndBind()
GWT.bind()
GWT.bindAndCreate()
GWT.create()
72. How are parent/child relationships determined?
They are determined by the name of the parent.
They are determined by the name of the logger.
They are determined randomly.
They are determined by the name of the child.
73. JSON objects can be handled as Overlay Types by subclassing which?
JavaScriptOverlayObject
JSONObject
JavaScriptObject
JSObject
74. When the client is invoking the code, how is it referred to?
A call.
A reference.
A service.
A command.
75. A RemoteService path can be annotated as:
@RemoteServicePath
@RemoteServiceAsyncPath
@RemoteServiceRelativePath
@RemotePath
Submit