Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

University

15 Qs

quiz-placeholder

Similar activities

chapter 2

chapter 2

University

10 Qs

EIT Quiz 2

EIT Quiz 2

University

20 Qs

Session 2 - Hardware and Peripherals

Session 2 - Hardware and Peripherals

10th Grade - University

12 Qs

MOTD 2 DSE-C

MOTD 2 DSE-C

University

20 Qs

HCI Lesson 1 and 2 Summative Exam

HCI Lesson 1 and 2 Summative Exam

University

15 Qs

CS 11:QUIZ#2 (Basic Computer Programming)

CS 11:QUIZ#2 (Basic Computer Programming)

University

20 Qs

DBMS - Fundamentals

DBMS - Fundamentals

University

19 Qs

Roles of ICT in Learning

Roles of ICT in Learning

University

10 Qs

Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Alumni Education

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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’]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?