Basic Math
Variables
Commands
General Python
100

This operator is used for exponents.

What is **?

100

This data type stores a sequence of characters.

What is a string?

100

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!")

100

To comment a line in Python, you use this character.

What is a pound sign (#) ?

200

Fill in the operator(mathematic symbol):

7 ? 2 = 3.5

What is /?

200

This data type stores decimal numbers.

What is a float?

200

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

200

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

300

What 15%4 equals.

3

300

This data type stores True or False

What is a Boolean?

300

Which function will convert a number to a string? 

A) int() 

B) chr() 

C) str()

D) ord()

The correct answer is :

C) str()

300

The data type that the input() function returns.

What is a string?

400

What is the output of the following code?

a = 4

b = 2

print(a ** b)

What is 16?

400

This data type stores whole numbers

What is an integer?

400

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()

400

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