- GWT Tutorial
- GWT - Home
- GWT - Overview
- GWT - Environment Setup
- GWT - Applications
- GWT - Create Application
- GWT - Deploy Application
- GWT - Style with CSS
- GWT - Basic Widgets
- GWT - Form Widgets
- GWT - Complex widgets
- GWT - Layout Panels
- GWT - Event Handling
- GWT - Custom Widgets
- GWT - UIBinder
- GWT - RPC Communication
- GWT - JUnit Integration
- GWT - Debugging Application
- GWT - Internationalization
- GWT - History Class
- GWT - Bookmark Support
- GWT - Logging Framework
- GWT Useful Resources
- GWT - Questions and Answers
- GWT - Quick Guide
- GWT - Useful Resources
- GWT - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
GWT Mock Test
This section presents you various set of Mock Tests related to GWT. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
GWT Mock Test I
Q 1 - What GWT stands for?
Answer : B
Explaination
GWT stands for Google Web Toolkit.
Q 2 - Which of the following is correct about GWT?
A - Google Web Toolkit (GWT) is a development toolkit to create RICH Internet Application(RIA).
B - GWT provides developers option to write client side application in JAVA.
C - GWT compiles the code written in JAVA to JavaScript code.
Answer : D
Explaination
All of the above options are correct.
Q 3 - Which of the following is correct about GWT?
A - Application written in GWT is cross-browser compliant.
B - GWT automatically generates javascript code suitable for each browser.
C - GWT is open source and is licensed under the Apache License version 2.0.
Answer : D
Explaination
All of the above options are correct.
Q 4 - Which of the following is correct about GWT?
B - GWT provides easy integration with Junit and Maven.
C - GWT provides Widgets library provides most of tasks required in an application.
Answer : D
Explaination
All of the above options are correct.
Q 5 - Which of the following is true about GWT?
A - GWT is extensible and custom widget can be created to cater to application needs.
Answer : C
Explaination
Both of the above options are correct.
Q 6 - Which of the following is correct about GWT?
A - GWT is extensible and custom widget can be created to cater to application needs.
Answer : C
Explaination
Both of the above options are correct.
Q 7 - Which of the following correctly describes the disadvantage of GWT?
Answer : C
Explaination
Both of the above options are correct.
Q 8 - Which of the following is not a core component of GWT framework?
Answer : D
Explaination
Web Browser is not a core component of GWT framework.
Q 9 - Which of the following is not a mandatory component of GWT application?
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 |