
Python Programming Basics Flashcard
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will be the output?
name = "Dave"
print ("name")
Back
name
2.
FLASHCARD QUESTION
Front
A programmer wants to write a while loop that continues to run as long as the user's input is less than 100. Which of the following is the correct loop condition? Options: while user_input < 100:, while user_input > 100:, while user_input == 100:, while user_input != 100:
Back
while user_input < 100:
3.
FLASHCARD QUESTION
Front
What will be the output of the following Python code?
favorite_colors = ['red', 'blue', 'green', 'yellow']
favorite_colors.append('purple')
print(len(favorite_colors))
Back
5
4.
FLASHCARD QUESTION
Front
Given the dictionary students = {'John': 10, 'Jane': 11, 'Joe': 10}, what is the correct way to print Jane's age?
Back
print(students['Jane'])
5.
FLASHCARD QUESTION
Front
What is the output of the following code?
Python code block:
def is_even(number):
if number % 2 == 0:
return True
else:
return False
print(is_even(9))
Back
False
6.
FLASHCARD QUESTION
Front
Which line of code correctly opens a file named data.txt to add new information without erasing existing content? Options: file = open('data.txt', 'r'), file = open('data.txt', 'w'), file = open('data.txt', 'a'), file = open('data.txt', 'x')
Back
file = open('data.txt', 'a')
7.
FLASHCARD QUESTION
Front
What is the output if the user types "Python"?
Back
Try again!
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Differentiation and Functional Notation
Flashcard
•
12th Grade
10 questions
ServSafe Food Handler Test
Flashcard
•
11th Grade
10 questions
Who Knows OGE the best?
Flashcard
•
University
8 questions
Lesson 3 - Internet Concepts
Flashcard
•
KG
10 questions
1.5 Network Protocols & Toplogy
Flashcard
•
10th Grade
10 questions
Formatting in Excel
Flashcard
•
10th Grade
9 questions
Parts of a Computer
Flashcard
•
9th - 12th Grade
9 questions
Chap 2.4: Goal Setting Theory
Flashcard
•
12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade