Syllabus
O Level
M1 R5: Information Technology Tools and Network Basics
Introduction to Computers
Office Automation Tools
Internet and Web Technologies
Networking Fundamentals
M2 R5: Web Designing and Publishing
HTML
CSS
Javascript
Web Hosting And Publishing
M3 R5: Programming and Problem Solving through Python
Introduction to Programming
Python Programming
Data Structures in Python
File Processing in Python
M4 R5: Internet of Things (IoT) and Its Applications
Introduction to IoT
IoT Architecture
IoT Applications
IoT Security and Challenges | Soft Skills
Courses
Under Graduate Courses
BA
BCA
B.COM
Post Graduate Courses
MCA
MBA
M.COM
MA
M.SC.(MATHS)
MSW
Institutional Courses
DCA
ADCA
DFA
DOAP
TALLY PRIME
JAVA
PYTHON
CCA
C Languages
Job Oriented Courses
Digital Marketing
Full Stack Development
Data Science
Cybersecurity and Ethical Hacking
Blockchain Development
Cloud Computing
Artificial Intelligence (AI) and Machine Learning
Government Courses
CCC
O LEVEL
A LEVEL
Mock Test
M1 R5: Information Technology Tools and Network Basics
M2 R5: Web Designing and Publishing
M3 R5: Programming and Problem Solving through Python
M4 R5: Internet of Things (IoT) and Its Applications
Old Papers
2025
New!
2024
New!
2023
New!
2022
New!
2021
New!
2020
New!
2019
New!
2018
New!
2017
New!
2016
New!
2015
New!
2014
New!
2013
New!
2012
New!
2011
New!
Assignments
HTML
New!
CSS
New!
Javascript
New!
Python
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Data Structures in Python
Set 13
25
See Explanation !
1
Which is the most appropriate definition for recursion?
पुनरावृत्ति के लिए सबसे उपयुक्त परिभाषा कौन सी है?
A function that calls itself
A function execution instance that calls another execution instance of the same function
A class method that calls another class method
An in-built method that is automatically called
Next Question
25
See Explanation !
2
Which of these is false about recursion?
इनमें से कौन सी पुनरावृत्ति के बारे में गलत है?
Recursive function can be replaced by a non-recursive function
Recursive functions usually take more memory space than non-recursive function
Recursive functions run faster than non-recursive function
Recursion makes programs easier to understand
Previous Question
Next Question
25
See Explanation !
3
What is tail recursion?
टेल रिकर्शन क्या है?
A recursive function that has two base cases
A function where the recursive functions leads to an infinite loop
A recursive function where the function doesn’t return anything and just prints the values
A function where the recursive call is the last thing executed by the function
Previous Question
Next Question
25
See Explanation !
4
Which of the following statements is false about recursion?
निम्नलिखित में से कौन सा स्टेट्मेंट रिकर्शन के बारे में गलत है?
Every recursive function must have a base case
Infinite recursion can occur if the base case isn’t properly mentioned
A recursive function makes the code easier to understand
Every recursive function must have a return value
Previous Question
Next Question
25
See Explanation !
5
What happens if the base condition isn’t defined in recursive programs?
यदि रिकर्सिव फ़ंक्शन में बेस की कंडीशन को डिफाइन नहीं किया जाता है तो क्या होता है?
Program gets into an infinite loop
Program runs once
Program runs n number of times where n is the argument given to the function
An exception is thrown
Previous Question
Next Question
25
See Explanation !
6
Which of these is not true about recursion?
इनमें से कौन सा रिकर्शन के बारे में सच नहीं है?
Making the code look clean
A complex task can be broken into sub-problems
Recursive calls take up less memory
Sequence generation is easier than a nested iteration
Previous Question
Next Question
25
See Explanation !
7
The small sections of code that are used to perform a particular task is called
कोड के छोटे खंड जो किसी विशेष कार्य को करने के लिए उपयोग किए जाते हैं, कहलाते हैं
Subroutines
Files
Pseudo code
Modules
Previous Question
Next Question
25
See Explanation !
8
Which of the following is a unit of code that is often defined within a greater code structure?
निम्नलिखित में से कौन सी कोड की वह इकाई है जिसे अक्सर एक बड़ी कोड संरचना के भीतर परिभाषित किया जाता है?
Subroutines
Function
Files
Modules
Previous Question
Next Question
25
See Explanation !
9
Which of the following is a distinct syntactic block?
निम्नलिखित में से कौन सा एक विशिष्ट वाक्यात्मक ब्लॉक है?
Subroutines
Function
Definition
Modules
Previous Question
Next Question
25
See Explanation !
10
The variables in a function definition are called as
फ़ंक्शन परिभाषा में वेरिएबल्स को कहा जाता है
Subroutines
Function
Function
Parameters
Previous Question
Next Question
25
See Explanation !
11
The values which are passed to a function definition are called
फ़ंक्शन परिभाषा में जो मान पास किए जाते हैं उन्हें कहा जाता है
Arguments
Subroutines
Function
Definition
Previous Question
Next Question
25
See Explanation !
12
Given a function that does not return any value, what value is shown when executed at the shell ?
एक फ़ंक्शन जो कोई मान नहीं लौटाता है ,शेल पर निष्पादित होने पर कौन सा मान दिखाया जाता है
int
bool
void
None
Previous Question
Next Question
25
See Explanation !
13
How many numbers will be printed by the following code? def fun(a,b): for x in range(a,b+1): if x%3==0: print(x,end=" ") fun(100,120)
निम्नलिखित कोड से कितनी संख्याएँ मुद्रित होंगी? def fun(a,b): for x in range(a,b+1): if x%3==0: print(x,end=" ") fun(100,120)
7
8
6
9
Previous Question
Next Question
25
See Explanation !
14
What is the output of below program ? def maximum(x,y): if x>y: return x elif x==y: return "The number are equal" else: return y print(maximum(2,3))
निम्नलिखित कोड से कितनी संख्याएँ मुद्रित होंगी? def maximum(x,y): if x>y: return x elif x==y: return "The number are equal" else: return y print(maximum(2,3))
2
3
The number are equal
None of These
Previous Question
Next Question
25
See Explanation !
15
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)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? 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)
3
4
4 is maximum
None of these
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following python program? def addItem(listParam): listParam+=[1] mylist=[1,2,3,4] addItem(mylist) print(len(mylist))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def addItem(listParam): listParam+=[1] mylist=[1,2,3,4] addItem(mylist) print(len(mylist))
5
8
2
1
Previous Question
Next Question
25
See Explanation !
17
What is the output of below program ? def say(message, times =1): print(message * times) say("Hello") say("Word",5)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def say(message, times =1): print(message * times) say("Hello") say("Word",5)
Hello WordWordWordWordWord
Hello Word 5
Hello Word,Word,Word,Word,Word
Hello HelloHelloHelloHelloHello
Previous Question
Next Question
25
See Explanation !
18
What is the output of this code? def calc(x): r=2*x**2 return r print(calc(5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def calc(x): r=2*x**2 return r print(calc(5))
Error
50
100
20
Previous Question
Next Question
25
See Explanation !
19
What is the output of the following code ? def add(a, b): return a+5, b+5 result = add(3,2) print(result)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def add(a, b): return a+5, b+5 result = add(3,2) print(result)
15
8
(8,7)
Error
Previous Question
Next Question
25
See Explanation !
20
How many arguments a Python program can accept from the command line?
पायथन प्रोग्राम कमांड लाइन से कितने तर्क स्वीकार कर सकता है?
One
Two
Three
Any Number of Times
Previous Question
Next Question
25
See Explanation !
21
What is the return type of following function ? def func1(): return 'mnp',22 print(type(func1()))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def func1(): return 'mnp',22 print(type(func1()))
List
Dictionary
String
Tuple
Previous Question
Next Question
25
See Explanation !
22
Which part of the memory does the system store the parameter and local variables of a function call ?
मेमोरी का कौन सा भाग सिस्टम फ़ंक्शन कॉल के पैरामीटर और स्थानीय चर को संग्रहीत करता है?
Heap
Stack
Uninitialized data segment
None of the above
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following? def iq(a,b): if(a==0): return b else: return iq(a-1,a+b) print(iq(3,6))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def iq(a,b): if(a==0): return b else: return iq(a-1,a+b) print(iq(3,6))
9
10
11
12
Previous Question
Next Question
25
See Explanation !
24
What is the output of the following code ? def fun(a, b=6): a=a+b print(a) fun(5, 4)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
11
9
5
4
Previous Question
Next Question
25
See Explanation !
25
Function defined to achieve some task as per the programmers requirement is called a :
प्रोग्रामर की आवश्यकता के अनुसार कुछ कार्य को पूरा करने के लिए परिभाषित फ़ंक्शन को कहा जाता है:
User Defined Function
Library Functions
Builtin Functions
All of the above
Previous Question