WorksheetsPython Data Types and Arithmetic Quiz
Total questions: 7
Worksheet time: 4mins
What is the default data type in Python?
Real
String
Integer
Number
What is the Python code needed to display a word on the screen?
print"hello"
"hello"
print("hello")
print="hello"
What is the Python code needed to ask a user for input?
input("what is your name?")
input="what is your name?"
(input)=what is your name?
input=what is your name?
Which is the correct way to store an input as a variable in Python?
answer("what is your name?")
input = "answer"(what is your name?)
answer = input("what is your name?")
input=(what is your name?)
Which character represents a comment in Python code?
*
#
&
$
Choose the TWO correct data types from the list below
Integer
Real
Fake
Short
Why do we need to convert data types in Python?
Because Python doesn't know about data types
Because Python stores data types as String by default
