Python Quiz - 20

Python Quiz - 20

12th Grade - University

8 Qs

quiz-placeholder

Similar activities

Alberta Natural Resources #2

Alberta Natural Resources #2

KG - University

12 Qs

Accounting 100

Accounting 100

University

13 Qs

vehicle transmission and driveline units(a)

vehicle transmission and driveline units(a)

KG - 12th Grade

10 Qs

17 course French classical menu 01

17 course French classical menu 01

University

10 Qs

Iron Man

Iron Man

1st Grade - University

12 Qs

Review Quiz

Review Quiz

12th Grade

10 Qs

Kiểm tra level cờ Vua Nhập Môn

Kiểm tra level cờ Vua Nhập Môn

1st Grade - University

10 Qs

Bilan : FCPA, UK Bribery Act, Loi sapin II

Bilan : FCPA, UK Bribery Act, Loi sapin II

University

10 Qs

Python Quiz - 20

Python Quiz - 20

Assessment

Quiz

Architecture, Other

12th Grade - University

Practice Problem

Hard

Created by

shanmugaraja .

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the correct output of the following string operations


str1 = 'Welcome'

print(str1*2)

WelcomeWelcome

str1str1

Error

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the following output of the following code :

list('Welcome')

['W','e','l','c','o','m','e']

('W','e','l','c','o','m','e')

['welcome']

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the following output of the following code :

>>>L = ['w','e','l','c','o','m','e']

>>>print(len(L))

8

9

7

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the following output of the following code :

>>> L=[“Amit”,”Anita”,”Zee”,”Longest Word”]

>>> print(max(L))

Longest Word

Zee

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the output of the following code :

L=list(“www.learninghpython.com”)

print(L[20 : -1])

['c','o']

['c','o','m']

(com)

Error

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the output of the following code :

>>>L=[“Amit”,”Sumit”,”Naina”]

>>>print(L[-1][-1])

['Sumit']

[a]

[Naina]

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the output of the following code :

L=[0.5 * x for x in range(4)]

print(L)

[0.0, 0.5, 1.0, 1.5]

(0,.5, 1, 1.5)

[0.0, 0.5, 1.0, 1.5, 2.0]

None

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?