We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
411323, 1220
Started on Thursday, 2 March 2023, 1122 PM
State Finished
Completed on Thursday, 2 March 2023, 1131 PM
Time taken 9 mins 30 secs
Marks 20.00/20.00
Grade 100.00 out of 100.00,
ueston 1
Itis a good practice to name final variable in all CAPS.
Select one
a. False
b. Tew
weston 2
Mak 100 of 100
{Anal class can be inherited
Select one
a False
b. Te
ueston 3
Making a member static can access it without object,
Select one:
a They
b. False
tps: vimesiral amaesontine.com/2223A/modiquzirview php ?allempt=1747 36cm
Mister Quiz 1: tempt review
18411323, 120M Midterm Quiz 1: tempt review
ueston
I method parameters are declare final then the value of these parameters cannot be changed
Select one
2 False
b. Trew
verton 5
Mak 100 ot of 190
All variables declared in an interface are by default fina
Select one
a They
b. False
Iran access class varablesstatic variables) without using objectinstance) ofthe class
Selec
Class variables
b, Static methods
Class methods
d. Statc block
ueston 7
Mak 100 oot 190
{A final variable that isnot iniilized atthe time of declaration is known as
Select one
Local variable
». Final variable
Blank final variable
4d. Global variable
tps: vimesiral amaesontine.com/2223A/modiquzirview php ?allempt=1747 36cm411323, 120M
ueston B
\We can change the value of a final variable
Select one
a Tue
b. Falsew
veston 9
Mak 100 oof 190
{A final method cannot be overridden,
Select one
a They
b. False
veston 10
‘A constructor can be declared a5 fina
Selec
a Tue
b, Falsew
uesion 11
Mak 100 oof 90
A class can be made static only fits
Select one
2. Staticmethods
b. Nested methods
Static cass
1d. Nested class¥™
tps: vimesiral amaesontine.com/2223A/modiquzirview php ?allempt=1747 36cm
Midterm Quiz 1: tempt review
a6411323, 120M Midterm Quiz 1: tempt review
question 12
Itis common to all the instances (or objects ofthe class because it isa clas level variable.
Select one
2 State Keyword
b, Static Block
Static members
4. SaticvariableY
uerton 13
Itis used for initializing the static variables.
Select one
2 Static Keyword
b. State variable
Static members
State Block
ueston 14
finalizes used in exception handling
Select one
a False
b. Tue
Variables thats constants. This variable cannot be change once i is intiaized
Select one
13. Blank final variable
. Final variable
Global variable
1d. Local variable
tps: vimesiral amaesontine.com/2223A/modiquzirview php ?allempt=1747 36cm
406411323, 120M Midterm Quiz 1: tempt review
uesvon 16
Static variables are alo known a5
Select one
2 State Keyword
b. Glass variables
Static black
4d. Class methods
‘uerton 17
Local final variable must be intilzing during declaration
Select one
2 False
b. Tew
Question 18
‘class can have multiple Static blocs, which will execute inthe same sequence in which they have been written into the program.
Select one
a False
bo Tuew
‘weston 19
Mak 100 oot 190
Finally is 2 method that is called by JVM during garbage collection,
Select one
a Tue
b. Falsew
hitps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=1747368cm411323, 120M Midterm Quiz 1: tempt review
‘uesvon 20
It belong to the las instead of a specific instance, this means you can access it without object.
Select one
2 Static members¥”
b. Static Block
Static variable
Static Keyword
hitps:vimesiral amaesontine.com/2223A/modiquizireview php ?allempt=1747368cm