Comparison Operators Quiz

Comparison Operators Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

String Manipulation Quiz

String Manipulation Quiz

10th - 11th Grade

10 Qs

Data Representation - Character Sets

Data Representation - Character Sets

2nd - 12th Grade

10 Qs

C++ Basics

C++ Basics

7th - 12th Grade

10 Qs

AP Computer Science Final Review

AP Computer Science Final Review

10th - 12th Grade

15 Qs

A/P Computer Science Exam Review

A/P Computer Science Exam Review

10th - 12th Grade

15 Qs

Project STEM Computer Science Principles

Project STEM Computer Science Principles

9th - 12th Grade

15 Qs

APCSA Unit 4

APCSA Unit 4

10th - 12th Grade

15 Qs

Code.org AP CSP Unit 4

Code.org AP CSP Unit 4

9th - 12th Grade

15 Qs

Comparison Operators Quiz

Comparison Operators Quiz

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Michael Alves

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the comparison X < Y if X is 10 and Y is 15?

Not Comparable

False

True

Equal

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for checking if two things are equal to each other?

<=

!=

==

=

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a user enters the age 22, what will be the value of the variable 'old enough' if the comparison is 'age > 18'?

False

True

Not Comparable

Equal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the comparison 'grade >= 80 and grade < 90' if the user enters the grade 85?

True

False

Not Comparable

Equal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two strings are not equal to each other?

>

!=

<

==

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the comparison 'string1 < string2' if string1 would appear earlier in the dictionary than string2?

Not Comparable

Equal

False

True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the order that Python considers characters in strings, where do all digits come?

Before letters

After letters

Not Comparable

Between letters

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?