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
Bahasa dan Software Compiler Pemrograman Mikrokontroler

Quiz
•
Professional Development
18 questions
Roblox quizz

Quiz
•
Professional Development
20 questions
LEATHER GOOD

Quiz
•
Professional Development
20 questions
Quiz on machine learning

Quiz
•
Professional Development
18 questions
FA - Control Accounts

Quiz
•
Professional Development
21 questions
Riddles

Quiz
•
KG - Professional Dev...
17 questions
GOOGLE CLASSROOM

Quiz
•
Professional Development
15 questions
Faculty Day FIOT KPI

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

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

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade