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 12
25
See Explanation !
1
What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? sum(2,4,6) sum([1,2,3])
Error, 6
12, Error
12, 6
Error, Error
Next Question
25
See Explanation !
2
What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? min(max(False,-3,-4), 2,7)
2
False
-3
-4
Previous Question
Next Question
25
See Explanation !
3
The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:
फ़ंक्शन डिमोड (ए, बी), जहां दोनों ‘a’ और ‘b’ इन्टिजर हैं, का इवैल्यूऐटनिम्नानुसार किया जाता है:
(a%b, a//b)
(a//b, a%b)
(a//b, a*b)
(a/b, a%b)
Previous Question
Next Question
25
See Explanation !
4
Which of the following functions does not necessarily accept only iterables as arguments?
निम्नलिखित में से कौन सा फंक्शन केवल नेससेरली को आर्ग्यमन्ट के रूप में एक्सेप्ट नहीं करता है?
enumerate()
all()
chr()
max()
Previous Question
Next Question
25
See Explanation !
5
Which of the following functions accepts only integers as arguments?
निम्नलिखित में से कौन सा फंक्शन केवल इन्टिजर को आर्ग्यमन्ट के रूप में एक्सेप्ट करता है?
ord()
min()
chr()
any()
Previous Question
Next Question
25
See Explanation !
6
Suppose there is a list such that: l=[2,3,4]. If we want to print this list in reverse order, which of the following methods should be used?
मान लीजिए कि एक लिस्ट ऐसी है: l = [2,3,4]। यदि हम इस लिस्ट को रिवर्स ऑर्डर में प्रिंट करना चाहते हैं, तो निम्न में से किस मैथड का यूज़ किया जाना चाहिए?
reverse(l)
list(reverse[(l)])
reversed(l)
list(reversed(l))
Previous Question
Next Question
25
See Explanation !
7
Which of the following functions will not result in an error when no arguments are passed to it?
जब कोई आर्ग्यमन्ट पास नहीं किया जाता हैं, तो निम्नलिखित में से कौन से फंक्शन में एरर आएगा ?
min()
divmod()
all()
float()
Previous Question
Next Question
25
See Explanation !
8
Which of the following functions does not throw an error?
निम्नलिखित में से कौन सा फंक्शन एरर नहीं देता है?
ord()
ord(‘ ‘)
ord(”)
ord(“”)
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python function? len(["hello",2, 4, 6])
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? len(["hello",2, 4, 6])
4
3
Error
6
Previous Question
Next Question
25
See Explanation !
10
What is the length of sys.argv?
Sys.argv की लेंथ क्या है?
number of arguments
number of arguments + 1
number of arguments – 1
none of the mentioned
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
[0]
[1]
[1, 0]
[0, 1]
Previous Question
Next Question
25
See Explanation !
12
How are keyword arguments specified in the function heading?
फ़ंक्शन शीर्षक में कीवर्ड तर्क कैसे निर्दिष्ट किए जाते हैं?
one-star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Previous Question
Next Question
25
See Explanation !
13
How many keyword arguments can be passed to a function in a single function call?
एक फ़ंक्शन कॉल में एक फ़ंक्शन में कितने कीवर्ड तर्क पारित किए जा सकते हैं?
zero
one
zero or more
one or more
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])
3 1
1 3
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? def foo(): return total + 1 total = 0 print(foo())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(): कुल 1 कुल = 0 प्रिंट(foo ()) लौटाएं
0
1
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? def foo(): total += 1 return total total = 0 print(foo())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(): total = 1 return total = 0 print(foo ())
0
1
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code? def foo(x): x = ['def', 'abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(x): x = ['def', 'abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
18
How are variable length arguments specified in the function heading?
फ़ंक्शन हेडिंग में वैरिएबल लेंथ आर्ग्यमन्ट कैसे स्पेसिफ़ाइड किए जाते हैं?
one star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Previous Question
Next Question
25
See Explanation !
19
Which module in the python standard library parses options received from the command line?
पायथन स्टैंडर्ड लाइब्रेरी में कौन सा मॉड्यूल कमांड लाइन से प्राप्त ऑप्शन है?
getopt
os
getarg
main
Previous Question
Next Question
25
See Explanation !
20
How are default arguments specified in the function heading?
फ़ंक्शन के हैडिंग में डिफ़ॉल्ट आर्ग्यमन्ट कैसे स्पेसिफ़ाइड किए जाते हैं?
identifier followed by an equal to sign and the default value
identifier followed by the default value within backticks (“)
identifier followed by the default value within square brackets ([])
identifier
Previous Question
Next Question
25
See Explanation !
21
How are required arguments specified in the function heading?
फ़ंक्शन हेडिंग में आवश्यक आर्ग्यमन्ट कैसे स्पेसिफ़ाइड किए जाते हैं?
identifier followed by an equal to sign and the default value
identifier followed by the default value within backticks (“)
identifier followed by the default value within square brackets ([])
identifier
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
[3,2,4]
[2,3,4]
Error
[3,4,2]
Previous Question
Next Question
25
See Explanation !
24
Which of the following data structures is returned by the functions globals() and locals()?
निम्नलिखित में से कौन सा डेटा स्ट्रक्चर फंक्शन ग्लोबल्स () और लोकल लोगों () द्वारा रिटर्न की जाती है?
list
set
dictionary
tuple
Previous Question
Next Question
25
See Explanation !
25
What happens if a local variable exists with the same name as the global variable you want to access?
यदि कोई लोकल वैरिएबल वैसा ही नाम के साथ मौजूद है जैसा कि ग्लोबल वैरिएबल जिसे आप एक्सेस करना चाहते हैं?
Error
The local variable is shadowed
Undefined behavior
The global variable is shadowed
Previous Question