Python Coding Contest

Python Coding Contest

University

20 Qs

quiz-placeholder

Similar activities

Mechatronics

Mechatronics

University

18 Qs

PL SQL

PL SQL

University - Professional Development

20 Qs

CPP-3

CPP-3

University

20 Qs

C Programming - Quiz

C Programming - Quiz

University

20 Qs

Python Fundamentals - Episode 03

Python Fundamentals - Episode 03

University

20 Qs

python assesment

python assesment

University

15 Qs

BRAIN BUSTERS (ROUND2)

BRAIN BUSTERS (ROUND2)

University

20 Qs

Quiz Dasar-Dasar Pemrograman Python

Quiz Dasar-Dasar Pemrograman Python

12th Grade - University

15 Qs

Python Coding Contest

Python Coding Contest

Assessment

Quiz

Education

University

Hard

Created by

Narayanan G

Used 14+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?