What is printed when the following code is written?
Py-Hackathon - Week 2 - Day 2

Quiz
•
Computers
•
University
•
Hard
Alumni Education
Used 17+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
have
['have', 'fun']
fun
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the following list function?
[10, 20, 30, 40, 50, 60][10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60][10, 20, 30, 40, 50, 60, 60]
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the following code?
HelloPython-
Hello-Python
-HelloPython
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the following list function?
[20, 30, 40, 50][10, 20, 40]
[10, 20, 30, 40][10, 20, 30, 50]
[10, 20, 30, 40][10, 20, 40]
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Select the correct way to print Emma’s age.
student[0][1]
student[1][“age”]
student[0][“age”]
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Select correct ways to create an empty dictionary.
sampleDict = {}
sampleDict = dict()
sampleDict = dict{}
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Select the correct way to access the value of a history subject.
sampleDict[‘class’][‘student’][‘marks’][‘history’]
sampleDict[‘class’][‘student’][‘marks’][1]
sampleDict[‘class’][0][‘marks’][‘history’]
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python-Lists_Dictionaries

Quiz
•
University
15 questions
Python revision

Quiz
•
10th Grade - University
10 questions
PYTHON PROGRAMMING

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
10 questions
Maths Day 2

Quiz
•
University
10 questions
Research Design

Quiz
•
University
16 questions
Tableau Public #2 - Chart #1

Quiz
•
University
20 questions
COMP177 Module 3 Quiz

Quiz
•
University
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