Font size
Worksheetsstr vs int
Total questions: 10
Worksheet time: 6mins
What data type is "UB4 9LE"
String
Integer
Character
Float
What is the result of concatenating 'Hello' and 'World' in Python?
word1 = "Hello"
Word2 = "World"
print(Word1 + Word2)
HelloWorld
Hello World
['Hello', 'World']
None of the above
Which data type would be best for storing a person's age?
String
Integer
Float
Boolean
What data type does the following line of code use?
year = int(input("What year is it?")
input
string
integer
number
integers are used to...
display information
complete calculations
gather user input
Strings are used to...
display information
complete calculations
gather user input
Identify the variable that uses strings.
age
currentYear
Which line of code uses an integer?
(a)
Which line of code successfully gathers input as a string?
1
3
5
Which line successfully gathers input for an integer?
(a)
