WorksheetsQuiz 5
Total questions: 15
Worksheet time: 10mins
Classes are grouped into ___ to ease management of the system
a) groups
b) jar
c) packages
The MANIFEST.MF file tells the Java runtime ...
a) the package organization
b) the file contains the main method
c) the class distribution
The JAR file will be placed in the _____ director
a) src
b) dist
c) META-INF
A major performance penalty is paid in ____
a) Client/Server Three-Tier Architecture
b) MVC Architecture
c) Client/Server Two-Tier Architecture
____ clients tend to produce frequent network traffic for remote database access.
a) Thin
b) Thick
c) Tall
This architecture has a tier of presentation
a) Client/Server Three-Tier Architecture
b) Client/Server Two-Tier Architecture
In Java the basic unit of reuse has been ____
a) a package
b) a Class
c) a jar
Java has good mechanisms for promoting reuse of a class:
1- Inheritance for reusing ...
2- Interfaces for reusing ....
Complete the sentences in the correct order
a) 1- abstractions
2- behavior
b) 1- behavior
2- methods
c) 1- behavior
2- abstractions
d) 1- methods
2- behavior
_______ are the unit of distribution
a) Methods
b) Classes
c) Packages
d) JARs
what is the base module for each java class?
a) java.lang
b) java.base
c) java.util
-The module system is usable at levels:
Select the options that are correct
a) Applications
b) Methods
c) The JDK
d) Classes
e) Libraries
In this file you can specify how the modules read each other
a) module-resource
b) module-info
c) info-module
d) resource-module
Select all the sentences that are true
a) Metadata that specifies the module’s dependencies, the packages the module makes available to other modules, and more
b) The module declaration’s body can´t be empty
c) Each module declaration begins with the keyword module
d) Compiling the module declaration creates the module descriptor, which is stored in a file the module’s root folder.
Select the correct order of the definitions
1) _____ module directive specifies one of the module’s packages whose public types should be accessible to code in all other modules.
2) ____ module directive specifies that this module depends on another module.
3) _____ module directive enables you to specify in a comma-separated list precisely which module’s or modules’ code can access the exported package.
4) ____module directive specify a dependency on another module and to ensure that other modules reading your module also read that dependency known as implied readability.
a)
1)requires transitive
2)requires
3)exports…to
4)exports
b)
1)exports
2)requires
3)exports…to
4)requires transitive
c)
1)requires transitive
2)exports
3)exports…to
4)requires
d)
1)exports
2)exports…to
3)requires transitive
4)requires
What does REPL mean in JShell?
a)
R. rewrite
E. evaluated
P. paint
L. loops
b)
R. read
E. extract
P. printed
L. loops
c)
R. read
E. evaluated
P. printed
L. loops
d)
R. rewrite
E. extract
P. paint
L. loops
