Python Programming Quiz

Quiz
•
Information Technology (IT)
•
University
•
Easy
Darren Hong
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the correct way to define a function in Python?
function myFunc():
def myFunc():
func myFunc():
define myFunc():
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which data type is immutable in Python?
List
Dictionary
String
Set
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to check if "apple" exists as a key in fruits = {"apple": 1, "banana": 2}?
"apple" in fruits
fruits.has_key("apple")
"apple" exists in fruits
if fruits("apple"):
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the output of bool([]) in Python?
True
False
None
Error
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which statement is used to handle exceptions in Python?
catch
try-except
error
handle
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the result of 3 * "Python"?
"PythonPythonPython"
["Python", "Python", "Python"]
Error
("Python", "Python", "Python")
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Is Python a case-sensitive language?
Yes
No
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Графічний інтерфейс Python

Quiz
•
12th Grade - University
10 questions
ITEC 95:QUANTITATIVE RESEARCH QUIZ 1

Quiz
•
University
10 questions
Software y Hardware

Quiz
•
University
13 questions
Matploblib en Python

Quiz
•
University
13 questions
Introduction To Programming - Lesson Exception Handling

Quiz
•
11th Grade - University
10 questions
ITKKU02

Quiz
•
University
10 questions
Scratch - základy

Quiz
•
6th Grade - University
16 questions
Understanding Assembly Language , Algorithms ,pseudocode

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University