Python Coding Contest

Python Coding Contest

University

20 Qs

quiz-placeholder

Similar activities

CPP-3

CPP-3

University

20 Qs

Round 2

Round 2

University

15 Qs

Examen Introductorio de Estructura de datos en Python

Examen Introductorio de Estructura de datos en Python

University

16 Qs

TEST 1_2023 05_BEN2083 Environmental Software and Applications

TEST 1_2023 05_BEN2083 Environmental Software and Applications

University

15 Qs

Python Assignment 1

Python Assignment 1

University

20 Qs

Python Fundamentals - Episode 01

Python Fundamentals - Episode 01

University

20 Qs

PL SQL

PL SQL

University - Professional Development

20 Qs

A Quiz on C Programming

A Quiz on C Programming

University

20 Qs

Python Coding Contest

Python Coding Contest

Assessment

Quiz

Education

University

Hard

Created by

Narayanan G

Used 15+ 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?