Python - Quiz

Quiz
•
Other
•
Professional Development
•
Hard
Joel Soloman
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to create an empty list in Python?
list = []
list = {}
list = ()
list = [None]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
"py"
"th"
"tho"
"ho"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 2 ** 3?
8
6
2
12
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the " != " operator represent in Python?
Less than or equal to
Equal to
Not equal to
Greater than or equal to
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
2.0
2.5
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'len()' function return when applied to a string in Python?
The number of characters in the string
The first character of the string
The last character of the string
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is unordered in Python?
List
Dictionary
Set
Tuple
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Logical and Programming Questions

Quiz
•
Professional Development
20 questions
KODTEST | Python Course

Quiz
•
Professional Development
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
15 questions
PYTHON BASICS

Quiz
•
Professional Development
20 questions
CSS Unit 1

Quiz
•
Professional Development
15 questions
Piano Basics #1

Quiz
•
Professional Development
15 questions
Python Basics Quiz

Quiz
•
Professional Development
15 questions
DBMS CSEDS

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade