Python Exercise #8

Published: 29 October 2020
on channel: Programming Is Fun
1,438
29

Hi Guys, I am give you an exercise in Python Programming based on whatever we have learned yet. Honestly you need solve this exercise. I will check each one of your comment, at finally I will give you the solution. Please find the below question list.

Python Exercise:
Q-1:What is the output of the following code?
x = 45
y = x + '5'
print(y)

a) Error
b) 50
c) 45+'5'
d) 455
Ans:____

Q-2: What is the output of the following code?
print(type(10))

a) float
b) Whole number
c) int
d) number
Ans:___
Q-3: which is the correct code to print "Programming"?
a.) print(""Programming"")
b.) print('"Programming"')
c.) print("\'Programming \'")
d.) print("\"Programming\"")
Ans:___
Q-4 Python programming works on compiler.
a) True
b) False
Ans:__
Q-5 What will be output of following code?
output = "=" * 10
print(output)
Ans:____
Q-6 What will be ouput of following code?
print(int(5.4533333))

a) 5.4
b) 5.0
c) 5
d) Error
Ans:___
Q-7 What will be output of following code?
a = 80
b = 50
print(a and b)

a) False
b) 80
c) True
d) 50
Ans:___
Q-8 What will be output of following code?
print(2 ** 4) ** 2

a) 32
b) 64
c) 128
d) 256
Ans:__
Q-9 what is the output of print(2 ** 4 ** 2) ?
a) 64
b) 256
c) 512
d) 65526
Ans:___
Q-10 is Python Case-Sensitive and Dynamically typed language?
a.) True
b.) False
Ans:__

-----------------------------------------------------------------------------------------------------------------------------------------
Python Teaser:    • A Beautiful Python Programming Teaser | In...  

Python Playlist:    • Python Tutorial for Beginners  
------------------------------------------------------------------------------------------------------------------------------------------


On this page of the site you can watch the video online Python Exercise #8 with a duration of hours minute second in good quality, which was uploaded by the user Programming Is Fun 29 October 2020, share the link with friends and acquaintances, this video has already been watched 1,438 times on youtube and it was liked by 29 viewers. Enjoy your viewing!