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
Set
25
See Explanation !
1
What will be the output of the following Python code? data = [[[1, 2] , [3, 4]], [[5, 6], [7, 8]]] def ttt(m): v = m[0][0] for row in m: for element in row: if v < element: v = element return v print(t
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? data = [[[1, 2] , [3, 4]], [[5, 6], [7, 8]]] def ttt(m): v = m[0][0] for row in m: for element in row: if v < element: v = element return v print(ttt(data[0]))
1
2
4
5
Next Question
25
See Explanation !
2
Which of the following modules need to be imported to handle date time computations in Python?
दिनांक समय गणनाओं को संभालने के लिए निम्नलिखित में से किस मॉड्यूल को आयात करने की आवश्यकता है?
datetime
date
time
timedate
Previous Question
Next Question
25
See Explanation !
3
Which one of the following is the correct extension of the Python file-
निम्नलिखित में से कौन सा पायथन फ़ाइल का सही विस्तार है -
.py
.python
.p
None of these
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x = 'a' print(x)
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 04 MINUTES 55 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
a
abcd abcd abcd
a a a a
none of the mentioned
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python expression? print(4.00/(2.0+2.0))
निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा? print(4.00/(2.0 2.0))
Error
1.0
1.00
1
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? a=dict() print(a[1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=dict() print(a[1])
An exception is thrown since the dictionary is empty
‘ ‘
1
0
Previous Question
Next Question
25
See Explanation !
7
_______ are user Define name
_______ उपयोगकर्ता हैं नाम को परिभाषित करें
Identifiers
constant
syntax
expression
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)
[10,34,56,[95]]
[10,23,56,[78]]
[10,23,56,[95]]
[10,34,56,[78]]
Previous Question
Next Question
25
See Explanation !
9
A stores information in the form of a stream of ASCII or unicode characters i.e. human readable.
एक सूचन को मानव पठनीय अर्थात ASCII या यूनिकोड वर्णों की एक स्ट्रीम के रूप में संग्रहीत करती है।
Text file
Binary file
Both (A) and (B)
None of these
Previous Question
Next Question
25
See Explanation !
10
Which of the following precedence order is correct in Python?
पायथन में निम्नलिखित में से कौन सा वरीयता क्रम सही है?
Parentheses, Exponential,Multiplication, Division, Addition, Subtraction
Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
Exponential,Parentheses,Multiplication, Division, Addition, Subtraction
Previous Question
Next Question
25
See Explanation !
11
How many keywords present in the python programming language?
अजगर प्रोग्रामिंग भाषा में कितने कीवर्ड मौजूद हैं?
32
64
35
29
Previous Question
Next Question
25
See Explanation !
12
If wd="Hello World" then which of the following statements will display last five characters of the string object?
यदि wd="Hello World" है तो निम्नलिखित में से कौन सा कथन स्ट्रिंग ऑब्जेक्ट के अंतिम पाँच अक्षर प्रदर्शित करेगा?
wd[4:]
wd[:4]
wd[-5:]
wd[:-4]
Previous Question
Next Question
25
See Explanation !
13
Which of the following function of dictionary gets all the keys from the dictionary?
शब्दकोश के निम्नलिखित में से कौन सा कार्य शब्दकोश से सभी कुंजी प्राप्त करता है?
getkeys ()
key()
keys()
None
Previous Question
Next Question
25
See Explanation !
14
If we have two sets, s1 and s2, and we want to check if all the elements of s1 are present in s2 or not, we can use the function:
यदि हमारे पास दो सेट हैं, s1 और s2, और हम यह चेक करना चाहते हैं कि s1 के सभी एलिमेंट s2 में मौजूद हैं या नहीं, हम फ़ंक्शन का यूज़ कर सकते हैं:
s2.issubset(s1)
s2.issuperset(s1)
s1.issuperset(s2)
s1.isset(s2)
Previous Question
Next Question
25
See Explanation !
15
To add a new element to a list we use which Python command?
एक सूची में एक नया तत्व जोड़ने के लिए हम किस पायथन कमांड का उपयोग करते हैं?
list1.addEnd (5)
list1.addLast (5)
list1.append (5)
list1.add(5)
Previous Question
Next Question
25
See Explanation !
16
Which of the following is equivalent to random.randrange(3)?
निम्नलिखित में से कौन random.randrange(3) के बराबर है?
range(3)
random.choice(range(0, 3))
random.shuffle(range(3))
random.select(range(3))
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
Error, copy() method doesn’t exist for dictionaries
{1: ‘A’, 2: ‘B’, 3: ‘C’}
{1: ‘A’, 2: ‘D’, 3: ‘C’}
“None” is printed
Previous Question
Next Question
25
See Explanation !
18
Which of the following function headers is correct ?
निम्नलिखित में से कौन सा फंक्शन हेडर सही है?
def fun (a = 2, b = 3, c)
def fun(a = 2, b, c = 3)
def fun(a, b = 2, c = 3)
def fun(a, b, c = 3, d)
Previous Question
Next Question
25
See Explanation !
19
The default separator character of print() is ___
Print() का डिफ़ॉल्ट विभाजक वर्ण ___ है
tab
space
newline
dot
Previous Question
Next Question
25
See Explanation !
20
find the output of following code: import math print(math.fabs(-3.4))
निम्नलिखित कोड का आउटपुट खोजें: import math print(math.fabs(-3.4))
-3.4
3.4
4.3
3
Previous Question
Next Question
25
See Explanation !
21
The data type whose representation is unknown are called
जिस डेटा प्रकार का प्रतिनिधित्व अज्ञात है उसे कहा जाता है
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python statement? print(chr(ord('b')+1))
निम्नलिखित पायथन कथन का आउटपुट क्या होगा? print(chr(ord('b')+1))
a
b
c
A
Previous Question
Next Question
25
See Explanation !
23
What is the purpose of the elif statement in Python?
पायथन में एलिफ स्टेटमेंट का पर्पज क्या है?
To create an infinite loop.
To check additional conditions when the first if condition is False.
To end the if block.
To execute code unconditionally.
Previous Question
Next Question
25
See Explanation !
24
In what language is the Python programming language written?
पायथन प्रोग्रामिंग भाषा किस भाषा में लिखी जाती है?
C
C++
JAVA
PHP
Previous Question
Next Question
25
See Explanation !
25
Error does not fall into any category
गड़बड़ी किसी भी श्रेणी में नहीं आती है
Syntax Error
Runtime Error
Value Error
None of these
Previous Question