Programming Fundamentals & Data Types (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
What are the three main types of operators?
What are the three main types of operators?
Arithmetic, comparison, and Boolean
What does the MOD operator do?
What does the MOD operator do?
Returns the remainder of a division
What does the DIV operator do?
What does the DIV operator do?
Returns the integer part of a division
What symbol represents exponentiation?
What symbol represents exponentiation?
^
What type do comparison operators return?
What type do comparison operators return?
Boolean value (True or False)
What does the == operator check?
What does the == operator check?
If two values are the same
What does the != operator check?
What does the != operator check?
If two values are different
When does the AND operator return True?
When does the AND operator return True?
Both conditions are True
When does the OR operator return True?
When does the OR operator return True?
At least one condition is True
What does the NOT operator do?
What does the NOT operator do?
Reverses the Boolean value
What is the purpose of arithmetic operators?
What is the purpose of arithmetic operators?
Perform mathematical calculations
What is the purpose of comparison operators?
What is the purpose of comparison operators?
Compare values and return True or False
What is the purpose of Boolean operators?
What is the purpose of Boolean operators?
Combine or reverse conditions
