
Java Static_NonStatic
Authored by Murali Sukumar
Education
Professional Development
Used 104+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
How to declare a Static variable
int a= 10;
static a= 200;
static int a= 100;
2.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Static variable is a Global variable
True
False
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
NonStatic Variable is a Local Variable
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Where can we declare a Static Variable
inside main function
outside main function
5.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Where can we declare a nonStatic Variable
inside main function
outside main function
6.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Where can we declare Local Variable
inside main function
outside main function
7.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Can static and nonStatic variables declared as public
Yes
No
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?