##### Basic Python Quiz for Beginners
by Kwiz
Qs
Difficulty
Plays
Record
###### Description

This Quiz is for beginners who are new to Python Programming. This quiz provides Multiple Choice Questions to get familiar with Python. The quiz focuses on testing your basic skills on Python essential functions, string, operators, functions, set, and lists questions.

###### What is the output of the following code?
``````var1 = 1
var2 = 2
var3 = "3"

print(var + var2 + var3)``````
###### What is the Output of the following code?
``````for x in range(0.5, 5.5, 0.5):
print(x)``````
###### What is the output of the following code?
``````valueOne = 5 ** 2
valueTwo = 5 ** 3

print(valueOne)
print(valueTwo)``````
###### What is the output of the following code?
``````x = 36 / 4 * (3 +  2) * 4 + 2
print(x)``````
###### What is the output of the following code?
``````str = "pynative"
print (str[1:3])``````
###### What is the output of the following code?
``````listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]

print(listOne == listTwo)
print(listOne is listTwo)``````
###### What is the output of the following code?
``````def calculate (num1, num2=4):
res = num1 * num2
print(res)

calculate(5, 6)``````
###### What is the output of the following code
``````salary = 8000

def printSalary():
salary = 12000
print("Salary:", salary)

printSalary()
print("Salary:", salary)``````
###### Can we use the “else” clause for loops?
``````# For example:
for i in range(1, 5):
print(i)
else:
print("this is else block statement" )``````
###### What is the output of the following code?
``````sampleList = ["Jon", "Kelly", "Jessa"]
sampleList.append(2, "Scott")
print(sampleList)``````
###### What is the output of the following code?
``````var = "James" * 2  * 3
print(var)``````
###### What is the output of the following code?
``````p, q, r = 10, 20 ,30
print(p, q, r)``````
###### What is the output of the following code?
``````sampleSet = {"Jodi", "Eric", "Garry"}
``````for i in range(10, 15, 1):
``````var= "James Bond"