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
Q 1 - Que signifie GWT?
Réponse: B
Explication
GWT signifie Google Web Toolkit.
Q 2 - Lequel des énoncés suivants est correct à propos de GWT?
B - GWT fournit aux développeurs la possibilité d'écrire une application côté client en JAVA.
Réponse: D
Explication
Toutes les options ci-dessus sont correctes.
Q 3 - Lequel des énoncés suivants est correct à propos de GWT?
R - L'application écrite en GWT est compatible avec tous les navigateurs.
B - GWT génère automatiquement du code javascript adapté à chaque navigateur.
C - GWT est open source et est sous licence Apache License version 2.0.
Réponse: D
Explication
Toutes les options ci-dessus sont correctes.
Q 4 - Lequel des énoncés suivants est correct à propos de GWT?
Réponse: D
Explication
Toutes les options ci-dessus sont correctes.
Q 5 - Laquelle des affirmations suivantes est vraie à propos de GWT?
Réponse: C
Explication
Les deux options ci-dessus sont correctes.
Q 6 - Lequel des énoncés suivants est correct à propos de GWT?
Réponse: C
Explication
Les deux options ci-dessus sont correctes.
Q 7 - Lequel des énoncés suivants décrit correctement l'inconvénient du GWT?
Réponse: C
Explication
Les deux options ci-dessus sont correctes.
Q 8 - Lequel des éléments suivants n'est pas un élément central du cadre GWT?
A - Compilateur GWT Java vers JavaScript
B - Bibliothèque d'émulation JRE
C - Bibliothèque de construction de l'interface utilisateur GWT
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?
Answer : C
Explaination
Server-side code is a optional part of a GWT application.
Q 10 - Which of the following is correct about module descriptors in GWT application?
B - A module descriptor file extension is *.gwt.xml.
C - * in *.gwt.xml is the name of the application and this file should reside in the project's root.
Answer : D
Explaination
All of the above options are correct.
Q 11 - What is the purpose of 'module' tag in *.gwt.xml file in GWT?
A - This provides name of the application.
C - This specifies the name of class which will start loading the GWT Application.
Answer : A
Explaination
'module' tag in *.gwt.xml file provides name of the application.
Q 12 - What is the purpose of 'inherits' tag in *.gwt.xml file in GWT?
A - This provides name of the application.
C - This specifies the name of class which will start loading the 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.
Q 13 - What is the purpose of 'entry-point' tag in *.gwt.xml file in GWT?
A - This provides name of the application.
C - This specifies the name of class which will start loading the GWT Application.
Answer : C
Explaination
'entry-point' tag in *.gwt.xml file specifies the name of class which will start loading the GWT Application.
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?
Answer : B
Explaination
onModuleLoad() function gets called and acts similar to main method of a java application.
Q 16 - What is the purpose of 'source' tag in *.gwt.xml file in GWT?
D - This automatically injects the external CSS file located at the location specified by src.
Answer : A
Explaination
'source' tag in *.gwt.xml file specifies the names of source folders which GWT compiler will search for source compilation.
Q 17 - What is the purpose of 'public' tag in *.gwt.xml file in GWT?
D - This automatically injects the external CSS file located at the location specified by src.
Answer : B
Explaination
'public' tag in *.gwt.xml file specifies the place in your project where static resources referenced by your GWT module, such as CSS or images, are stored.
Q 18 - What is the purpose of 'script' tag in *.gwt.xml file in GWT?
D - This automatically injects the external CSS file located at the location specified by src.
Answer : C
Explaination
'script' tag in *.gwt.xml file automatically injects the external JavaScript file located at the location specified by src.
Q 19 - What is the purpose of 'stylesheet' tag in *.gwt.xml file in GWT?
D - This automatically injects the external CSS file located at the location specified by src.
Answer : D
Explaination
'stylesheet' tag in *.gwt.xml file automatically injects the external CSS file located at the location specified by src.
Q 20 - What is default public path for static resources in GWT application?
A - public subdirectory underneath where the Module XML File is stored.
B - public subdirectory underneath where the client source files are stored.
C - public subdirectory underneath where the server source files are stored.
Answer : A
Explaination
The default public path is the public subdirectory underneath where the Module XML File is stored.
Q 21 - Which of the following is correct about entry-point class?
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.
Q 22 - What is *.nocache.js file in GWT?
A - It contains the javascript code required to resolve deferred binding configuarations.
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.
Q 23 - What is *.cache.html file in GWT?
A - It contains the actual program of a GWT application.
Answer : A
Explaination
*.cache.html contains the actual program of a GWT application.
Q 24 - Which of the following is true about bootstrap procedure of a GWT Application?
Answer : D
Explaination
All of the above options are correct.
Q 25 - Why should a .nocache.js file never be cached?
B - browser should always download the .nocache.js file to get the latest 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 |