Python List and If/Elif

Python List and If/Elif

7th Grade

30 Qs

quiz-placeholder

Similar activities

MILS

MILS

7th - 12th Grade

25 Qs

Test yourself 5

Test yourself 5

7th Grade

26 Qs

tema 1 subtema 2 pembelajaran 3 kelas II

tema 1 subtema 2 pembelajaran 3 kelas II

7th - 9th Grade

26 Qs

Stats

Stats

7th Grade

25 Qs

Assessment Test for 3rd Qtr

Assessment Test for 3rd Qtr

7th Grade

25 Qs

Operating system

Operating system

7th Grade - University

25 Qs

Berlatih Soal Sumatif Matematika Akhir Semester Ganjil

Berlatih Soal Sumatif Matematika Akhir Semester Ganjil

7th Grade

25 Qs

Systems and Review

Systems and Review

7th - 9th Grade

25 Qs

Python List and If/Elif

Python List and If/Elif

Assessment

Quiz

Computers, Mathematics, Education, Instructional Technology

7th Grade

Practice Problem

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

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers