Java Quiz#1 (Static variables)

Java Quiz#1 (Static variables)

University

10 Qs

quiz-placeholder

Similar activities

TASA ANUALIZADA

TASA ANUALIZADA

University

10 Qs

Atmosphere Interactions with Sun & Earth & Elements of Weather

Atmosphere Interactions with Sun & Earth & Elements of Weather

7th Grade - University

10 Qs

namya's quiz

namya's quiz

KG - Professional Development

10 Qs

Nhu cầu không khí của thực vât

Nhu cầu không khí của thực vât

KG - University

15 Qs

صيغ المعادلات الكيميائية

صيغ المعادلات الكيميائية

1st Grade - University

10 Qs

Uji Kempetensi Gerak Benda dan Makhluk Hidup di Lingkungan

Uji Kempetensi Gerak Benda dan Makhluk Hidup di Lingkungan

University

10 Qs

Dasar- Dasar Manajemen C

Dasar- Dasar Manajemen C

University

10 Qs

CGT and CWT

CGT and CWT

University

13 Qs

Java Quiz#1 (Static variables)

Java Quiz#1 (Static variables)

Assessment

Quiz

Science

University

Practice Problem

Medium

Created by

Swarup Sarkar

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Science