Home / Engineering / Problem Solving and Python Programming MCQs / Page 6
Problem Solving and Python Programming MCQs | Page - 6
Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
M
Q. 51) What will be the output of the following
Python code?
>>> str1 = 'hello'
>>> str2 = ','
>>> str3 = 'world'
>>> str1[-1:]
M
Q. 52) What arithmetic operators cannot be used with strings?
M
Q. 53) What will be the output of the following Python code? >>>print (r"\nhello")
M
Q. 54) What will be the output of the following Python code? >>>print('new' 'line')
M
Q. 55) What will be the output of the following
Python code?
1. >>>str1="helloworld"
2. >>>str1[::-1]
M
Q. 56) What will be the output of the following
Python code?
print(0xA + 0xB + 0xC)
M
Q. 57) What will be the output of the following
Python code?
1. class father:
2. def __init__(self, param):
3. self.o1 = param
4.
5. class child(father):
6. def __init__(self, param):
7. self.o2 = param
8.
9. >>>obj = child(22)
10. >>>print "%d %d" % (obj.o1, obj.o2)
M
Q. 58) What will be the output of the following
Python code?
1. class tester:
2. def __init__(self, id):
3. self.id = str(id)
4. id="224"
5.
6. >>>temp = tester(12)
7. >>>print(temp.id)
M
Q. 59) 3. What will be the output of the following
Python code?
1. >>>example = "snow world"
2. >>>print("%s" % example[4:7])
M
Q. 60) What will be the output of the following
Python code?
1. >>>example = "snow world"
2. >>>example[3] = 's'
3. >>>print example
Explore Sets
Problem Solving and Python Programming MCQs Set 1
Problem Solving and Python Programming MCQs Set 2
Problem Solving and Python Programming MCQs Set 3
Problem Solving and Python Programming MCQs Set 4
Problem Solving and Python Programming MCQs Set 5
Problem Solving and Python Programming MCQs Set 6
Problem Solving and Python Programming MCQs Set 7
Problem Solving and Python Programming MCQs Set 8
Problem Solving and Python Programming MCQs Set 9
Problem Solving and Python Programming MCQs Set 10
Problem Solving and Python Programming MCQs Set 11
Problem Solving and Python Programming MCQs Set 12
Problem Solving and Python Programming MCQs Set 13
Problem Solving and Python Programming MCQs Set 14
Problem Solving and Python Programming MCQs Set 15
Problem Solving and Python Programming MCQs Set 16
Problem Solving and Python Programming MCQs Set 17
Problem Solving and Python Programming MCQs Set 18
Problem Solving and Python Programming MCQs Set 19
Problem Solving and Python Programming MCQs Set 20
Problem Solving and Python Programming MCQs Set 21
Problem Solving and Python Programming MCQs Set 22
Problem Solving and Python Programming MCQs Set 23
Problem Solving and Python Programming MCQs Set 24
Problem Solving and Python Programming MCQs Set 25
Problem Solving and Python Programming MCQs Set 26
Problem Solving and Python Programming MCQs Set 27
Problem Solving and Python Programming MCQs Set 28
Problem Solving and Python Programming MCQs Set 29
Problem Solving and Python Programming MCQs Set 30
Problem Solving and Python Programming MCQs Set 31
Problem Solving and Python Programming MCQs Set 32
Problem Solving and Python Programming MCQs Set 33
Problem Solving and Python Programming MCQs Set 34
Problem Solving and Python Programming MCQs Set 35
Problem Solving and Python Programming MCQs Set 36
Problem Solving and Python Programming MCQs Set 37
Problem Solving and Python Programming MCQs Set 38
Problem Solving and Python Programming MCQs Set 39
Problem Solving and Python Programming MCQs Set 40
Problem Solving and Python Programming MCQs Set 41
Explore More Categories
Click on category to learn MCQs of that category.Electronics and Communication Engineering