Time Left : 00 : 30 : 00

In order to store values in terms of key and value we use what core data type

What will be the output of the following Python code?

`print("abc. DEF".capitalize())`

Which of the following is the same as math.exp(p)?

The output of the following codes are the same.

```[x**2 for x in range(10)]
list(map((lambda x:x**2), range(10)))```

All modular designs are because of a top-down design process.

The ______ symbol along with the name of the decorator function can be placed above the definition of the function to be decorated works as an alternate way for decorating a function.

Which of the following is the use of id() function in python?

Which of the following Python statements will result in the output: 6?

```A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]```

In top-down design every module is broken into same number of submodules.

Mathematical operations can be performed on a string.

What is the default value of encoding in encode()?

What will be the output of the following Python code?

`print('a B'.isalpha())`

What will be the output of the following Python code?

```data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]

def ttt(m):
v = m

for row in m:
for element in row:
if v < element: v = element

return v

print(ttt(data))```

Which of the following is the truncation division operator?

What will be the output of the following Python code if a=10 and b =20?

```a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)```

Which of the following data structures is returned by the functions globals() and locals()?

What will be the value of ‘result’ in following Python program?

```list1 = [1,2,3,4]
list2 = [2,4,5,6]
list3 = [2,6,7,8]
result = list()
result.extend(i for i in list1 if i not in (list2+list3) and i not in result)
result.extend(i for i in list2 if i not in (list1+list3) and i not in result)
result.extend(i for i in list3 if i not in (list1+list2) and i not in result)```

What will be the output of the following Python code snippet?

```test = {1:'A', 2:'B', 3:'C'}
del test
test = 'D'
del test
print(len(test))```

What will be the output of the following Python code?

```def f1(x):
global x
x+=1
print(x)
f1(15)
print("hello")```

What will be the output of the following Python function?

```{x for x in 'abc'}
{x*3 for x in 'abc'}```

What will be the output of the following Python code?

```def printMax(a, b):
if a > b:
print(a, 'is maximum')
elif a == b:
print(a, 'is equal to', b)
else:
print(b, 'is maximum')
printMax(3, 4)```

What will be the output of the following Python code?

```def change(i = 1, j = 2):
i = i + j
j = j + 1
print(i, j)
change(j = 1, i = 2)```

What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?

```import datetime
tday=datetime.date.today()
print(tday)```

Which of the following is false about “from-import” form of import?

What will be the output of the following Python code?

```>>> import collections
>>> a=collections.OrderedDict((str(x),x) for x in range(3))
>>> a
```

What will be the output of the following Python code?

```i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)```

What will be the output of the following Python code?

```d = {0, 1, 2}
for x in d:

What will be the output of the following Python code snippet?

```s=set([1, 2, 3])
s.union([4, 5])
s|([4, 5])
```

```s='%s, %s & %s'