Python - Introduction


Question 1     

  1. Python Dictionary is type of Key value Pairs




Question 2     

Is Python case sensitive when dealing with identifiers?




Question 3     

class test:
        def __init__(self):
                print("Hello World")
        def __init__(self):
               print("Bye World")






Question 4     

 What is the output of the following print() function
    print(sep='--', 'Ben', 25, 'California')






Question 5     

What is the output of the following code
 

x = 100
y = 50
print(x and y)





Question 6     

What is the output of the following code

print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))





Question 7     

What is the output of the following assignment operator

y = 10
x = y += 2
print(x)





Question 8     

What is the output of the following code

def outerFun(a, b):
    def innerFun(c, d):
        return c + d
    return innerFun(a, b)

res = outerFun(5, 10)
print(res)





Question 9     

Choose the correct function declaration of  fun1() so that we can execute the following function call successfully

fun1(25, 75, 55)
fun1(10, 20)





Question 10     

What is the maximum possible length of an identifier in python programming language?






Sign Up Page

Oops!!

To view the solution need to Login



Score : 0 / 0
L
o
a
d
i
n
g
.
.
.