Computer Science

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

What is a variable?

A variable is a named place in memory that stores a value.

2
New cards

Q2. What is a data type?

A: A data type describes what kind of data a value is (e.g., number, text, True/False).

3
New cards

Q3. Name three common data types.

integer, string, Boolean and float

4
New cards

Q4. What does int mean in Python?

Int stands for integer, which represents whole numbers (positive, negative, or zero) in Python.

5
New cards

Q8. What does elif mean?

A: elif means else if — another condition to check.

6
New cards

Q9. What data type stores True/False?

A: bool (boolean).

7
New cards

Q10. What is a syntax error?

A: When the code breaks the rules of the language (e.g., bad indentation, missing colon).

8
New cards

Q13. What is a string?

A: Text inside quotes, e.g., "hello".