Python Quiz-8

Python Quiz-8

University

10 Qs

quiz-placeholder

Similar activities

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

Week 7 Quiz

Week 7 Quiz

University

15 Qs

Python Quiz - 4 Lists,Loops,String Manipulation

Python Quiz - 4 Lists,Loops,String Manipulation

University

15 Qs

Python_Quiz_2

Python_Quiz_2

University

15 Qs

Python: Chapter 7 - True or False (Lists and Tuples)

Python: Chapter 7 - True or False (Lists and Tuples)

9th Grade - University

8 Qs

Списки Python + Pygame

Списки Python + Pygame

KG - University

10 Qs

W10: Interface

W10: Interface

University

6 Qs

Pyflask2020

Pyflask2020

KG - Professional Development

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