
Python Quiz-8

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
12 questions
Quiz3

Quiz
•
University
12 questions
Python Quiz- 1.9

Quiz
•
University
15 questions
untitled

Quiz
•
12th Grade - University
10 questions
Mastering Python Lists

Quiz
•
10th Grade - University
15 questions
Kuis2_PL

Quiz
•
University
15 questions
Quiz3

Quiz
•
University
10 questions
basic programming quiz

Quiz
•
University
10 questions
Python List

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade