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 14
25
See Explanation !
1
How is a function declared in Python ?
पायथन में एक फ़ंक्शन कैसे घोषित किया जाता है?
def function function_name():
declare function function_name():
def function_name():
declare function_name():
Next Question
25
See Explanation !
2
What is the output of the following code ? def disp(*arg): for i in arg: print(i) disp(name="Rajat", age="20")
निम्नलिखित कोड का परिणाम क्या है ? def disp(*arg): for i in arg: print(i) disp(name="Rajat", age="20")
TypeError
Rajat 20
Name age
None of these
Previous Question
Next Question
25
See Explanation !
3
What is the output of the following code? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
निम्नलिखित कोड का परिणाम क्या है ? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
x is now 50
x is now 2
x is now 100
Error
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? example = "helle" print(example.rfind("e"))
निम्नलिखित कोड का परिणाम क्या है ? example = "helle" print(example.rfind("e"))
1
2
4
5
Previous Question
Next Question
25
See Explanation !
5
What is the value of the following Python code? >>>print(36 / 4)
निम्नलिखित कोड का परिणाम क्या है ?
9
4
9.0
4.0
Previous Question
Next Question
25
See Explanation !
6
Given a string x="hello" What is the output of x.count('l')?
एक स्ट्रिंग x = "hello " को देखते हुए x.count ('1') का आउटपुट क्या है?
2
1
0
none
Previous Question
Next Question
25
See Explanation !
7
What is the output of the following y='klmn' for i in range(len(y)): print(y)
निम्नलिखित कोड का परिणाम क्या है ? y='klmn' for i in range(len(y)): print(y)
klmn klmn klmn klmn
k
kkk
None of the these
Previous Question
Next Question
25
See Explanation !
8
Structured program can be broken into to assign to more than one developer
एक से अधिक डेवलपर को असाइन करने के लिए संरचित प्रोग्राम को खंडित किया जा सकता है
Segments
Modules
Units
All the above
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code? from math import factorial print(math.factorial(5))
निम्नलिखित कोड का परिणाम क्या है ? from math import factorial print(math.factorial(5))
120
Nothing is printed
NameError: name 'math' is not defined
Error, the statement should be print factorial(5))
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following code snippet? numbers = (4, 7, 19, 2, 89, 45, 72, 22) sorted_numbers = sorted(numbers) odd_numbers = [x for x in sorted_numbers if x% 2!=0] print(odd_numbe
निम्नलिखित कोड का परिणाम क्या है ? numbers = (4, 7, 19, 2, 89, 45, 72, 22) sorted_numbers = sorted(numbers) odd_numbers = [x for x in sorted_numbers if x% 2!=0] print(odd_numbers)
[7, 19, 45, 89]
[2, 4, 22, 72]
[4, 7, 19, 2, 89, 45, 72, 22]
[24, 7, 19, 22, 45, 72, 89]
Previous Question
Next Question
25
See Explanation !
11
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully. fun1(25, 75, 55) fun1(10, 20)
fun1() का सही फ़ंक्शन घोषणापत्र चुनें ताकि हम निम्नलिखित दो फ़ंक्शन कॉल सफलतापूर्वक निष्पादित कर सकें fun1(25, 75, 55) fun1(10, 20)
def fun1(**kwargs)
def fun1(args*)
No, it is not possible in Python
def fun1(*data)
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? x='abcd' for i in x: print(i.upper())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x='abcd' for i in x: print(i.upper())
a BCD
abcd
error
A B CD
Previous Question
Next Question
25
See Explanation !
13
Which of the following functions is a built-in function in python
निम्न में से कौन सा फंक्शन पायथन में बिल्ट-इन फंक्शन है
factorial()
print()
seed()
sqrt()
Previous Question
Next Question
25
See Explanation !
14
What will be the output of following? Y=[2,5J,6] Y.sort()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? Y=[2,5J,6] Y.sort()
[2,6,5J]
[5J,2,6]
Error
[6,5J,2]
Previous Question
Next Question
25
See Explanation !
15
A statement is used when a statement is required syntactically but you do not want any code to execute.
एक स्टेटमेंट का उपयोग तब किया जाता है जब किसी स्टेटमेंट को वाक्यात्मक रूप से आवश्यक होता है लेकिन आप नहीं चाहते कि कोई कोड निष्पादित हो।
break
pass
continue
none of these
Previous Question
Next Question
25
See Explanation !
16
What is the output of the following code? def s(n1): print(n1) n1=n1+2 n2=4 s(n2) print(n2)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def s(n1): print(n1) n1=n1+2 n2=4 s(n2) print(n2)
6 4
4 6
4 4
6 6
Previous Question
Next Question
25
See Explanation !
17
What is the output of the following? x=123 for i in x: print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x=123 for i in x: print(i)
1 2 3
123
Error
none of these
Previous Question
Next Question
25
See Explanation !
18
The sequence logic will not be used while
____के समय सीक्वेंस लॉजिक का उपयोग नहीं किया जाएगा|
Subtracting two numbers
Comparing two data values
Providing output to the user
Adding two numbers
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code ? def display(b,n): while n>0: print(b,end='') n=n-1 display('z',3)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def display(b,n): while n>0: print(b,end='') n=n-1 display('z',3)
zzz
zz
Infinite loop
An exception is thrown
Previous Question
Next Question
25
See Explanation !
20
What is a variable defined outside a function referred to as ?
किसी फ़ंक्शन के बाहर परिभाषित वेरिएबल को क्या कहते है?
A static variable
A global variable
A local variable
An automatic variable
Previous Question
Next Question
25
See Explanation !
21
Recursive function is
रिकर्सिव फंक्शन _______है
A function that calls itself
A function that calls other functions
Both (A) and (B)
None of the above
Previous Question
Next Question
25
See Explanation !
22
Debugging is the process of fixing a______in the software.
डिबगिंग सॉफ्टवेयर में ______ को ठीक करने की प्रक्रिया है।
procedure
function
bug
None of these
Previous Question
Next Question
25
See Explanation !
23
To which of the following the "in" operator can be used to check if an item is in it?
निम्नलिखित में से किसके लिए "in" ऑपरेटर का उपयोग यह जांचने के लिए किया जा सकता है कि कोई आइटम उसमें है या नहीं?
Lists
Dictionary
String
All of the mentioned
Previous Question
Next Question
25
See Explanation !
24
Where is function defined?
फंक्शन को कहां डिफाइन किया जाता है?
In Module
In Class
In Another function
All of these
Previous Question
Next Question
25
See Explanation !
25
what is Lambda function in python
पायथन में लैम्ब्डा फंक्शन क्या है ?
A built-in Python function
A one-line anonymous function
Lambda is a function in python but user can not use it.
None of the above
Previous Question