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 python program? def addItem(listParam): listParam+=[1] mylist=[1,2,3,4] addItem(mylist) print(len(mylist))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def addItem(listParam): listParam+=[1] mylist=[1,2,3,4] addItem(mylist) print(len(mylist))
5
8
2
1
Next Question
25
See Explanation !
2
Which operator is also called as Conditional operator?
किस ऑपरेटर को कंडीशनल ऑपरेटर भी कहा जाता है?
Ternary
Relational
Logical
Assignment
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print("john" in d)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print("john" in d)
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
4
What will the following code output? a=5;b=7 b=a print(a,” ”,b)
निम्नलिखित कोड क्या आउटपुट देगा? a=5;b=7 b=a print(a,” ”,b)
5 7
7 5
5 5
7 7
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', -1))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd ', -1))
[‘ab’, ‘ef’, ‘gh’]
[‘ab’, ‘ef’, ‘gh’, ”]
(‘ab’, ‘ef’, ‘gh’)
(‘ab’, ‘ef’, ‘gh’, ”)
Previous Question
Next Question
25
See Explanation !
6
How do you insert a comment in Python?
आप पायथन में एक टिप्पणी कैसे सम्मिलित करते हैं?
<!-- This is Comment -->
// This is Comment
/* This is Comment */
# This is Comment
Previous Question
Next Question
25
See Explanation !
7
What is the order of namespaces in which Python looks for an identifier?
नामस्थानों का क्रम क्या है जिसमें पायथन एक पहचानकर्ता की तलाश करता है?
Python first searches the built-in namespace, then the global namespace and finally the local namespace.
Python first searches the built-in namespace, then the local namespace and finally the global namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
Python first searches the global namespace, then the local namespace and finally the built-in namespace
Previous Question
Next Question
25
See Explanation !
8
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 !
9
List structure in python where elements are stored in parenthesis.
अजगर में सूची संरचना जहां तत्व कोष्ठक में संग्रहीत किए जाते हैं।
[]
()
{}
none of these
Previous Question
Next Question
25
See Explanation !
10
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 !
11
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 !
12
which of the following are valid string manipulation function in python
पायथन में मान्य स्ट्रिंग हेरफेर फ़ंक्शन निम्नलिखित में से कौन से हैं
count()
strip()
upper()
All of the above
Previous Question
Next Question
25
See Explanation !
13
Which of the following character is used to give comments in Python Program ?
पायथन प्रोग्राम में टिप्पणियां देने के लिए निम्नलिखित में से किस वर्ण का उपयोग किया जाता है?
#
&
@
$
Previous Question
Next Question
25
See Explanation !
14
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 !
15
What will be the output of the following Python code? places = ['Bangalore', 'Mumbai', 'Delhi'] places1 = places places2 = places[:] places1[1]="Pune" places2[2]="Hyderabad" print(places)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? places = ['Bangalore', 'Mumbai', 'Delhi'] places1 = places places2 = places[:] places1[1]="Pune" places2[2]="Hyderabad" print(places)
[‘Bangalore’, ‘Pune’, ‘Hyderabad’]
[‘Bangalore’, ‘Pune’, ‘Delhi’]
[‘Bangalore’, ‘Mumbai’, ‘Delhi’]
[‘Bangalore’, ‘Mumbai’, ‘Hyderabad’]
Previous Question
Next Question
25
See Explanation !
16
To remove string “hello” from list1, we use which command?
लिस्ट1 से स्ट्रिंग "हैलो" को रिमूव करने के लिए, हम किस कमांड का यूज़ करते हैं?
list1.remove(“hello”)
list1.remove(hello)
list1.removeAll(“hello”)
list1.removeOne(“hello”)
Previous Question
Next Question
25
See Explanation !
17
To convert the read value through input() into integer type, ______ () is used
इनपुट () के माध्यम से रीड वैल्यू को पूर्णांक प्रकार में बदलने के लिए, ______ () का उपयोग किया जाता है
floating
float
int
integer
Previous Question
Next Question
25
See Explanation !
18
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 !
19
How we can convert the Numpy array to the list in python?
हम पायथन में Numpy सरणी को सूची में कैसे परिवर्तित कर सकते हैं?
list(array)
list.array
array.list
None of these
Previous Question
Next Question
25
See Explanation !
20
Which one is not the attribute of a file ?
इनमें से कौन एक फाइल की विशेषता नहीं है ?
softspace
mode
closed
rename
Previous Question
Next Question
25
See Explanation !
21
To shuffle the list(say list1) what function do we use?
सूची में फेरबदल करने के लिए (list1 कहें) हम किस फ़ंक्शन का उपयोग करते हैं?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
Previous Question
Next Question
25
See Explanation !
22
Special meaning words of Pythons, fixed for specific functionality are called ___
विशिष्ट कार्यक्षमता के लिए तय किए गए पायथन के विशेष अर्थ वाले शब्दों को ___ कहा जाता है।
Identifiers
Functions
Keywords
Literals
Previous Question
Next Question
25
See Explanation !
23
Which type of Error generate, when the argument have invalid values specified?
किस प्रकार की त्रुटि उत्पन्न होती है, जब तर्क में अमान्य मान निर्दिष्ट होते हैं?
Value Error
Syntax Error
Logical Error
None of these
Previous Question
Next Question
25
See Explanation !
24
The process of drawing a flowchart for an algorithms is called
एक एल्गोरिदम के लिए एक फ्लोचार्ट बनाने की प्रक्रिया को कहा जाता है
Performance
Algorithmic Representation
Evaluation
Flowcharting
Previous Question
Next Question
25
See Explanation !
25
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