Python List and If/Elif

Python List and If/Elif

7th Grade

30 Qs

quiz-placeholder

Similar activities

Thursday Ass.19/10

Thursday Ass.19/10

7th Grade

25 Qs

ULANGAN HARIAN MATEMATIKA 8I

ULANGAN HARIAN MATEMATIKA 8I

7th - 9th Grade

25 Qs

Q1 SPA Theater Arts 7 Summative Quiz

Q1 SPA Theater Arts 7 Summative Quiz

7th Grade

25 Qs

PDS Crossword Team Qualification Test 2023 - Calculation Skill

PDS Crossword Team Qualification Test 2023 - Calculation Skill

6th - 8th Grade

25 Qs

ĐẤU TRƯỜNG TRÍ TUỆ - KHỐI 7 (First Round)

ĐẤU TRƯỜNG TRÍ TUỆ - KHỐI 7 (First Round)

6th - 8th Grade

25 Qs

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

5th Grade - University

25 Qs

Easter Quiz

Easter Quiz

6th - 8th Grade

25 Qs

To CC BCC Reply Reply All and forward

To CC BCC Reply Reply All and forward

6th - 8th Grade

25 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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?