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 Baics

Quiz
•
10th - 11th Grade
20 questions
Surprise Quiz !!!!

Quiz
•
10th Grade
18 questions
LO13 Lesson 6

Quiz
•
10th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
19 questions
Python Year 9 Quiz

Quiz
•
8th - 10th Grade
25 questions
Introduction to Python

Quiz
•
KG - University
17 questions
Python

Quiz
•
6th - 10th Grade
25 questions
CSP Python Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade