
List In python - test

Quiz
•
Computers
•
11th Grade
•
Hard
Sangeetha John
Used 12+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
cho biến
x='Python test 3'
print(x[7:])
Test 3
test 3
Python test 3
on test 3
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho biến
x='Python test 3'
print(x[2:10])
Python
thon test 3
thon tes
thon test
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho biến
x='Python test 3'
print(len(x))
8
11
14
13
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following list assignment
aList = [4, 8, 12, 16]
aList[1:4] = [20, 24, 28]
print(aList)
[4, 20, 24, 28, 8, 12, 16]
[4, 20, 24, 28]
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following list operation
aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[2:5])
print(aList[:4])
print(aList[3:])
[20, 30, 40, 50]
[10, 20, 30, 40]
[30, 40, 50, 60, 70, 80]
[30, 40, 50]
[10, 20, 30, 40]
[40, 50, 60, 70, 80]
None of these
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select all the correct options to join two lists in Python
listOne = ['a', 'b', 'c', 'd']
listTwo = ['e', 'f', 'g']
newList = listOne + listTwo
newList = extend(listOne, listTwo)
newList = listOne.extend(listTwo)
newList.extend(listOne, listTwo)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following
aList = [5, 10, 15, 25]
print(aList[::-2])
[15, 10, 5]
[10, 5]
[25, 10]
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
CH4 - Python

Quiz
•
9th - 12th Grade
50 questions
Strings in python - Test

Quiz
•
11th Grade
50 questions
Знакомство с IDE. Алфавит языка. Синтаксис. Типы данных. Правила

Quiz
•
11th Grade
50 questions
PAS INFORMATIKA ALL CLASS

Quiz
•
9th - 12th Grade
47 questions
MS Word Preliminary Examination

Quiz
•
10th Grade - University
50 questions
First Monthly Examination

Quiz
•
11th Grade
55 questions
Unit 7 Review Parameters, Returns, Libraries

Quiz
•
9th - 12th Grade
45 questions
Midterm prep 10 gr

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade