102,906 views
25 votes
25 votes
Which of the following best describes a comparison operator?

a. An operator that turns the Drivetrain for a specific angle.
b. A command that compares the color of a disk with the number of disks collected.
C. A control statement that uses Boolean statements as conditions.
d. An operator that compares two operands.

User Amalsalim
by
2.8k points

1 Answer

21 votes
21 votes

Answer:

C. A control statement that uses Boolean statements as conditions.

Step-by-step explanation:

Boolean value can either be True or False.

Control statements check if a certain condition is met. If it is then they evaluate to be true then the necessary lines of code are executed. If it evaluates to be False, the lines of code that were suppose to be executed are skipped.

For example, if y is greater than zero, divide x by y


if \: \: y > 0 :


a = (x)/(y)

User Msturdy
by
2.6k points