Python Coding Contest

Python Coding Contest

University

20 Qs

quiz-placeholder

Similar activities

GAM-1-Regresión Simple-IGEM

GAM-1-Regresión Simple-IGEM

University

20 Qs

Transitions and grammar

Transitions and grammar

9th Grade - University

20 Qs

Digital Electronics

Digital Electronics

University

15 Qs

Foundations of Education Quiz

Foundations of Education Quiz

University

15 Qs

Games Summer Course Day 1

Games Summer Course Day 1

University

15 Qs

Phrasal verbs

Phrasal verbs

University

16 Qs

General Knowledge Quiz

General Knowledge Quiz

4th Grade - University

15 Qs

CONQUISTANDO MINHAS FIGURINHAS

CONQUISTANDO MINHAS FIGURINHAS

9th Grade - University

15 Qs

Python Coding Contest

Python Coding Contest

Assessment

Quiz

Education

University

Practice Problem

Hard

Created by

Narayanan G

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Who developed Python Programming Language?

Elon Musk
Mark Zuckerberg
Bill Gates
Guido van Rossum

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python function?

len(["hello",2, 4, 6])

5
3

Error

4

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code snippet if x=1?

x<<2

2
4
6
8

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python statement?

>>>"a"+"bc"

bc

abc

a

bca

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of the following is not a keyword in Python language?

pass

eval

assert

nonlocal

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code?

class tester:

def init(self, id):

self.id = str(id)

id="224"

>>>temp = tester(12)

>>>print(temp.id)

224

12

None

tester

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python program?

z=set('abc')

z.add('san')

z.update(set(['p', 'q']))

z

{‘a’, ‘c’, ‘c’, ‘p’, ‘q’, ‘s’, ‘a’, ‘n’}

{‘abc’, ‘p’, ‘q’, ‘san’}

{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}

{‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?