stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
comparison Operators Flashcards | StudBud
Explore
/
comparison Operators
comparison Operators
13 terms
·
StudBud Administration
Imported from external platform
Flashcards
13 cards
F
Practice quiz
P
Host live
L
Questions
13
Answers
1
Which of the following are python operators?
== , !=
all of the above
>=, <=
<, >
2
definition of a comparison in python?
operators that are used to perform mathematical operations like addition
statement that can either be true or false
is the operator that is used to assign values to variables
compares the values of two operands and returns True or False
3
Which is TRUE?
5 < 3
-10 > 20
5> 3
-7 > -4
4
5!=6
False
True
5
Which is False?
5 != 3
-7 < -4
5> 3
-10 == 10
6
Which is False?
-10 < 20
-7 < -4
5 < 3
5> 3
7
Comparison operators are used for the following purpose:
To compare two values
To add two integers
To multiply two values
To compare two statements
8
1000>=1000
False
True
9
1000<=1000
False
True
10
What are relational operators?
Relational Operators are used to compare values of two expressions.
Relational Operators are used to compare the output and the input.
Relational Operators are used to find errors in numerical coding.
Relational Operators are used to identify a value/variable.
11
Which is TRUE?
-10 > 20
5> 3
5 < 3
-7 > -4
12
What does the following comparison operators do(Python)?
Assignment
Add
Divide
Equal
13
4==4
False
True