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 are the three different types of algorithm constructions ?
एल्गोरिथ्म निर्माण के तीन अलग - अलग प्रकार क्या हैं?
Input/Output, Decision, Repeat
Input, Output, Process
Loop, Input/Output, Process
Sequence, Selection, Repeat
Next Question
25
See Explanation !
2
What will be the output of the following ? print((range(4)))
निम्नलिखित कोड का परिणाम क्या है? print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
Previous Question
Next Question
25
See Explanation !
3
Which of the following precedence order is correct in Python?
पायथन में निम्नलिखित में से कौन सा वरीयता क्रम सही है?
Parentheses, Exponential,Multiplication, Division, Addition, Subtraction
Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
Exponential,Parentheses,Multiplication, Division, Addition, Subtraction
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following code ? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
Welco
me to
Welcome to Python
e to
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
6
A natural number 1 is also an ____ .
एक प्राकृतिक संख्या 1 भी एक ____ है।
Factor
integer number
unique number
None of these
Previous Question
Next Question
25
See Explanation !
7
Which is Special type of literal in Python
जो पायथन में विशेष प्रकार का शाब्दिक है
Integer
Complex Number
None
String
Previous Question
Next Question
25
See Explanation !
8
How is a function declared in Python?
पायथन में फ़ंक्शन को कैसे घोषित किया जाता है?
def function function_name():
declare function function_name():
def function_name():
declare function_name():
Previous Question
Next Question
25
See Explanation !
9
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 !
10
____ statement used for error checking. -
____ कथन त्रुटि की जाँच के लिए उपयोग किया जाता है। -
Assert
List
Tuple
None of these
Previous Question
Next Question
25
See Explanation !
11
Which of the following is NOT a valid use of a loop in Python?
निम्नलिखित में से कौन सा पायथन में लूप का वैलिड यूज़ नहीं है?
Iterating over a list.
Iterating over a string.
Iterating over a dictionary.
None of the above
Previous Question
Next Question
25
See Explanation !
12
f.read(5) will read________from a file (file object 'f')
f.read(5) एक फ़ाइल से________ पढ़ेगा (file object 'f')
5 characters
5 words
5 lines
None of the above
Previous Question
Next Question
25
See Explanation !
13
Which of the following is an escape sequence for a new line character
निम्नलिखित में से कौन एक नए लाइन कैरेक्टर के लिए एक एस्केप सीक्वेंस है
\a
\t
\n
\b
Previous Question
Next Question
25
See Explanation !
14
If a is declared as a=['me', 'he', 'they'], the value of a="".join(a) print(a) will be ______ .
यदि a को a= ['me', 'he', 'they'] के रूप में डिक्लेयर किया जाता है, तो a='''.join (a) print(a) की वैल्यू _____ होगी।
mehethey
me he they
he they me
None of these
Previous Question
Next Question
25
See Explanation !
15
What does the update() method do in a dictionary?
अपडेट() विधि शब्दकोश में क्या करती है?
Clears all key-value pairs
Updates a specific key
Merges another dictionary into the current one
Removes all values
Previous Question
Next Question
25
See Explanation !
16
_____ reads one entire line from the file.
_____ फ़ाइल से एक पूरी पंक्ति पढ़ता है।
readline()
read()
readinglines()
None of these
Previous Question
Next Question
25
See Explanation !
17
A sequence of instruction, in a computer language, to get the desired result is known as _____ .
वांछित परिणाम प्राप्त करने के लिए कंप्यूटर भाषा में निर्देश का एक अनुक्रम _____ के रूप में जाना जाता है।
An Algorithm
A decision table
A program
None of the above
Previous Question
Next Question
25
See Explanation !
18
Function range(10, 5, 2) will yield an iterable sequence like
फंक्शन रेंज(10, 5, 2) से एक पुनरावर्तनीय अनुक्रम प्राप्त होगा जैसे
[]
[10, 8, 6]
[2, 5, 8]
[8, 5, 2]
Previous Question
Next Question
25
See Explanation !
19
____ is the output you get when '2'==2 is executed
____ वह आउटपुट है जो आपको तब मिलता है जब '2'==2 निष्पादित होता है-
True
false
ValueError occurs
TypeError occurs
Previous Question
Next Question
25
See Explanation !
20
Which function is used to generate evenly spaced values within a specified range?
किसी निर्दिष्ट सीमा के भीतर समान दूरी वाले मान उत्पन्न करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
numpy.linspace()
numpy.range()
numpy.arrange()
numpy.spaceline()
Previous Question
Next Question
25
See Explanation !
21
What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?
फ़ंक्शन द्वारा जनरेटेड वैल्यू का इंटरवल random.random () है, यह मानते हुए कि रैंडम मॉड्यूल पहले से ही इम्पोर्ट किया गया है?
(0,1)
(0,1]
[0,1]
[0,1)
Previous Question
Next Question
25
See Explanation !
22
find the output of following code: import math print(math.fabs(-3.4))
निम्नलिखित कोड का आउटपुट खोजें: import math print(math.fabs(-3.4))
-3.4
3.4
4.3
3
Previous Question
Next Question
25
See Explanation !
23
Python operator always yields the result of
पायथन ऑपरेटर हमेशा का परिणाम देता है
integer
floating point
complex
all of these
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])
3 1
1 3
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? a=[(2,4),(1,2),(3,9)] a.sort() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a =[(2,4),(1,2),(3,9)] a.sort() print(a)
[(1, 2), (2, 4), (3, 9)]
[(2,4),(1,2),(3,9)]
Error because tuples are immutable
Error, tuple has no sort attribute
Previous Question