Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
Define a variable called 'temperature' and assign it the value 20.
Remember to use the equals sign for assignment.
What data type would the variable 'username' likely be?
Think about what kind of data usernames usually represent.
What is a variable in programming?
Recall how variables are used to represent data.
Which of the following is a valid variable name?
Consider the naming rules for variables.
Create a program that takes input from the user for their name and age, then prints a message. What variables would you need?
Think about what kind of data you are collecting.
If you have a variable called 'weight' that holds a float and you want to convert it into an integer, how would you do that?
Remember the casting types in programming.
5 more questions in this section. Enroll free to practise them all.
Enroll free