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? a={1:5,2:3,3:4} a.pop(3) print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:5,2:3,3:4} a.pop(3) print(a)
{1: 5}
{1: 5, 2: 3}
Error, syntax error for pop() method
{1: 5, 3: 4}
Next Question
25
See Explanation !
2
Which among the following list of operators has the highest precedence? +, -, **, %, /, <<, >>, |
ऑपरेटरों की निम्नलिखित सूची में से किसकी सर्वोच्च प्राथमिकता है? , -, **, %, /, <<, >>, |
<<
**
|
%
Previous Question
Next Question
25
See Explanation !
3
To give a different separator with print() ______ argument is sued.
Print() ______ तर्क के साथ एक अलग विभाजक देने के लिए मुकदमा दायर किया जाता है।
sep
separator
end
tab
Previous Question
Next Question
25
See Explanation !
4
If a is a dictionary with some key-value pairs, what does a.popitem() do?
यदि कुछ की-वैल्यू वाले पेअर के साथ एक ड़िक्शनरी है,तो a.popitem () क्या करता है?
Removes an arbitrary element
Removes all the key-value pairs
Removes the key-value pair for the key given as an argument
Invalid method for dictionary
Previous Question
Next Question
25
See Explanation !
5
What will happen if you try to access a key that doesn’t exist in a dictionary?
अगर आप किसी ऐसी कुंजी को एक्सेस करने की कोशिश करते हैं, जो किसी शब्दकोश में मौजूद नहीं है, तो क्या होगा?
Returns None
Throws a KeyError
Creates a new key with a default value
Crashes the program
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for lst in values: for element in lst: if v > element: v = element print(v)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for lst in values: for element in lst: if v > element: v = element print(v)
1
3
5
6
Previous Question
Next Question
25
See Explanation !
7
What is the output of the following code? count=0 while count<3: print(count,end=" ") count+=1
निम्नलिखित कोड का आउटपुट क्या है? count=0 while count<3: print(count,end=" ") count+=1
0 1 2
1 2 3
0 1 2 3
Error
Previous Question
Next Question
25
See Explanation !
8
The way for solving a problem step by step is know as
किसी समस्या को चरण - दर - चरण हल करने का तरीका यह है कि
Design
Palnning
Algorithm
Execution
Previous Question
Next Question
25
See Explanation !
9
By using function _____ ,we can change the shape of the Numpy array in python.
फ़ंक्शन _____ का उपयोग करके,हम अजगर में Numpy सरणी के आकार को बदल सकते हैं।
shape ()
reshape()
change()
None of these
Previous Question
Next Question
25
See Explanation !
10
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()?
मान लीजिए सूची है। [3, 4, 5, 20, 5, 25, 1, 3], listExample.pop() के बाद लिस्ट1 क्या है।
[3, 4, 5, 20, 5, 25, 1]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
Previous Question
Next Question
25
See Explanation !
11
When we open file in append mode the file pointer is at the ______ of the file.
जब हम अपेंड मोड में फाइल खोलते हैं तो फाइल पॉइंटर फाइल के _____ पर होता है।
end
beginning
anywhere in between the file
None of the above
Previous Question
Next Question
25
See Explanation !
12
To convert the read value through input() into integer type, ______ () is used
इनपुट () के माध्यम से रीड वैल्यू को पूर्णांक प्रकार में बदलने के लिए, ______ () का उपयोग किया जाता है
floating
float
int
integer
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? str1="helloworld" print(str1[::-1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? str1="helloworld" print(str1[::-1])
dlrowolleh
hello
world
helloworld
Previous Question
Next Question
25
See Explanation !
14
Which is/are the the valid string value in Python
पायथन में मान्य स्ट्रिंग मान कौन सा है/हैं
"12345"
"@#$%"
"Rajesh"
All of These
Previous Question
Next Question
25
See Explanation !
15
Which of the following methods can be used with a tuple?
निम्नलिखित में से किस विधि का उपयोग टपल के साथ किया जा सकता है?
append()
insert()
index()
remove()
Previous Question
Next Question
25
See Explanation !
16
What will the following code output? print(‘\\n’)
निम्नलिखित कोड आउटपुट क्या होगा? print ('\\n ')
\\n
\n
New line
Error
Previous Question
Next Question
25
See Explanation !
17
The syntax used to rename a file :
फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:
os.rename(existing_name, new_name)
fq.name = ‘new_name.txt’
os.rename(fp, new_name)
os.set_name(existing_name, new_name)
Previous Question
Next Question
25
See Explanation !
18
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1.count(5)?
मान लीजिए कि लिस्ट1 है [3, 4, 5, 20, 5, 25, 1, 3], list1.count (5) क्या है?
0
4
1
2
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code? def m(list): v = list[0] for e in list: if v < e: v = e return v values = [[3, 4, 5, 1], [33, 6, 1, 2]] for row in values: print(m(row), end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def m(list): v = list[0] for e in list: if v < e: v = e return v values = [[3, 4, 5, 1], [33, 6, 1, 2]] for row in values: print(m(row), end = " ")
3 33
1 1
5 6
5 33
Previous Question
Next Question
25
See Explanation !
20
The function generates sequence of numbers from 1 to n.
फ़ंक्शन 1 से n तक संख्याओं का अनुक्रम उत्पन्न करता है।
Range
Input
Open
Pass
Previous Question
Next Question
25
See Explanation !
21
You do not have pay Python and you can view its source code too. it means Python is _______
आपके पास पायथन का भुगतान नहीं है और आप इसका स्रोत कोड भी देख सकते हैं। इसका मतलब है कि पायथन _______ है
Free and Open Source
Freeware
Open source
Shareware
Previous Question
Next Question
25
See Explanation !
22
def keyword use for?
def कीवर्ड का उपयोग किसके लिए किया जाता है?
Define keyword in python
Define variable in python
Define function in python
All of the above
Previous Question
Next Question
25
See Explanation !
23
Which of the following NumPy function is used to create an identity matrix?
पहचान मैट्रिक्स बनाने के लिए निम्नलिखित में से किस NumPy फ़ंक्शन का उपयोग किया जाता है?
np.identity()
np.eye()
np.matrix()
np.ones()
Previous Question
Next Question
25
See Explanation !
24
NumPY stands for:
NumPY का पूर्ण रूप है:
Numbering Python
Number In Python
Numerical Python
None of the above
Previous Question
Next Question
25
See Explanation !
25
____ are the arguments passed to a function in correct positional order.
सही स्थिति क्रम में किसी फंक्शन को दिए गए आर्गुमेन्ट हैं।
Required arguments
Keyword arguments
Default arguments
Variable-length arguments
Previous Question