Home
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
Other 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
2024
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
Which of these is the definition for packages in Python?
पायथन में पैकेजों की परिभाषा इनमें से कौन सी है?
A set of main modules.
A folder of python modules
A number of files containing Python definitions and statements.
A set of programs making use of Python modules.
Next Question
25
See Explanation !
2
What is the output of the following code? a = set('dcma') b = set('mlpc') print(a^b)
निम्नलिखित कोड का परिणाम क्या है? a = set('dcma') b = set('mlpc') print(a^b)
{‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}
{‘m’, ‘l’, ‘p’, ‘c’}
{‘d’, ‘c’, ‘m’, ‘a’}
None of These
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
True
False
Error
None
Previous Question
Next Question
25
See Explanation !
4
n the Python statement x =a + 5 - b : a + 5 - b is
n पायथन कथन x =a 5 - b : a 5 - b है
Operands
Expression
operators
Equation
Previous Question
Next Question
25
See Explanation !
5
Which of the following functions helps us to randomize the items of a list?
निम्नलिखित में से कौन सा फ़ंक्शन किसी लिस्ट के आइटम्स को रैनडोमाइज़ करने में हमारी हेल्प करता है?
seed
randomise
shuffle
uniform
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? x = 'abcd' for i in range(x): print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = 'abcd' for i in range(x): print(i)
a b c d
0 1 2 3
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following ? import numpy as np a = np.arange(5,1) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.arange(5,1) print(a)
[ ]
[1 2 3 4 5]
[5 4 3 2 1]
[1 2 3 4]
Previous Question
Next Question
25
See Explanation !
8
Operations to be repeated a certain number of times are done by
संक्रियाओं को एक निश्चित संख्या में बार-बार दोहराए जाने के द्वारा किया जाता है
Selection
Sequential
Simple
Loop
Previous Question
Next Question
25
See Explanation !
9
What is the output of the following code ? import numpy as np a = np.array([[1,2,3]]) print(a.shape)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[1,2,3]]) print(a.shape)
(2,3)
(3,1)
(1,3)
None of These
Previous Question
Next Question
25
See Explanation !
10
Python Programs are typed in
पायथन प्रोग्राम टाइप किए गए हैं
Interactive Mode
Script Mode
Both Interactive Mode or Script Mode
None of These
Previous Question
Next Question
25
See Explanation !
11
Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
open_file()
file_open()
open()
read_file()
Previous Question
Next Question
25
See Explanation !
12
What is identity array?
Identity Array क्या है?
This is a square array with ones on the main diagonal.
This is a normal array.
This is a array with ones on the main diagonal.
None of these
Previous Question
Next Question
25
See Explanation !
13
What does the function re-search do?
फ़ंक्शन फिर से खोज क्या करता है?
matches a pattern at the start of the string.
matches a pattern at any position in the string.
such a function does not exist
none of the mentioned.
Previous Question
Next Question
25
See Explanation !
14
In computer science, refers to a special method usable by a computer for the solution to a problem.
कंप्यूटर विज्ञान में, किसी समस्या के समाधान के लिए कंप्यूटर द्वारा उपयोग की जाने वाली एक विशेष विधि को संदर्भित करता है।
algorithm
program
Graph
None of these
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code snippet? a={} a['a']=1 a['b']=[2,3,4] print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={} a['a']=1 a['b']=[2,3,4] print(a)
Exception is thrown
{‘b’: [2], ‘a’: 1}
{‘b’: [2], ‘a’: [3]}
{'a': 1, 'b': [2, 3, 4]}
Previous Question
Next Question
25
See Explanation !
16
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 !
17
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किस एक की अभिव्यक्ति में सर्वोच्च प्राथमिकता है?
Exponential
Addition
Multiplication
Parentheses
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code snippet? print('Ab!2'.swapcase())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' Ab!2 '.swapcase ())
AB!@
ab12
aB!2
aB1@
Previous Question
Next Question
25
See Explanation !
19
______ are additional readable information to clarify the statement in python.
अजगर में कथन को स्पष्ट करने के लिए ______ अतिरिक्त पठनीय जानकारी हैं।
Comments
Expressions
Tokens
Flow of control
Previous Question
Next Question
25
See Explanation !
20
Empty list in python is made by ?
अजगर में खाली सूची किसके द्वारा बनाई गई है?
l=[]
l=list()
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
21
Which function is used to converts and returns the binary equivalent string of a given integer.
किसी दिए गए पूर्णांक के द्विआधारी समतुल्य स्ट्रिंग को परिवर्तित करने और वापस करने के लिए किस फ़ंक्शन का उपयोग किया जाता है।
bin()
int()
binary()
Zip()
Previous Question
Next Question
25
See Explanation !
22
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 !
23
In python-1 corresponds to the :
Python-1 में निम्नलिखित से मेल खाता है :
last index
first index
middle index
end index
Previous Question
Next Question
25
See Explanation !
24
____ is a set of functions you want to include in your application.
____ फ़ंक्शंस का एक सेट है जिसे आप अपने ऐप्लिकेशन में शामिल करना चाहते हैं।
Module
Function
Folder
None of these
Previous Question
Next Question
25
See Explanation !
25
Which of the following methods is not a string method in Python?
पायथन में निम्नलिखित में से कौन सी विधि स्ट्रिंग विधि नहीं है?
capitalize()
startswith()
pop()
find()
Previous Question