String & List in Python

String & List in Python

11th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

PYTHON PROGRAMMING

PYTHON PROGRAMMING

11th - 12th Grade

15 Qs

Lists and Tuples

Lists and Tuples

11th Grade

19 Qs

List Manipulations

List Manipulations

11th Grade

20 Qs

Python Recap

Python Recap

9th - 11th Grade

19 Qs

Python:  Groups - Lists

Python: Groups - Lists

10th - 12th Grade

16 Qs

Practice Quiz( List)

Practice Quiz( List)

11th - 12th Grade

22 Qs

Computers December 13

Computers December 13

11th Grade

25 Qs

Subroutines

Subroutines

9th - 11th Grade

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