String & List in Python

String & List in Python

11th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

Python Lists v2

Python Lists v2

9th - 12th Grade

15 Qs

Python Lists

Python Lists

10th - 12th Grade

15 Qs

list in python

list in python

12th Grade

20 Qs

Python list, if

Python list, if

6th - 12th Grade

20 Qs

list 6th

list 6th

7th Grade - University

20 Qs

Python Lists

Python Lists

9th - 12th Grade

15 Qs

String & List in Python

String & List in Python

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Created by

Tamil Selvi

Used 7+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List items have an index number. In the following list, which item has the index number of 3?

["JOHN", "Harry", "Jesse", "John", "Harry", "Harry"]

"John"

"Harry"

"Jesse"

"JOHN"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To print a list called fruitList we use

print(fruitList)

list(print)

fruitList.print()

fruitList(print)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which colour will be replaced with yellow?

red

green

blue

none, yellow will be added to the list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbols are used to open and close a list?

( ) round brackets

( ) curly brackets

[ ] square brackets

" " speech marks

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each item in a list has an "address" or index. The first index in a Python list is what?
0
1
a
A

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What output will this code produce?
4
2
3
5

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?