Test simulé GWT

Cette section vous présente divers ensembles de tests simulés liés à GWT. Vous pouvez télécharger ces exemples de tests simulés sur votre ordinateur local et les résoudre hors ligne à votre convenance. Chaque test fictif est fourni avec une clé de test fictif pour vous permettre de vérifier le score final et de noter vous-même.

Test simulé GWT I

Réponse: B

Explication

GWT signifie Google Web Toolkit.

Réponse: D

Explication

Le navigateur Web n'est pas un composant essentiel du framework GWT.

Q 9 - Lequel des éléments suivants n'est pas un élément obligatoire de l'application GWT?

A - Descripteurs de module

B - Ressources publiques

C - Server-side code

D - Client-side code

Answer : C

Explaination

Server-side code is a optional part of a GWT application.

Answer : B

Explaination

'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.

Answer : C

Explaination

'entry-point' tag in *.gwt.xml file specifies the name of class which will start loading the GWT Application.

Q 14 - Can you have multiple entry-point classes in a *.gwt.xml file?

A - true

B - false

Answer : A

Explaination

Yes! Any number of entry-point classes can be added.

Q 15 - Which method of a entry-point class is called when GWT application starts?

A - main()

B - onModuleLoad()

C - process()

D - execute()

Answer : B

Explaination

onModuleLoad() function gets called and acts similar to main method of a java application.

Answer : A

Explaination

The default public path is the public subdirectory underneath where the Module XML File is stored.

Answer : C

Explaination

A module entry-point is any class that is assignable to EntryPoint and that can be constructed without parameters. When a module is loaded, every entry point class is instantiated and its EntryPoint.onModuleLoad() method gets called.

Answer : C

Explaination

*.nocache.js file contains the javascript code required to resolve deferred binding configuarations (for example, browser detection) and to use lookup table generated by GWT compiler to locate one of the .cache.html.

Answer : A

Explaination

*.cache.html contains the actual program of a GWT application.

Answer : C

Explaination

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.

Answer Sheet

Question Number Answer Key
1 B
2 D
3 D
4 D
5 C
6 C
7 C
8 D
9 C
10 D
11 A
12 B
13 C
14 A
15 B
16 A
17 B
18 C
19 D
20 A
21 C
22 C
23 A
24 D
25 C