Python Programming Beginners Quiz

Python Programming Beginners Quiz

11 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

\t is an escape character.

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

Which of these is a variable?

  1. print()
  2. float()
  3. num1 = 9
  4. int()
Question 3 Multiple Choice (Single Answer)

What operator do we use to get the remainder of two numbers?

  1. /
  2. $
  3. %
  4. *
Question 4 Multiple Choice (Single Answer)

Which of these variables is a string?

  1. name = "Hello!"
  2. string = 33
  3. name = 3.22
Question 5 Multiple Choice (Single Answer)

Which of these variables is a float?

  1. num = 4.2
  2. num = 42
  3. num = 12
Question 6 Multiple Choice (Single Answer)

float is a data type.

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

\n is an escape character that inputs a new line.

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

What command/function do we use to read a value from the user?

  1. int()
  2. input()
  3. get()
  4. print()
Question 9 Multiple Choice (Single Answer)

Which of these variables are of type int?

  1. num = 5.6
  2. num = "3"
  3. num = 4
  4. num = 4.0
Question 10 Multiple Choice (Single Answer)

What function/command do we use to print something to the screen?

  1. printer()
  2. print()
  3. print = 22
Question 11 Multiple Choice (Single Answer)

print is NOT a command/function in Python.

  1. True
  2. False