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 what a variable is.
Think about a box that can hold different items.
What is the main purpose of a constant?
Consider where you would use a number that never changes, like π.
What is a variable?
Think about the flexibility of values in a program.
True or False: Constants can be changed during program execution.
Reflect on the definition of constants.
Write a program snippet that uses both variables and constants to calculate the area of a circle, considering the radius as user input.
Think about the formula for area = πr² and how to implement it in code.
Create a scenario where mistakenly changing a constant would lead to an error. Then, explain how that error could impact the program.
Reflect on situations that involve limits, like user registrations or rates.
6 more questions in this section. Enroll free to practise them all.
Enroll free