Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a variable in programming?
Think of it as a container for information.
Write a valid variable name in Java.
Remember the naming rules!
What is a variable?
Consider what a variable holds.
True or False: Variable names can start with a digit.
What do the naming rules state?
Write a piece of code that declares three variables of different types and prints them. Ensure one of the variable names violates a naming rule and explain why it’s incorrect.
Recall the naming rules we've discussed.
Create a short program consisting of variables for a student's name, age, and score. Then, print the details. Make sure to follow the variable naming rules.
Think of your variable names and data types carefully.
6 more questions in this section. Enroll free to practise them all.
Enroll free