Review Lists in Python (before Lab 8)

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

5 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of these is the correct code for creating 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]
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
2.
FLASHCARD QUESTION
Front
Which of these pieces of code would return the name "John" from the following list? nameList = ["John", "Harry", "Jesse", "Pasquale", "Nick", "Joe"] Options: nameList[1], nameList[0], nameList["1"], nameList["0"]
Back
nameList[0]
3.
FLASHCARD QUESTION
Front
What is the position of the name "Robert" in the following list: 0, 1, 2, 3
Back
2
4.
FLASHCARD QUESTION
Front
To print a list called fruitList we use
Back
print(fruitList)
5.
FLASHCARD QUESTION
Front
What is the output of this code fragment?
Back
Calculates the average of the numbers in the list
Similar Resources on Wayground
10 questions
Disney

Flashcard
•
KG - University
8 questions
Christmas Music Flashcard

Flashcard
•
11th - 12th Grade
12 questions
APCSP Final Exam Coding Practice

Flashcard
•
9th - 12th Grade
10 questions
Python Data Structures

Flashcard
•
10th Grade
6 questions
Preppy

Flashcard
•
KG - Professional Dev...
10 questions
Pop Culture Trivia

Flashcard
•
9th - 12th Grade
5 questions
2.1 Intro To Java

Flashcard
•
9th - 12th Grade
10 questions
Disney

Flashcard
•
KG - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th 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
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade