Java Variable Types: Static, Instance & Local

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

Which type of variable requires a keyword to determine its scope?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. What type of variable is 'shiftLength' in the following code?

2. Which type of variable commonly stores attributes of individual objects?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

The topic of this worksheet/quiz will be variable types in Java. Questions cover areas such as how to identify and use static, local, and instance variables.

Quiz & Worksheet Goals

These tools will help you to:

  • Identify a type of variable with information relative to individual objects
  • Name the type of variable with method parameters
  • Determine what kind of variable you'd use in a given scenario
  • Choose which type of variable requires a keyword

Skills Practiced

  • Information recall - access the knowledge you've gained regarding the characteristics of each of the variables
  • Reading comprehension - ensure that you draw the most important information from the related lesson on variable types in Java
  • Knowledge application - use your knowledge to identify types of variables in a given section of code

Additional Learning

The lesson named Java Variable Types: Static, Instance & Local will address the subsequent points of interest in detail:

  • Where variables can be seen
  • How that is related to 'scope'
  • The three types of variables
  • Examples of using all the variable types
Support