Test.
What will be the result of the following Python 3 statement? temperature = "3" + "5" - CORRECT
ANSWER ' 35 '
What will be the output of the following code in Python 3?
number = 6
number = number + 4
lucky_number = 10 * number
print(lucky_number/number) - CORRECT ANSWER 10
What is the output of the following code in Python 3?
print("Ozymandius"[2:4]) - CORRECT ANSWER ym
What is the output of the following code in Python 3?
print(5>= 5) - CORRECT ANSWER True
What is the output of the following code in Python 3?
animals = ["mammal","reptile","insect","fish"]
animals.insert(3,"bird")
print(animals) - CORRECT ANSWER ['mammal','reptile','insect','bird','fish']
What is the output of the following code in Python 3?
, print(17%5) - CORRECT ANSWER 2
Which of the following Python 3 instructions will produce the output Hello World?
Print("Hello World")
print "Hello World"
print "Hello World"
print("Hello World") - CORRECT ANSWER print("Hello World")
What character(s) is used at the start of a line in Python to indicate that what follows should be treated
as a comment? - CORRECT ANSWER #
Which of the following is a type in Python?
int
bool
list
All of the above - CORRECT ANSWER All of the above
A fragment of code that causes a data type to be evaluated? - CORRECT ANSWER Expression
A single unit of code that the Python interpreter can execute? - CORRECT ANSWER Statement
What is the output of the following code in Python 3?
print(1 and 0) - CORRECT ANSWER 0