
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
28 questions
Review Python_G8

Quiz
•
8th Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
20 questions
Ch. 10 Exam Review

Quiz
•
8th Grade
26 questions
Fun with Computers and Mice

Quiz
•
2nd Grade - University
20 questions
Javascript Quizz

Quiz
•
8th Grade
20 questions
SOAL UJIAN INFORMATIKA KELAS VIII

Quiz
•
8th Grade
20 questions
Python Programming Quiz

Quiz
•
8th Grade
19 questions
Quick Lookup - Printing Variables

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade