
Understanding If Statements and Relational Operators

Interactive Video
•
Computers
•
6th - 8th Grade
•
Hard

Liam Anderson
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of relational operators in programming?
To store data in variables
To test the values of numbers
To perform arithmetic operations
To print output to the console
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to convert a string input to an integer in Python?
int()
input()
float()
str()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the program print if the temperature input is -5?
It is cold
It is warm
It is freezing
It is hot
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the temperature is 15, what will the program output?
It is cold
It is hot
It is freezing
It is warm
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when the first number is 56 and the second number is 6?
First is not the biggest
First is biggest
Both numbers are equal
Second is biggest
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should the program do if both numbers entered are the same?
Print 'First is not the biggest'
Print 'First is biggest'
Print 'Both numbers are equal'
Print 'Second is biggest'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which relational operator is used to check if two values are not equal?
>=
<=
!=
==
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Operator Notation and Precedence Concepts

Interactive video
•
9th - 10th Grade
11 questions
JavaScript Operators and Functions

Interactive video
•
6th - 10th Grade
11 questions
Understanding Mathematical and Comparison Operators

Interactive video
•
6th - 10th Grade
11 questions
Understanding Symmetry in Mathematics

Interactive video
•
6th - 8th Grade
11 questions
Understanding Operators and Variables

Interactive video
•
4th - 7th Grade
6 questions
The Front-End Web Developer Bootcamp - HTML, CSS, JS, and React - If Else If Statement

Interactive video
•
9th - 10th Grade
8 questions
10 Math Concepts for Programmers

Interactive video
•
9th - 10th Grade
11 questions
Decision Support Systems Concepts

Interactive video
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade