
Python Syntax and Logic Quiz

Quiz
•
Information Technology (IT)
•
8th Grade
•
Easy
Fadi Fadi
Used 3+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for an if statement in Python?
if x == 10:
if x => 10:
if (x == 10)
if x = 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does elif stand for?
Else-if
Else and If
Else Loop
If Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used for multiple conditions that must be true?
and
==
not
or
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is a valid use of or?
if x == 5 or y == 5:
if x == 5 or:
if x == 5 or y:
if or x == 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = 3, what will this print? if x == 3 or x == 4: print("Yes")
Yes
No
Error
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol means “not equal”?
!=
<>
~=
==!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will random.randint(1, 1) return?
Always 1
Error
A random number
0
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
INFORMATIKA KLS 8

Quiz
•
8th Grade
20 questions
Lower Elementary Quiz: Introduction to Computers

Quiz
•
2nd Grade - University
20 questions
Python Programming Quiz

Quiz
•
8th Grade
26 questions
Ch. 11 Exam Review

Quiz
•
8th Grade
25 questions
Soal Pilihan Ganda Microsoft Word

Quiz
•
8th Grade - University
20 questions
Quiz IT Cangkriman Hunter

Quiz
•
6th - 8th Grade
20 questions
Chapter 16 Exam Review

Quiz
•
8th Grade
23 questions
Computer Basics Quiz

Quiz
•
6th - 8th 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 Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

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

Quiz
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Fast Food Slogans

Quiz
•
6th - 8th Grade
10 questions
Parallel Lines Cut by a Transversal

Quiz
•
8th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
4 questions
End-of-month reflection

Quiz
•
6th - 8th Grade