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
10 questions
Quiz Meet 1 Mini SC Programing

Quiz
•
University
15 questions
PROG2013_Quiz_Unit1a

Quiz
•
University
11 questions
prgramming

Quiz
•
6th Grade - University
10 questions
Aula 4 - IC

Quiz
•
University
15 questions
Bài 25

Quiz
•
10th Grade - University
15 questions
Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz
•
7th Grade - University
15 questions
Bài 26

Quiz
•
10th Grade - University
10 questions
Quiz 4

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University