This operator is used for exponents.
What is **?
This data type stores a sequence of characters.
What is a string?
Which command will display the text 'Hello world!' on the screen?
A) print(Hello world!)
B) print("Hello world!")
C) print "Hello world!"
D) print = "Hello world!"
The Correct Answer is :
B) print("Hello world!")
To comment a line in Python, you use this character.
What is a pound sign (#) ?
Fill in the operator(mathematic symbol):
7 ? 2 = 3.5
What is /?
This data type stores decimal numbers.
What is a float?
myName = input() - Is myName a string, a function, a variable, or a method
A) String
B) Variable
C) Function
D) Method
The correct answer is:
B) Variable
What does input do?
A) It allows users to change the program
B) It allows a user to solve a task
C) It converts data types
D) It allows users to enter data
The correct answer is :
D) It allows users to enter data
What 15%4 equals.
3
This data type stores True or False
What is a Boolean?
Which function will convert a number to a string?
A) int()
B) chr()
C) str()
D) ord()
The correct answer is :
C) str()
The data type that the input() function returns.
What is a string?
What is the output of the following code?
a = 4
b = 2
print(a ** b)
What is 16?
This data type stores whole numbers
What is an integer?
Which function will convert a string containing only digits into a whole number?
A) int()
B) ord()
C) chr()
D) str()
The correct answer is:
A) int()
What is the result of this command? print ("5" + "3")
A) 8
B) "8"
C) "5" + "3"
D) 53
The correct answer is :
D) 53