Python Exercise #8

Pubblicato il: 29 ottobre 2020
sul canale di: 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  
------------------------------------------------------------------------------------------------------------------------------------------


In questa pagina del sito puoi guardare il video online Python Exercise #8 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Programming Is Fun 29 ottobre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,438 volte e gli è piaciuto 29 spettatori. Buona visione!