
python Basics
Flashcard
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
BRIAN DOYLE
FREE Resource
Student preview

26 questions
Show all answers
1.
FLASHCARD QUESTION
Front
To display something on the screen, use this command: print(), Print(), screen(), write(), display()
Back
print()
2.
FLASHCARD QUESTION
Front
To display the following on screen Hello World! the following command should be used:
Back
print("Hello World!")
3.
FLASHCARD QUESTION
Front
x = 5 y = 6 print(x*y)
The code above displays the following:
Back
30
4.
FLASHCARD QUESTION
Front
x = 5 y = 6 print("x*y")
The code above displays the following:
Back
x*y
5.
FLASHCARD QUESTION
Front
cakeAmount = raw_input() print "We have", cakeAmount, " cakes"
The above code is run. You type: six
Select the correct output.
Back
We have six cakes
6.
FLASHCARD QUESTION
Front
cakeAmount = input() print "We have", cakeAmount, " cakes"
The above code is run. You type: six
Select the correct output.
Back
Error
7.
FLASHCARD QUESTION
Front
age = input("Enter Age (as integer): ") newAge = age + 20 print ("your age in 20 years is:", newAge)
you enter 15
Back
value of age is 15 value of newAge is 35 output is: your age in 20 years is: 35
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
18 questions
Soal Transformator
Flashcard
•
9th Grade
20 questions
Graphing
Flashcard
•
6th Grade
16 questions
night book vocabulary honors English 2 Mrs. Harper
Flashcard
•
KG
24 questions
Spec/Spect
Flashcard
•
6th Grade
16 questions
Chemical and physical changes
Flashcard
•
6th Grade
26 questions
Chapter 9 Test
Flashcard
•
KG
15 questions
Benchmark 2 (Modules 2-3)
Flashcard
•
6th Grade
15 questions
Natural Resources Part B
Flashcard
•
6th Grade
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