Python Quizzes

Welcome to Python Beginners Quiz. This quiz will check your basic knowledge in Python Programming Language. Each correct answer will give you 5 points each. Only a very small percentage of people could score 100 out of 100 in this quiz. So Let's begin !!!

1. Is python an Interpreted Language?
2.
import random
fruit = random.randint(0,2)
fruits = ["Apple","Blueberry","Cherry"]
print("If you are hungry, You can eat {}".format(fruits[fruit]))
3. All datatypes in python are not class?
4.
fruits = ["Apple","Blueberry","Cherry"]

if "blueberry" in fruits:
print("Yes, Stock is availble")
else:
print("Stock is not available")
5. Python can't be used to create a website?
6. We need PyCharm or Anaconda in order to run a Python program?
7.
if ("condition"):
print("Python is Great")
else:
print("Python is not Great")
8. Does Python have Switch statement?
9. Is Python List and Tuples are same and can be used interchangeably?
10. You can use reverse() function in python to reverse a string?
11.
What's the output of this program?

print("Enter a Number:")
first_number = int(input())
print(first_number)

User Inputs:
A
12. Who is the creator of Python Programming Language?
13.
What's the output?

print("What's your name?")
name = input()
print("Hi, " + name[::-1])

User Inputs:
itpanther.com
14.
What's the output?

fruits = ["Apple", "Blueberry", "Cherry"]
print(fruits[::-1])
15.
if (-1):
print("Python is Great")
else:
print("Python is not Great")
16.
What's the output of this program?

print("Enter two numbers and I will add these numbers for you.")
first_number = input()
second_number  = input()
print(" Sum is: "+ first_number + second_number)

User Inputs: 
2
3
17. Django Framework can be used to develop Gaming Applications?
18. All of the below statements will print "Hello World"?
print('Hello World','',"")
print('',"Hello World")
print('Hello'+' '+'World')
19. Which Language Python is written in?
20.
a = ""
for i in range(1,10,2):
a +=str(i)
print(a)

Your Name?
Your Email?

Learn complete Python Programming here.

Read more on Python Programming Here

Leave a Comment

Subscribe to our newsletter for weekly tips.

Thanks for Subscribing to Newsletter.

There was an error while trying to send your request. Please try again.

IT Panther will use the information you provide on this form to be in touch with you and to provide updates and marketing.
%d bloggers like this: