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
What will be the output of the following pseudo code? Integer a,b | set a=10,b=5 | a=a mod(a-6) | b=b mod(b-2) | print a-b
निम्नलिखित छद्म कोड का आउटपुट क्या होगा? पूर्णांक a,b | सेट a=10,b=5 | a = a mod(a -6) | b= b mod(b -2) | प्रिंट a - b
4
0
1
8
Next Question
25
See Explanation !
2
What will be the output of the following Python code? string = "my name is x" for i in string.split(): print (i, end=", ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? string = "my name is x" for i in string.split(): print (i, end=", ")
m, y, , n, a, m, e, , i, s, , x,
m, y, , n, a, m, e, , i, s, , x
my, name, is, x,
error
Previous Question
Next Question
25
See Explanation !
3
What will the following code output? a=555 b=55 print( b in a)
निम्नलिखित कोड क्या आउटपुट देगा? a=555 b=55 print( b in a)
True
False
55
TypeError
Previous Question
Next Question
25
See Explanation !
4
What is the output of the following? print(max([1, 2, 3, 4.] [4, 5, 6], [7]))
निम्नलिखित कोड का परिणाम क्या है ? print(max([1, 2, 3, 4.] [4, 5, 6], [7]))
[4,5, 6]
[7]
[1, 2,3, 4]
7
Previous Question
Next Question
25
See Explanation !
5
Which one of the following is immutable data type ?
निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?
list
set
tuple
dictionary
Previous Question
Next Question
25
See Explanation !
6
Select the reserved keyword in python.
पायथन में आरक्षित कीवर्ड का चयन करें।
else
raise
import
All of the mentioned
Previous Question
Next Question
25
See Explanation !
7
If return statement is not used inside the function, the function will return:
यदि फंक्शन के अंदर रिटर्न स्टेटमेंट का उपयोग नहीं किया जाता है, तो फंक्शन रिटर्न करेगा:
None
0
Null
Arbitary value
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[0] in a: print(a[0])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a = [0, 1, 2, 3] for a[0] in a: print(a[0])
0 1 2 3
0 1 2 2
3 3 3 3
error
Previous Question
Next Question
25
See Explanation !
9
___ is correct regarding the object- oriented programming concept in Python?
___ पायथन में ऑब्जेक्ट - ओरिएंटेड प्रोग्रामिंग अवधारणा के बारे में सही है?
Classes are real world entities.
Objects are real world entities
Objects and classes are real world entities.
objects are real-world entities while classes are not real.
Previous Question
Next Question
25
See Explanation !
10
Why does the name of local variables start with an underscore denote?
स्थानीय वेरिएबल्स का नाम अंडरस्कोर से क्यों शुरू होता है?
To identify the variable.
To identify the constant.
It indicates a public variable of a class.
Variables cannot be accessed from outside the class.
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? print('abcdef'.partition('cd'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('abcdef '.partition (' cd '))
(‘ab’, ‘ef’)
(‘abef’)
(‘ab’, ‘cd’, ‘ef’)
2
Previous Question
Next Question
25
See Explanation !
12
Tool ________ is used for program design.
टूल ________ का उपयोग प्रोग्राम डिज़ाइन के लिए किया जाता है।
Flowchart
Psuedocode
Algorithm
All of the above
Previous Question
Next Question
25
See Explanation !
13
What happens when multiple if statements are used instead of if-elif?
क्या होता है जब if-elif के स्थान पर मल्टीपल if स्टेटमेंट्स का यूज़ किया जाता है?
Only the first condition is checked.
All conditions are checked, even if one is True.
It behaves the same as if-elif.
It raises an error.
Previous Question
Next Question
25
See Explanation !
14
A program which translate a high-level language code into a machine language code is called
एक प्रोग्राम जो एक उच्च - स्तरीय भाषा कोड को मशीन भाषा कोड में अनुवादित करता है, उसे कहा जाता है
Compiler
Interpreters
Both Compiler and Interpreter
None of the above
Previous Question
Next Question
25
See Explanation !
15
Which of the following is the correct way to write multiple lines to a file in Python?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?
Use multiple write() statements.
Use writelines() method.
Use writeLine() method.
Use append() method.
Previous Question
Next Question
25
See Explanation !
16
In python we can change the value of variable
अजगर में हम चर का मान बदल सकते हैं
One Time
Two Time
Any Number of Time
we can not change the value of variable
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code? print('Hello!2@#World'.istitle())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('Hello!2@#World'.istitle())
True
False
None
error
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following code? print(10 // 3)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10 // 3)
3.33
3
4
Error
Previous Question
Next Question
25
See Explanation !
19
How can we create on empty list in Python?
हम पायथन में खाली सूची पर कैसे बना सकते हैं?
list=()
list.null
null.list
list=[]
Previous Question
Next Question
25
See Explanation !
20
Which operator is used for bitwise OR in Python?
पायथन में बिटवाइज या के लिए किस ऑपरेटर का उपयोग किया जाता है?
|
||
or
&
Previous Question
Next Question
25
See Explanation !
21
The code block within every function starts with a ____ ?
प्रत्येक फंक्शन के भीतर एक कोड ब्लॉक ... से शुरू होता है?
;
: :
:
%
Previous Question
Next Question
25
See Explanation !
22
_____function takes a list of lines to be written to file.
_____FUNCTION फ़ाइल में लिखी जाने वाली पंक्तियों की एक सूची लेता है।
writelines()
write()
tell()
None of these
Previous Question
Next Question
25
See Explanation !
23
What is a Python dictionary?
पायथन शब्दकोश क्या है?
A collection of ordered and mutable data
A collection of unordered and mutable data with key-value pairs
A collection of immutable key-value pairs
A collection of values only
Previous Question
Next Question
25
See Explanation !
24
Which of the following statement is false about recursion:
रिकर्सन के बारे में निम्नलिखित में से कौन सा कथन गलत है:
Every recursive function must have a base case
Infinite recursion can occur if the base case isn't properly mentioned
A recursive function makes the code easier to understand
Every recursive function must have a return value
Previous Question
Next Question
25
See Explanation !
25
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