Python Quiz

Python Quiz

University - Professional Development

25 Qs

quiz-placeholder

Similar activities

Pretest TIK

Pretest TIK

10th Grade

20 Qs

MOTD 2 DSE-C

MOTD 2 DSE-C

University

20 Qs

News and computers today revision

News and computers today revision

4th Grade

20 Qs

QUIZ NO.2 (3RD GRADING)MULTIMETER

QUIZ NO.2 (3RD GRADING)MULTIMETER

8th Grade

20 Qs

Pointers

Pointers

12th Grade

20 Qs

Year 10s quiz

Year 10s quiz

9th Grade

20 Qs

Sistemas Operativos - CLI

Sistemas Operativos - CLI

University

20 Qs

DPS Jorhat - Robotics Skill Assessment

DPS Jorhat - Robotics Skill Assessment

6th - 8th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

University - Professional Development

Practice Problem

Hard

Created by

sreenivas pasupuleti

Used 1K+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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

Already have an account?