Python List and If/Elif

Python List and If/Elif

7th Grade

30 Qs

quiz-placeholder

Similar activities

Year 7 HTML

Year 7 HTML

7th Grade

25 Qs

Comparing and Ordering Rational Numbers

Comparing and Ordering Rational Numbers

7th Grade

25 Qs

HTML and CSS Quiz

HTML and CSS Quiz

7th Grade

26 Qs

Unit 2 Quiz

Unit 2 Quiz

7th Grade

25 Qs

Database, Excel and HTML

Database, Excel and HTML

7th Grade

25 Qs

Inequality Introduction

Inequality Introduction

6th - 9th Grade

26 Qs

Python 6 topic (lists and dictionaries)

Python 6 topic (lists and dictionaries)

5th - 12th Grade

32 Qs

Python List and If/Elif

Python List and If/Elif

Assessment

Quiz

Computers, Mathematics, Education, Instructional Technology

7th Grade

Medium

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which brackets are used to create Lists?

()

{}

[]

Answer explanation

Lists are created using square brackets and have commas separating the different data values.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Spot the error in this program:

friends = Alice", "Bob","Liz"]

friends =

"Bob",

"Liz"]

Alice"

Answer explanation

friends = ["Alice", "Bob","Liz"]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Variable

Takes and input from a user.

Represents a particular value held in the memory.

Displays the results.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is String in Python?

Decimal numbers.

Whole numbers only

A sequence of characters. they can be letters, numbers, symbols, punctuation marks or spaces.

T/F

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this the correct code for a list?

register = {"Sam", "Pheobe", Georgia", Richard"}

Yes

No

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of “grape” in the list

[“apple”, “grape”, “orange”, “watermelon”]?

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is the position of the name "Robert" in the following list:
0
1
2
3

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?