Comparison Operators Quiz

Quiz
•
Computers
•
11th Grade
•
Medium

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
Similar Resources on Wayground
13 questions
Strings em C

Quiz
•
11th Grade
15 questions
Computer Science Review

Quiz
•
10th - 12th Grade
15 questions
HTML Quiz

Quiz
•
7th - 12th Grade
10 questions
Introduction to Python Quiz

Quiz
•
8th Grade - University
15 questions
8525 AQA GCSE 3.2.1 Data Types

Quiz
•
10th - 11th Grade
10 questions
Mastering Python String Techniques

Quiz
•
9th - 12th Grade
15 questions
AP Computer Science Principles Unit 4 Review

Quiz
•
9th Grade - University
13 questions
Python Operators & Expressions

Quiz
•
8th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade