Python Control Structures (Unit 4 AP CSP)

Quiz
•
Computers
•
10th Grade
•
Hard
atty meyer
Used 50+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
After the following code runs, what is the value of is_weekend?
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What symbol represents the and operator in Python?
AND
and
&
&&
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What symbol represents the or operator in Python?
OR
or
I
I I
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the proper way to compare if two values are equal in a boolean expression in Python?
==
=
EQUALS
is
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the proper operator for “not equals” in Python?
=~
NOT EQUALS
=!
!=
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Assume you are writing a program, and you have a boolean variable called b, defined like so:
b = True
Pick the correct if statement to follow the code above. The if statement should be correct Python, and the body of the if statement should only run if b is True.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following programs will not print anything?
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python list, if

Quiz
•
6th - 12th Grade
17 questions
Unit 7 Review 1

Quiz
•
9th - 12th Grade
20 questions
SST Yr8 - NCCE - Programming

Quiz
•
9th - 12th Grade
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
19 questions
3.3.1/3.3.2 Levels of Programming Languages & Translators

Quiz
•
10th Grade
25 questions
evaluation 2

Quiz
•
10th Grade
25 questions
Introduction to Python

Quiz
•
KG - University
17 questions
Python

Quiz
•
6th - 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
10 questions
Proper Keyboarding Techniques

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

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade