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 is the use of shape() in numpy?
numpy में shape() का उपयोग क्या है?
change in shape of array
reshaping of array
get the shape of the array
All of above
Next Question
25
See Explanation !
2
How to import numpy module?
कैसे numpy मॉड्यूल आयात करने के लिए?
from numpy import *
import numpy
import numpy as my_numpy
All of above
Previous Question
Next Question
25
See Explanation !
3
Which of the following is the exponentiation operator in Python?
पायथन में घातांकन ऑपरेटर निम्नलिखित में से कौन सा है?
^
**
^^
exp()
Previous Question
Next Question
25
See Explanation !
4
Which of the following is true for nested loops in Python?
पायथन में नेस्टेड लूप के लिए निम्नलिखित में से कौन सा सत्य है?
The outer loop must run fewer times than the inner loop.
Only for loops can be nested.
Both for and while loops can be nested.
The inner loop runs only once for each iteration of the outer loop.
Previous Question
Next Question
25
See Explanation !
5
Getting and setting smaller subarrays within a larger array
एक बड़े ऐरे से छोटे ऐरे को प्राप्त करना और सेट करना
Indexing
Slicing
Reshaping
None of the above
Previous Question
Next Question
25
See Explanation !
6
What is the use of seek() method in files?
फाइलों में seek() फंक्शन का क्या उपयोग है?
sets the file's current position at the offset
sets the file's previous position at the offset
sets the file's current position within the file
None of these
Previous Question
Next Question
25
See Explanation !
7
Which language is derived from many other language, including ABC, Modula- 3, C, C++, Algol-68, SmallTalk, and Unix shell and other scripting languages.
कौन सी भाषा कई अन्य भाषाओं से ली गई है, जिसमें ABC, Modula - 3, C, C , Algol -68, SmallTalk, और Unix शेल और अन्य स्क्रिप्टिंग भाषाएं शामिल हैं।
Python
Java
Fortran
None of the above
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code? def foo(x): x = ['def', 'abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(x): x = ['def', 'abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
9
In Python, a complex number is represented as:
पायथन में, एक जटिल संख्या को इस प्रकार दर्शाया जाता है:
a+√b
a+√b j
a+bj
a+√j
Previous Question
Next Question
25
See Explanation !
10
Operations to be repeated a certain number of times are done by
संक्रियाओं को एक निश्चित संख्या में बार-बार दोहराए जाने के द्वारा किया जाता है
Selection
Sequential
Simple
Loop
Previous Question
Next Question
25
See Explanation !
11
What happens if a local variable exists with the same name as the global variable you want to access?
यदि कोई लोकल वैरिएबल वैसा ही नाम के साथ मौजूद है जैसा कि ग्लोबल वैरिएबल जिसे आप एक्सेस करना चाहते हैं?
Error
The local variable is shadowed
Undefined behavior
The global variable is shadowed
Previous Question
Next Question
25
See Explanation !
12
What is the answer to this expression, 22 % 3 is?
इस व्यंजक का उत्तर क्या है, 22 % 3 है?
7
1
0
5
Previous Question
Next Question
25
See Explanation !
13
What does the following code will print ? x=5 if x>3: print("Hello")
निम्नलिखित कोड क्या प्रिंट करेगा? x=5 if x>3: print("Hello")
Hello
Hello Hello
nothing
Hello Hello Hello Hello Hello
Previous Question
Next Question
25
See Explanation !
14
An empty / null statement in Python is _____ .
Python में एक खाली / शून्य कथन _____ है।
pass
null
empty
None
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code snippet? print('cd'.partition('cd'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('cd '.partition (' cd '))
(‘cd’)
(”)
(‘cd’, ”, ”)
(”, ‘cd’, ”)
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? a=["Apple","Ball","Cobra"] a.sort(key=len) print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=["Apple","Ball","Cobra"] a.sort(key=len) print(a)
[‘Apple’, ‘Ball’, ‘Cobra’]
[‘Ball’, ‘Apple’, ‘Cobra’]
[‘Cobra’, ‘Apple’, ‘Ball’]
Invalid syntax for sort()
Previous Question
Next Question
25
See Explanation !
17
What will the following code output? print(5/0)
निम्नलिखित कोड आउटपुट क्या होगा? print(5/0)
0
infinite
5
ZeroDivisionError
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following code? print(2 ** 3 ** 2)
निम्नलिखित कोड का आउटपुट क्या होगा? प्रिंट(2 ** 3 ** 2)
64
512
729
Error
Previous Question
Next Question
25
See Explanation !
19
What is standard module in Python?
पायथन में मानक मॉड्यूल क्या है?
It can not be imported the same way as we import our user-defined modules.
It can be imported the same way as we import our user-defined modules,
Both
None of the above
Previous Question
Next Question
25
See Explanation !
20
Which keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
exit
break
continue
stop
Previous Question
Next Question
25
See Explanation !
21
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 !
22
Correcting the program code:
प्रोग्राम कोड को ठीक करना:
Testing
Syntax error
Runtime error
Debugging
Previous Question
Next Question
25
See Explanation !
23
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 !
24
What is the output of below program ? def maximum(x,y): if x>y: return x elif x==y: return "The number are equal" else: return y print(maximum(2,3))
निम्नलिखित कोड से कितनी संख्याएँ मुद्रित होंगी? def maximum(x,y): if x>y: return x elif x==y: return "The number are equal" else: return y print(maximum(2,3))
2
3
The number are equal
None of These
Previous Question
Next Question
25
See Explanation !
25
What are the attributes of numpy array?
Numpy सरणी के गुण क्या हैं?
shape, dtype, ndim
objects, type, list
objects, non vectorization
Unicode and shape
Previous Question