Python MCQ Questions Set-9

Here is an interesting Python Multiple choice questions Quiz. Attempting this MCQ will help you to evaluate your knowledge and skills. 1.What will be the output of the following Python code? def mk(x):def mk1():print(“Decorated”)x()return mk1def mk2():print(“Ordinary”)p = mk(mk2)p() a)DecoratedDecoratedb)OrdinaryOrdinaryc)OrdinaryDecoratedd)DecoratedOrdinary 2. What will be the output of the following Python code? def ordi():print(“Ordinary”)ordiordi()a)Ordinaryb)Error 3. What will … Read more

What is the Full Form of SDM?

The full form of SDM is Sub Divisional Magistrate. SDM is an administrative officer. Our country is divided into a number of states. States are divided into a number of districts. Districts are divided into subdivisions. These subdivisions are managed and controlled by SDM. SDM is an IAS officer. Full form of SDM reveals the … Read more

Python MCQ Questions Set-8

Here is an interesting Python Multiple choice questions Quiz. Attempting this MCQ will help you to evaluate your knowledge and skills. Assume that there is a file ‘somefile.txt’ with the given contents.Contents of somefile.txt:This is first line.This is second line.This is third line. What will be the output of the following code?file = open(“somefile.txt”, “r”)content1 … Read more

Python MCQ Questions Set-7

python-mcq

Here is an interesting Python Multiple choice questions Quiz. Attempting this MCQ will help you to evaluate your knowledge and skills. Q1 What is the output of following code?def fun(name,age):print(name)print(age)fun(25,”tom”)a)25 tomb)25 ‘tom’c) tom 25d)tom ‘25’ Q2. What is the output of following code?def fun(name,age):print(“name is “,name)print(“age is “,age)fun(age=25,name=”jack”)a) name is jack age is 25b) name … Read more

Python MCQ Questions Set-6

python-mcq

Here is an interesting Python Quiz. Attempting these Multiple choice questions will help you to evaluate your knowledge and skills. Which of the following commands will create a list?a) list1 = list()b) list1 = []c)list1=[1,2,3,4]d) all of the mentioned What is the output when we execute list(“hello”)?a) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]b) [‘hello’]c) [‘llo’]d) [‘olleh’] … Read more