Which of the following is NOT a valid Python data type?
Python variables and operators quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Brett Kottmann
Used 20+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
float
int
str
positive
2.
DRAG AND DROP QUESTION
20 sec • 5 pts
To test whether one number is greater than or equal to another, you would use the (a) conditional operator.
Answer explanation
To combine two operators, just put them next to each other. Thus "greater than or equal to" combines greater than (>) and equal (=): >=
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Which of the following is a valid Python assignment statement?
x = 3
x := 3
x == 3
x <- 3
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What is the correct Python syntax to output the type of a variable?
print(type(x))
print(typeof(x))
print(typeof x)
print(type x)
5.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
How do you insert COMMENTS in Python code?
// this is a comment
/* this is a comment */
# this is a comment
-- this is a comment
6.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Which of the following is NOT a Python keyword?
for
while
loop
if
Answer explanation
7.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Which of the following will prompt a user for input and assign that input to a variable?
x = input("Please enter your name: ")
x = get(input)
x = prompt("Enter your name: ")
x = "Please enter your name: "
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
15 questions
Python Revision Tour - I

Quiz
•
12th Grade
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
20 questions
Data Science (Quiz in Python)

Quiz
•
11th Grade
16 questions
Python basics

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University