Elance Google Web Toolkit Test Answers 2015
·
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)
Which of the following is not a HTML5 feature
supported by GWT?
Client-side
storage
Canvas
Audio
PDF
The EntryPoint interface has which method?
onInit()
onModuleLoad()
onStart()
onLoad()
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.
True or False? GWT 2.0 supports Java generics?
True
False
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
What class is used to unit test GWT code?
GWTTestCase
Gtest
GTWtest
HTTPtest
The path for translatable code from Java to JS
is:
defined
in gwt.xml
client
shared
client
and shared
How do you use XSRF protection when using
RequestBuilder and RequestCallback classes?
Change
cookies to a custom cookie.
Set a
custom header to include the value of your cookie.
Set
a custom value for a cookie.
Set
a custom number of cookies.
Which of the following is a recommended Java
GUI designer for GWT?
Java
GUI
GWT
Designer
Java
GWT
GWT
GUI
What type of processing is taking place within
the web server?
Internal
processing.
Client-side
processing.
Server-side
processing.
External
processing.
What must be inherited before using HTTP types
in your application?
GHB
HTTP module.
PHP
module.
GWT
HTTP module.
PDF
module.
True or False? GWT can be used to develop
commercial applications with free licensing?
True
False
What is the default locale when not specified?
uk.
en.
jp.
esp.
What does the acronym GWT stand for?
Google
Web ToolKit
GNU
Web Toolkit
Google
Wrapper Toolset
Google
Webapp Tester
JSNI stands for:
JavaScript
Native Interface
JavaScript
Natural Interface
JavaScript
Naming Interface
JavaScript
National Interface
What do you use to integrate GWT with a
third-party Javascript library?
The
JavaScript Native Interface.
AJAX
Command Center.
JavaScript
Overlays.
The
JavaScript Console.
GWT's logging framework uses the same syntax
and behavior on the server side. What does this allow?
This
allows you to combine the logs into a single log.
This
allows you to write logs to any file type.
This
allows you to share logging code between the server-side and the client-side.
This
allows you to write short-hand logs.
A GWT application can be configured through a
file with the extension:
.html
.gwt.xml
.gwt
.xml
What language is GWT client side code written
in.
Java
Ruby
Python
C++
Which of these is not a class for JSON
manipulation:
JSONArray
JSONClass
JSONObject
JSONString
How are loggers organized?
In
a box and whisker plot.
In a
tree structure.
In
a map structure.
In
a chart.
As of version 2.6 of GWT what is the newest
version of Java syntax supported by GWT?
Java
4
Java
5
Java
6
Java 7
What is a benefit of using HTML5 with GWT?
Data
is compressed and encrypted.
There
is no benefit.
Better
performance and larger data storage.
More
secure data transfer.
What servlet container is used for testing
during development time?
Jetson.
Jetlet.
Jetty.
Devlet.
Code splitting to minimize JS downloads can be
achieved with:
GWT.runSync()
GWT.runAsync()
GWT.runJS()
GWT.split()
Which is NOT a Panel widget in GWT:
VerticalPanel
CanvasPanel
DecoratorPanel
HorizontalPanel
Human readable strings matched with tags at
compile time are considered what?
Static
strings.
Elastic
tags.
Elastic
strings.
Static
tags.
Strictly speaking, GWT is a:
Compiler
Interpreter
Browser
plug-in
JVM
The top level panel in GWT is?
HTMLPanel
TopPanel
RootPanel
DOMPanel
When does GWT perform its locale-related work?
At
bind time.
At
compile time.
At
sandbox time.
At
startup time.
The server-side of a AsyncCallback is a:
RemoteServiceServlet
AsyncServiceServlet
HttpServlet
RemoteServlet
A custom widget in GWT should extend which
class?
Div
Panel
Composite
Widget
An AJAX call in GWT can be implemented with:
AJAXCallback()
XmlHttpRequest()
SyncCallback()
AsyncCallback()
What argument would you use to run a manual
test within a solo browser?
-runStyle
Manual:1
-runSoloSingle
Browser.1
Single-solo.
What is the extension of a GWT bootstrap
script?
.gwt.js
.js
.cache.js
.nocache.js
What does GWT use to stylize the visuals of
their user interface?
PHP
HTML
DOM
CSS
A JSNI method has to be declared as what?
native
javascript
js
jsni
If a single class cannot be serialized, will
its object types be serialized as well?
No.
Only
if its root is serialized.
Only
if its sub-class is serialized.
Yes.
If a logger does not contain a dot, what does
this mean?
It has
the Root Logger as its parent.
It
is a child logger.
It
has flawed syntax.
It
means nothing.
History events in GWT are implemented as a:
List
Array
Queue
Stack
Which of the of the following does GWT not
include
Java
applet plugin
Browser
plugin
Compiler
DOM
Api
What does ActivityMapper do?
It
tells you what activity is taking place.
It
maps activities.
It
lists activities.
It maps
Places to corresponding Activities.
Which of the following is one of the three
classes used when programming delayed logic?
IncrementalTime
TimerCommand
DeferredCommand
Time
Which of these is NOT a method in
AsyncCallback?
onsuccess()
onerror()
onfailure()
(All of
these)
What feature is built into GWT 2.3 to prevent
web attacks?
Secure
Node 3.0
Web
protection.
XSRF
protection.
Web
secure 2.0
If an exception is launched in a
AsyncCallback, which method is invoked?
onException()
onFailure()
onCallbackException()
onError()
A CSS can be applied to a Widget with which
method?
setCSS()
setCSSStyleName()
setStyleName()
setStyle()
GWT supports the following browsers:
Google
Chrome
Firefox
(all)
Internet
Explorer 6, 7, 8, 9
Safari
5, 6
Which of the following is a correct JSNI
method delaration?
public
native String helloWorld() { return "Hello World"; };
function
helloWorld(){return "Hello World";}
def
helloWorld={return "Hello World";}
public
native String helloWorld() /*-{ return "Hello World"; }-*/;
The core GWT defined in gwt.xml should inherit
which module?
com.google.gwt.core.Core
com.google.gwt.User
com.google.gwt.user.Core
com.google.gwt.user.User
What type of binding is a feature of the GWT
compiler?
Deferred
binding.
Dynamic
binding.
Static
binding.
Inferred
binding.
How does one correctly invoke the clear()
method to clear their HTML5 data?
myStorage.clear();
clear()HTML5
clearme()
HTML5clear()
The biggest difference between MVP Part1 and
Part2 is:
UiViewer
UiBinder
Presenter
View
Presenters and Views should be binded by:
Inheritance
Interface
Encapsulation
Class
A ClickHandler extends:
MouseEventHandler
MouseHandler
MouseButtonsHandler
EventHandler
When does gwtTearDown() run?
In
the middle of every test method.
When
the test method has failed.
At the
completion of every test method.
At
the beginning of every test method.
What is one way to prevent XSRF attacks in
GWT?
Firewalls.
Virus
scanning.
Session
cookie duplication.
Cross-site
scripting.
The P in MVP stands for:
Presenter
Process
Programming
Presentation
Is it necessary to use GWT's history mechanism
with MVP development?
No.
Yes.
Yes,
because MVP framework is built upon it.
Yes,
and it must be used in conjunction with MVP framework.
History management and view transition logic
is the responsibility of a:
ViewPresenter
AppController
ViewController
Presenter
How do you access javascript in GWT?
HTML
Javascript injection
Javascript
Eval method
You
cannot access Javascript
JSNI
Which JRE feature is not supported in GWT
client side code?
Java
Math
Reflection
Java
AutoBoxing
Collections
Which Java package is NOT emulated by GWT?
java.lang.annotation
java.math
java.lang.reflect
java.io
A EventHandler is a:
Data
type
Interface
Inner
class
Class
When there is a dot between two loggers, what
does this indicate?
The
loggers are in conflict.
The
loggers are in error.
The
loggers are siblings.
The
loggers are not related.
To listen to DOM events a Widget must invoke:
listenToEvents()
retreiveEvents()
sinkEvents()
getEvents()
Which of the following is not a security
weakness in GWT?
Forging
requests
Leaking
Data
SafeHTML
guidelines.
Cross-site
scripting.
Which library can be use for client-side
dependency injection?
Guice
Spring
GIN
GWTIN
Although JavaScript is single-threaded, GWT
can use multi-threading because it supports Java synchronized.
True
False
How are parent/child relationships determined?
They
are determined by the name of the parent.
They
are determined by the name of the child.
They
are determined randomly.
They
are determined by the name of the logger.
A deferred binding implementation can be
generated in GWT with:
GWT.bindAndCreate()
GWT.createAndBind()
GWT.create()
GWT.bind()
HTTP requests can be handled easily by:
HttpBuilder
HttpRequestBuilder
HttpInvoker
RequestBuilder
Generating many different version of
JavaScript on a per browser basis is known as what?
Deferred
Binding
JS
Binding
JSNI
Binding
UserAgent
Binding
To use RequestBuilder, which module do we need
to inherit:
com.google.gwt.request.Builder
com.google.gwt.http.HTTP
com.google.gwt.http.RequestBuilder
com.google.gwt.http.HTTPRequesBuilder
Which JAR has to be included in the
WEB-INF/lib for deployment?
gwt-servlet.jar
(All
of these)
gwt-user.jar
To reduce compilation time, permutations can
be used by configuring which property?
user.browser
user.gwt
user.permutation
user.agent
JSON objects can be handled as Overlay Types
by subclassing which?
JSONObject
JavaScriptObject
JSObject
JavaScriptOverlayObject
Do activities contain widgets or UI code?
They
can contain widgets, but not UI.
No.
Yes,
but only two at a time.
Yes,
only one or the other.
A RemoteService path can be annotated as:
@RemoteServicePath
@RemotePath
@RemoteServiceAsyncPath
@RemoteServiceRelativePath
When the client is invoking the code, how is
it referred to?
A
service.
A
command.
A
call.
A
reference.
Which class is responsible for publishing
click events?
Tick
class.
Button
class.
Click
class.
Mouse
class.
What feature us used to build XSRF protection?
The
XSRF build feature.
The
Token feature.
The
RpcToken feature.
The
XToken feature.
An Event can be fired on the Event Bus by
invoking:
HandlerManager.sendEvent()
EventBus.fireEvent()
HandlerManager.fireEvent()
GWT.sendEvent()
When using an asynchronous interface, what
must be created before making a remote call from the client?
A
dynamic interface.
A
static interface.
Another
asynchronous interface.
A
synchronous interface.
A Label widget in GWT translates to which HTML
asset?
div
span
Depends
on inline
Depends
on the version
To use ClientBundle, which module do we need
to inherit?
com.google.gwt.client.Resources
com.google.gwt.core.ClientBundle
com.google.gwt.resources.ClientBundle
com.google.gwt.resources.Resources
What W3C specification is used in creating
accessible programs with standardized DOM properties?
PBX
Aria.
Area.
DOM
For Internationalization, to create a
collection of formatted strings that accept parameters, which should be
extended?
ResourceBundle
Properties
Messages
MessageFormat
A native DOM Event can be captured using which
handler?
NativePreviewHandler()
NativeHandler()
NativeEventHandler()
NativePreviewEvent()
Where are XSRF tokens configured?
They
are not configured.
In
the web.conf file.
In
the conf.xml file.
In the
web.xml file.
The GWT Event Bus is built on top of:
EventHandlerManager
GWTEventManager
EventManager
HandlerManager
XMLHTTPRequests Same-Origin policy can be
overcome with:
JSON
JSON-SO
JSONP
JSON-XSR
What attribute depicts the behavior of a
widget?
Role.
Trim.
wAction.
Action.
Which of these is NOT a default CSS theme in
GWT?
Chrome
Standard
Default
Clean
A RemoteService is:
A
remote interface
A
service class
A
service interface
A
marker interface
Which of the following is an example of an
Aria or keyboard accessibility property?
TreeBar
TreeItem
TabMenu
MenuTree
To handle history events, we should implement:
ValueChangeHandler<String>
HistoryChangeHandler<String>
ValueChangeHandler<Event>
HistoryChangeHandler<Event>
Subscribe to:
Posts (Atom)