Python If Statements - and or not
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Alexander Anderson
Used 17+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will execute the block of code if the variable `a` is equal to 10?
if a = 10:
if a == 10:
if a != 10:
if a > 10:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character must be at the end of the line for if?
:
;
.
{
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code snippet print:
equal
equal
not equal
not equal
syntax error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code snippet print:
Yes
indentation error
yes
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax to check if two values are not equal in Python?
!==
!=
==
<>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an if statement to check if `x` is greater than 10?
if x > 10:
if x is > 10:
if x >> 10:
if x gt 10:
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
not ( 7 == 8 )
True
False
Error
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Sinh hoạt lớp Tuần 7
Quiz
•
1st Grade - University
15 questions
HTML
Quiz
•
8th - 12th Grade
15 questions
หน่วยที่2การสร้างมูลค่าเพิ่มให้ผลิตภัณฑ์หรือบริการ
Quiz
•
11th Grade - University
12 questions
BAB 4. Pengantar Jaringan Komputer dan Internet
Quiz
•
11th Grade
15 questions
ASK F1: Ulangkaji Akhir Tahun
Quiz
•
1st - 12th Grade
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
