CodeHS Python Unit 3 Flashcard Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the output of the following program? Assume the user enters “Florence”, then “Fernandez”.
Back
FlorenceFernandez
2.
FLASHCARD QUESTION
Front
What does the following program print? Options: <type 'str'>, <type 'int'>, <type 'float'>, The program crashes and doesn’t print anything.
Back
<type 'str'>
3.
FLASHCARD QUESTION
Front
Which of the following options is the best way to get a number from the user that you plan to use in a mathematical equation? Options: num = str(input(“Enter a number: “)), num = number(input(“Enter a number: “)), num = input(“Enter a number: “), num = int(input(“Enter a number: “))
Back
num = int(input(“Enter a number: “))
4.
FLASHCARD QUESTION
Front
Which one of the statements below will cause an error?
Options:
ans = “hi” * 8
ans = “hi” + 9
ans = “hi” + “hi” + “hi”
ans = (“a” * 4) + “b”
Back
ans = “hi” + 9
5.
FLASHCARD QUESTION
Front
What is the difference between a binary operator and a unary operator?
Back
A binary operator needs two things, while a unary operator only needs one.
6.
FLASHCARD QUESTION
Front
What is the final result of the expression 7 / 2 + 6?
Back
9.5
7.
FLASHCARD QUESTION
Front
Which of the following choices is a properly formed Python variable name, meaning it is both legal in the Python language and considered good style? Options: user_age, uSeRaGe, user!age!, 1user_age
Back
user_age
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
11 questions
7517 05 Structured Programming
Flashcard
•
10th Grade - University
20 questions
Imparfait
Flashcard
•
9th - 12th Grade
18 questions
7.3 & 7.4 SAINS T2
Flashcard
•
8th Grade - University
12 questions
Descriptive adjectives for Home and Furniture
Flashcard
•
10th Grade - University
15 questions
Identify Aircraft as Military, Civilian and Cadet
Flashcard
•
KG - Professional Dev...
14 questions
Identifying Types of Phrases
Flashcard
•
7th - 12th Grade
15 questions
7517 01 Programming Basics
Flashcard
•
10th Grade - University
12 questions
Organic 2 Exam 4 Review
Flashcard
•
KG
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade