Python Coding Contest

Python Coding Contest

University

20 Qs

quiz-placeholder

Similar activities

python assesment

python assesment

University

15 Qs

C Loops

C Loops

University

25 Qs

Back-End Development - Quiz 1

Back-End Development - Quiz 1

University

20 Qs

Python-2&3rd quiz

Python-2&3rd quiz

University

15 Qs

Machine Learning Internship Quiz

Machine Learning Internship Quiz

University

15 Qs

quizz konsultasi mingguan pertemuan 13 -f-02

quizz konsultasi mingguan pertemuan 13 -f-02

University

15 Qs

PL SQL

PL SQL

University - Professional Development

20 Qs

Examen Introductorio de Estructura de datos en Python

Examen Introductorio de Estructura de datos en Python

University

16 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?