Python List and If/Elif

Python List and If/Elif

7th Grade

30 Qs

quiz-placeholder

Similar activities

Unit 08 Lesson 1 Angle Classification

Unit 08 Lesson 1 Angle Classification

6th - 8th Grade

25 Qs

4th Quarter Robotics Final Test Review Game

4th Quarter Robotics Final Test Review Game

6th - 8th Grade

26 Qs

Integers and Comparing /Ordering Integers

Integers and Comparing /Ordering Integers

6th - 7th Grade

25 Qs

Web Design: Pre-/Post Test on HTML

Web Design: Pre-/Post Test on HTML

KG - Professional Development

25 Qs

Python Y10

Python Y10

4th - 12th Grade

29 Qs

Python quiz 1

Python quiz 1

7th Grade - Professional Development

30 Qs

Assessment Term 2.2 - Y9 U4 Python Search algorithms

Assessment Term 2.2 - Y9 U4 Python Search algorithms

7th - 12th Grade

30 Qs

Variables, Arrays, For Loops, and Functions Review

Variables, Arrays, For Loops, and Functions Review

6th - 8th Grade

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