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
15 questions
Harry Potter and the Cursed Child- Perry Style

Flashcard
•
8th - 12th Grade
12 questions
Python Functions

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

Flashcard
•
9th - 12th Grade
15 questions
Python

Flashcard
•
10th - 12th Grade
10 questions
Циклдік операторлар. 6.1 Цикл ішінде циклдер 6.2 Continue опер

Flashcard
•
KG - University
15 questions
Capitalization and punctuation

Flashcard
•
9th - 12th Grade
8 questions
3.7 Dreams

Flashcard
•
9th - 12th Grade
10 questions
EOC Review - USHC Famous Quotes and Their Authors

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade