Technical Skill python programming
Technical Skill python programming
1
Click to edit Master title style
Technical Skill
Python
2
Click to edit Master title style
1)
minimum = min("programming")
print(minimum)
2)
maximum = max("python")
print(maximum)
What is the output of the
below code
• 1. p
• 2. y
• 3. t
• 4. None of the above 4 4
Ans:2
Click to edit Master title style
3)
a = 7
a1 = a + 1
a2 = a++
if a1 == a2:
print("Success")
else:
print("Failure")
if a1 == a2:
print("Success")
else:
print("Failure")
• What is the output of the below code
• 1. Success
• 2. Failure
• 3. Invalid Syntax
• 4. None of the above 6 6
Click to edit Master title style
Ans:2
5)
l = {'a1':"1", 'a2': "2", 'a3':"3"}
for x, y in l:
print(x[0], end = " ")
11
11
Ans:2
Click to edit Master title style
10)
value = ('1 + 3 * 2’)
print(eval(value))
21
21
Ans:2
Click to edit Master title style
20)
a = 5
b = 3
c1 = a/b
c1 = int(c1)
• What is the output of the below code
c2 = a/b
c2 = round(c2) • 1. True
if c1 == c2: • 2. False
print("True")
else: • 3. Unknown
print("False")
• 4. TypeError
22
22
Ans: 2
Click to edit Master title style
23
23