Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz 5

Total questions: 15

Worksheet time: 10mins

Name
Class
Date
1.

Classes are grouped into ___ to ease management of the system

a)

a) groups

b)

b) jar

c)

c) packages

2.

The MANIFEST.MF file tells the Java runtime ...

a)

a) the package organization

b)

b) the file contains the main method

c)

c) the class distribution

3.

The JAR file will be placed in the _____ director

a)

a) src

b)

b) dist

c)

c) META-INF

4.

A major performance penalty is paid in ____

a)

a) Client/Server Three-Tier Architecture

b)

b) MVC Architecture

c)

c) Client/Server Two-Tier Architecture

5.

____ clients tend to produce frequent network traffic for remote database access.

a)

a) Thin

b)

b) Thick

c)

c) Tall

6.

This architecture has a tier of presentation

a)

a) Client/Server Three-Tier Architecture

b)

b) Client/Server Two-Tier Architecture

7.

In Java the basic unit of reuse has been ____

a)

a) a package

b)

b) a Class

c)

c) a jar

8.

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)

a) 1- abstractions

2- behavior

b)

b) 1- behavior

2- methods

c)

c) 1- behavior

2- abstractions

d)

d) 1- methods

2- behavior

9.

_______ are the unit of distribution

a)

a) Methods

b)

b) Classes

c)

c) Packages

d)

d) JARs

10.

what is the base module for each java class?

a)

a) java.lang

b)

b) java.base

c)

c) java.util

11.

-The module system is usable at levels:

Select the options that are correct

a)

a) Applications

b)

b) Methods

c)

c) The JDK

d)

d) Classes

e)

e) Libraries

12.

In this file you can specify how the modules read each other

a)

a) module-resource

b)

b) module-info

c)

c) info-module

d)

d) resource-module

13.

Select all the sentences that are true

a)

a) Metadata that specifies the module’s dependencies, the packages the module makes available to other modules, and more

b)

b) The module declaration’s body can´t be empty

c)

c) Each module declaration begins with the keyword module

d)

d) Compiling the module declaration creates the module descriptor, which is stored in a file the module’s root folder.

14.

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)

a)

1)requires transitive

2)requires

3)exports…to

4)exports

b)

b)

1)exports

2)requires

3)exports…to

4)requires transitive

c)

c)

1)requires transitive

2)exports

3)exports…to

4)requires

d)

d)

1)exports

2)exports…to

3)requires transitive

4)requires

15.

What does REPL mean in JShell?

a)

a)

R. rewrite

E. evaluated

P. paint

L. loops

b)

b)

R. read

E. extract

P. printed

L. loops

c)

c)

R. read

E. evaluated

P. printed

L. loops

d)

d)

R. rewrite

E. extract

P. paint

L. loops