Python Exercise #8

Veröffentlicht am: 29 Oktober 2020
auf dem Kanal: 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  
------------------------------------------------------------------------------------------------------------------------------------------


Auf dieser Seite können Sie das Online-Video Python Exercise #8 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Programming Is Fun 29 Oktober 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,438 Mal angesehen und es wurde von 29 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!