NEW
Font size
WorksheetsPython Variables
Total questions: 10
Worksheet time: 5mins
What type of data is the following?: X = "195.67"
Float
String
Boolean
integer
What type of variable is the following?: Y = False
Float
String
Integer
Boolean
What does the following Python program print?
X = "Hello World!"
Y = "I can code "
Z = " In Python"
print( X + Y + Z)
Hello World! I can code In Python
Hello World!I can code In Python
Hello World! I can codeIn Python
Hello World!I can code In Python
Variables have three things:
Numeric, string, Boolean
Integer, float, string
name, type, value
function, value, name
When you want to print something to the screen you should use
The keyboard to type it
The computer Display
A monitor
a print statement
print("Python " * 3); will print out what
Python 3 Python 3 Python 3
Python Python Python
PythonPythonPython
Python*3 Python*3 Python*3
Which one to the following Python programs will not run?
num = 4
greeting = "Hello"
print(num + greeting)
grade = 98.7
letterGrade = "A+"
print(str(grade) + letterGrade
studentNum =80
print("studentNum")
print("Hello World!")
Which of the following is NOT a program that will produce the following output?
SeasonSeasonSeason
word = "Season" * 3
print(word)
word = "Season" + "Season" + "Season"
print(word)
num = 3
word = "Season" * 3
print(word)
word = "Season"
print(word)
print(word)
print(word)
float, integer, boolean, and string are all examples of what?
Variables
Data Types
Words
Concatenation
The following statement/code snippet is an example of what?
color = blue
All is correct
Variable/variable assignment
Variable declaration
Variable initialization
