TOTAL QS = 12Time [ 00 : 00 : 00 ]
00:00:00

Python Data Types Online Practice Test 2

Instructions

Total Questions: 12

Total Minutes: 12

This ExamTray Free Online Test or Quiz or Trivia tests your Programming Skills on the basics of Python Data Types and Variables. This practice test displays answers after finishing the exam for review. You can easily clear Competitive Exams and Job Interview Questions. Students can learn Python basics.

Go through Python Theory Notes on Data Types before attempting this test.

All the Best

Challenge SCORE

0 / 12

Take This Exam
1) What is the output of the given Python program with data types.
carrots = 5
carrots = 5.0
carrots = 'beetroots'
print(carrots)
2) What is the output of the below Python program?
pen=10;
pencil=20.5
sum = pen + pencil
print(sum)
3) What is the output of the below Python code snippet?
bananas=5.0e2
print(bananas)
4) What is the output of the given Python code snippet with floating point numbers?
apples=10e3
print(apples)
5) Can you use E or Exponential notation to represent integers in Python?
6) What is the output of the below Python code snippet with floating point and imaginary numbers?
ducks = 10e2+20e1j
print(ducks)
7) What is the output of the below Python code snippet with floating point and imaginary numbers?
ducks = 10.0 + 20.0j
print(ducks)
8) Imaginary numbers in Python suppress decimal notation if it can be converted to Integer. State TRUE or FALSE.
9) What is the output of below Python program with String?
dog_name = """Tomy
Tomi"""
print(dog_name)
10) State TRUE or FALSE. A Multiline string when not assigned to any variable will be treated as text under multi-line comments.
11) In Python language you can use Single Quote and Double Quote interchangeably. State TRUE or FALSE.
12) What is the output of the given Python code snippet?
def count_ducks():
    print("Ducks 10")

    
print(count_ducks())
Certification Group ID
0

Open Certification Helper Popup Reset Popup