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 one of the following is incorrect?
निम्नलिखित में से कौन सा गलत है?
The variables used inside function are called local variables.
The local variables of a particular function can be used inside other functions, but these cannot be used in global space.
The variables used outside function are called global variables.
In order to change the value of global variable inside function, keyword global is used.
Next Question
25
See Explanation !
2
What will be the output of the following ? import numpy as np a=np.array([2,4,1]) b=a.copy() a[1]=3 print(b
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a=np.array([2,4,1]) b=a.copy() a[1]=3 print(b
[2 4 1]
[2 3 1]
[3 4 1]
[2 4 3]
Previous Question
Next Question
25
See Explanation !
3
Which is/are the valid statement to print Hello Word in Python ?
पायथन में Hello Word को प्रिंट करने के लिए मान्य कथन क्या है/हैं?
print('Hello Word')
print("Hello Word")
print(Hello Word)
Both A and B
Previous Question
Next Question
25
See Explanation !
4
What type of language is Python?
पायथन किस प्रकार की भाषा है?
Compiled Language
Markup Language
Interpreted Language
Assembly Language
Previous Question
Next Question
25
See Explanation !
5
What is the output of the following code? import numpy as np a=np.array([1,2,3,5,8]) b=np.array([0,3,4,2,1]) c=a+b c=c*a print(c[2])
निम्नलिखित कोड का परिणाम क्या है? import numpy as np a=np.array([1,2,3,5,8]) b=np.array([0,3,4,2,1]) c=a+b c=c*a print(c[2])
10
21
12
28
Previous Question
Next Question
25
See Explanation !
6
in python which function is used to read CSV file
पायथन में CSV फ़ाइल को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
csv.reader(file)
csv.read(file)
csv.readcsv(file)
csv.readcsvdata(file)
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following Python code? for i in range(2.0): print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? for i in range(2.0): print(i)
0.0 1.0
0 1
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
8
Python code can run on variety of plateforms, it means Python is a _____language.
पायथन कोड विभिन्न प्रकार के प्लेटफॉर्म पर चल सकता है, इसका मतलब है कि पायथन एक _____भाषा है।
Graphical
Cross-plateform
Plateform Dependent
All of these
Previous Question
Next Question
25
See Explanation !
9
Which of the following will delete key-value pair for key="tiger" in dictionary? dic={"lion":"'wild","tiger":"'wild",'cat":"domestic","dog":"domestic"}
निम्नलिखित में से कौन सा शब्दकोश में key="tiger" के लिए key - value pair को हटा देगा? dic ={" lion ":"' wild ", "tiger ":" wild ", 'cat ":"domestic "," dog ":"domestic "}
del dic("tiger"]
dic["tiger"].delete()
delete(dic.["tiger'])
del(dic.["tiger"])
Previous Question
Next Question
25
See Explanation !
10
How can you import NumPy in a Python script?
आप Python स्क्रिप्ट में NumPy को कैसे इम्पोर्ट कर सकते हैं?
import numpy
import np
from math import numpy
import numPy as np
Previous Question
Next Question
25
See Explanation !
11
How many keywords are there in python 3.7?
पायथन 3.7 में कितने कीवर्ड हैं?
32
33
31
30
Previous Question
Next Question
25
See Explanation !
12
The data structure which is a mutable ordered sequence of elements is called
डेटा संरचना जो तत्वों का एक परिवर्तनशील क्रमबद्ध अनुक्रम है, कहलाती है
Built in
List
Tuple
Derived data
Previous Question
Next Question
25
See Explanation !
13
What is the output of the code print (9//2)
कोड प्रिंट का आउटपुट क्या है (9//2)
4.5
4.0
4
Error
Previous Question
Next Question
25
See Explanation !
14
If we not see the rules of th programming language, we get ?
यदि हम प्रोग्रामिंग भाषा के नियमों को नहीं देखते हैं, तो हमें क्या मिलता है?
Runtime Error
Syntax Error
Logical Error
None of the above
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? example = "helle" print(example.find("e"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "helle" print(example.find("e"))
Error
-1
1
0
Previous Question
Next Question
25
See Explanation !
16
What is range() Funciton ?
range() Funciton क्या है?
generates a list of numbers, to iterate over with for loops
immediate exit from the innermost loop structure.
returned an iterator a sequence object.
Arranging numbers whether in ascending or descending order.
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code? i = 1 while True: if i%7 == 0: break print(i) i += 1
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? i = 1 जबकि सही: यदि i%7 == 0: break print(i) i = 1
1 2 3 4 5 6
1 2 3 4 5 6 7
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
18
Testing is known as
परीक्षण के रूप में जाना जाता है?
A stage of all projects
Finding broken code
Evaluating deliverable to find errors
None of the above
Previous Question
Next Question
25
See Explanation !
19
What is the output of the code print(7%2).
कोड print(7%2) का आउटपुट क्या है।
5.5
3.5
1
None of the above
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following ? import numpy as np a=np.array([2,4,1]) b=np.array([3,5]) c=a+b print(c)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a=np.array([2,4,1]) b=np.array([3,5]) c=a+b print(c)
[2 4 1 3 5 ]
[5 9 1]
15
ValueError
Previous Question
Next Question
25
See Explanation !
21
A detailed flowchart is know as
एक विस्तृत फ्लोचार्ट के रूप में जाना जाता है
Micro
Union
Macro
Stack
Previous Question
Next Question
25
See Explanation !
22
Which of the following is a distinct syntactic block?
निम्नलिखित में से कौन सा एक विशिष्ट वाक्यात्मक ब्लॉक है?
Subroutines
Function
Definition
Modules
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code snippet? print('a@ 1,'.islower())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' a@ 1,'.islower ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code snippet? test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
0
2
Error as the key-value pair of 1:’A’ is already deleted
1
Previous Question
Next Question
25
See Explanation !
25
Which operator is also called as Comparative operator?
किस ऑपरेटर को तुलनात्मक ऑपरेटर भी कहा जाता है?
Arithmetic
Relational
Logical
Assignment
Previous Question