Python Quiz-8

Python Quiz-8

University

10 Qs

quiz-placeholder

Similar activities

CRYPT-IN (Finals)

CRYPT-IN (Finals)

University

10 Qs

Python Quiz

Python Quiz

University

10 Qs

PyTron

PyTron

University

15 Qs

python quiz

python quiz

University

12 Qs

Python Round 2

Python Round 2

University

10 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

Quiz 9

Quiz 9

University

10 Qs

Sense_The_Bug

Sense_The_Bug

University

15 Qs

Python Quiz-8

Python Quiz-8

Assessment

Quiz

Computers

University

Medium

Created by

shilpa gupta

Used 9+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv']

pos = nameList.index("Bob")

print (pos * 3)

pos pos pos

Bob Bob Bob

6

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv']

print (nameList[1][-1])

P

Pratik

k

Bob

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Codes = [1, 2, 3, 4]

Codes.append([5,6,7,8])

print(Codes)

[1,2,3,4,5,6,7,8]

[1,2,3,4]

[1,2,3,4,[5,6,7,8]]

[1,2,3,4][5,6,7,8]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = range(100, 110)

print (list1.index(105))

4

5

6

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = [1, 2, 3, 4, 5]

list2 = list1

list2[0] = 0;

print( list1)

[1, 2, 3, 4, 5, 0]

[0,1, 2, 3, 4, 5]

[0, 2, 3, 4, 5]

[1, 2, 3, 4, 0]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = [1998, 2002]

list2 = [2014, 2016]

print ((list1 + list2)*2)

[1998, 2002, 2014, 2016, 1998, 2002, 2014, 2016]

[1998, 2002, 2014, 2016]

[1998, 2002, 1998, 2002]

[2014, 2016, 2014, 2016]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = ['physics', 'chemistry', 1997, 2000]

print (list1[1][-1])

p

y

7

2

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?