Python Quiz

Python Quiz

University - Professional Development

25 Qs

quiz-placeholder

Similar activities

python revision

python revision

9th Grade

20 Qs

Hacker

Hacker

7th Grade

21 Qs

Python Quiz - BPLCK105B

Python Quiz - BPLCK105B

University

20 Qs

PYTHON TUPLE QUIZ

PYTHON TUPLE QUIZ

11th Grade

20 Qs

viva

viva

KG - University

20 Qs

UNIT1-PYTHON

UNIT1-PYTHON

University

20 Qs

Python

Python

University

20 Qs

Python Lists and Tuples

Python Lists and Tuples

11th - 12th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

University - Professional Development

Hard

Created by

sreenivas pasupuleti

Used 1K+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is Python a Case Sensitive Language?

Yes

No

May not be

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a invalid variable in Python

_a=1

__a=1

_str_=1

None of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is answer of this expression, 22 % 3 is?

7

1

0

5

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Mathematical operations can be performed on a string.

True

False

May not be

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following?

x = ['ab', 'cd']

for i in x:

i.upper()

print(x)

[‘ab’, ‘cd’].

[‘AB’, ‘CD’].

None of the above

[None, None]

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following?

i = 1

while True:

if i%2 == 0:

break

print(i)

i += 2

1

1 2

1 2 3 4 5 6...

1 3 5 7 9 11....

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following?

i = 0

while i < 5:

print(i)

i += 1

if i == 3:

break

else:

print(0)

0 1 2 0

0 1 2

error

none of the mentioned

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?