
python Basics
Flashcard
•
Computers
•
8th Grade
•
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Vocabulary Flashcards
Flashcard
•
8th Grade
23 questions
English conversation
Flashcard
•
7th Grade
20 questions
MIcrobits inputs and outputs
Flashcard
•
6th - 8th Grade
19 questions
Épithètes Homériques dans l'Odyssée
Flashcard
•
6th - 8th Grade
15 questions
The New Zealand Wars
Flashcard
•
7th Grade
15 questions
Proportions and Percents
Flashcard
•
7th Grade
27 questions
spotlight 8 module 7
Flashcard
•
8th Grade
20 questions
H Chem Enthalpy
Flashcard
•
KG
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade