PYTHON -- Lists v2

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

14 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Would the following code work for creating a list? friends = {"Monica", "Ross", "Rachel", "Phoebe", "Joey", "Chandler"}
Back
No
2.
FLASHCARD QUESTION
Front
Which symbols are used to open and close a list? ( ) round brackets AKA parentheses, { } curly brackets, [ ] square brackets, " " double quote marks, < > angle brackets AKA chevrons
Back
[ ] square brackets
3.
FLASHCARD QUESTION
Front
Which line of code is the correct way to create a list of names? Options: 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]; nameList = (John, Harry, Jesse, John, Harry, Harry)
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
4.
FLASHCARD QUESTION
Front
What's the index value of list item "Robert" in names = ["Bob", "Bobby", "Robert", "Rob"]?
Back
2
5.
FLASHCARD QUESTION
Front
Which list item has the index value of 3? ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Back
"John"
6.
FLASHCARD QUESTION
Front
Which line of code would insert the string "strawberries" in the first position of the fruit list? Options: fruit("strawberries", 1), fruit("strawberries", 0), fruit(1, "strawberries"), fruit[1:1] = ["strawberries"]
Back
fruit[1:1] = ["strawberries"]
7.
FLASHCARD QUESTION
Front
What data type are the list items shown in the screenshot?
Back
Integers
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Functions

Flashcard
•
9th - 12th Grade
9 questions
Microsoft Outlook Flashcard Review Game-2

Flashcard
•
9th - 12th Grade
12 questions
JavaScript Programming Concepts

Flashcard
•
9th - 12th Grade
10 questions
DYLANS WIFE

Flashcard
•
KG - 12th Grade
6 questions
Python -- Inputs

Flashcard
•
9th - 12th Grade
11 questions
Function in Python

Flashcard
•
KG
9 questions
Microsoft Word 2019 - Mail Merge

Flashcard
•
10th Grade - University
9 questions
PYTHON -- Lists (short)

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade