List In python - test

List In python - test

11th Grade

50 Qs

quiz-placeholder

Similar activities

CSP Python Test

CSP Python Test

9th - 12th Grade

52 Qs

3D Printing

3D Printing

8th - 12th Grade

53 Qs

General Review Grade 8

General Review Grade 8

7th - 12th Grade

50 Qs

mix quiz

mix quiz

11th Grade

52 Qs

Excel Test Questions Lesson 1-3

Excel Test Questions Lesson 1-3

9th - 12th Grade

46 Qs

software dev

software dev

9th - 12th Grade

50 Qs

DOS LiNux

DOS LiNux

9th - 12th Grade

50 Qs

Python Programming Certification Exam

Python Programming Certification Exam

9th - 12th Grade

46 Qs

List In python - test

List In python - test

Assessment

Quiz

Computers

11th Grade

Hard

Created by

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

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?