filmov
tv
Python Exercise #8
![preview_player](https://i.ytimg.com/vi/xZlAEQPB6dU/maxresdefault.jpg)
Показать описание
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 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:__
-----------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
Комментарии