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