Java Quiz#1 (Static variables)

Quiz
•
Science
•
University
•
Medium
Swarup Sarkar
Used 18+ 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
Science Pass

Quiz
•
4th Grade - University
15 questions
Friction

Quiz
•
6th Grade - University
14 questions
Forces Vocabulary #2 Review

Quiz
•
9th Grade - University
15 questions
Open Sci Ed

Quiz
•
6th Grade - University
15 questions
Pass Science

Quiz
•
4th Grade - University
15 questions
Scientific Measurement

Quiz
•
8th Grade - University
15 questions
Amplify Science Review

Quiz
•
4th Grade - University
15 questions
Scientific Investigations Review

Quiz
•
6th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade