Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

University

15 Qs

quiz-placeholder

Similar activities

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

python dictionary

python dictionary

University

10 Qs

Python Panda 2

Python Panda 2

11th Grade - Professional Development

10 Qs

Quiz on Tuples,Sets and Dictionaries

Quiz on Tuples,Sets and Dictionaries

University

20 Qs

Midterm Exam - DV - Part 1

Midterm Exam - DV - Part 1

University

20 Qs

IMS

IMS

University

10 Qs

Python-Day-3

Python-Day-3

12th Grade - University

15 Qs

Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

Assessment

Quiz

Computers

University

Hard

Created by

Alumni Education

Used 17+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is printed when the following code is written?

have

['have', 'fun']

fun

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

Media Image

What is the output of the following code?

HelloPython-

Hello-Python

-HelloPython

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?