Java Quiz#1 (Static variables)

Quiz
•
Science
•
University
•
Medium
Swarup Sarkar
Used 22+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For "static" variable default value will be provided by
A. JVM
B. Compiler
C. Programmer
D. Client
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"static" variable must be declared inside
A. method
B. class
C. block.
D. All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"static" variable will be cretaed
A. At the time of object creation
B. At the time of class loading
C. Both at class loading and at the time of object creation
D. None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who is responsible for creating ".class " file
A. JVM
B.java compiler
C. Programmer
D. Server
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For any static type reference variable default value is
A. 0
B. null
C. Garbage Value
D. -1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the value of the variable doesn't changes from object to object such type of variables are called as ________variable.
A. non-static
B. static
C. local
D.global
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For static variable how many copies will be created?
A. Only one copy
B. No copy
C.As many object will be created
D. None of these
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Force and Motion

Quiz
•
5th Grade - University
15 questions
Static Electricity vs Human-Harnessed Electricity

Quiz
•
5th Grade - University
15 questions
Dynamic Parameters and Principles

Quiz
•
12th Grade - University
15 questions
Science Electricity and Magnetism Vocabulary

Quiz
•
5th Grade - University
15 questions
Static and Kinetic Friction

Quiz
•
8th Grade - University
15 questions
Kinds of Friction

Quiz
•
6th Grade - University
15 questions
Friction

Quiz
•
5th Grade - University
15 questions
Force and Friction

Quiz
•
8th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University