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 'f' in the following statement? f=open("Data.txt","r")
निम्नलिखित कथन में 'f' क्या है? f=open("Data.txt","r")
file name
file handle
Mode of file
file handling
Next Question
25
See Explanation !
2
what will the output of : 34//5+34%5 in python
पायथन में: 34//5+34%5 का आउटपुट क्या होगा
15
150
200
10
Previous Question
Next Question
25
See Explanation !
3
Which file extension is used to save Python files?
पायथन फ़ाइलों को सहेजने के लिए किस फ़ाइल एक्सटेंशन का उपयोग किया जाता है?
.py
.python
.pt
.pyt
Previous Question
Next Question
25
See Explanation !
4
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 !
5
____ is used to close a file object(fp).
____ का उपयोग फ़ाइल ऑब्जेक्ट(fp) को बंद करने के लिए किया जाता है।
close.fp
fp.close()
file.exit()
None of these
Previous Question
Next Question
25
See Explanation !
6
Which operator is used in Python to import modules from packages?
पैकेज से मॉड्यूल आयात करने के लिए पायथन में किस ऑपरेटर का उपयोग किया जाता है?
.
*
->
&
Previous Question
Next Question
25
See Explanation !
7
Python is written in
पायथन को किस भाषा में लिखा जाता है?
Java
C
PHP
All of the above
Previous Question
Next Question
25
See Explanation !
8
What will be the result of the expression : print(10 or 0) ?
अभिव्यक्ति का परिणाम क्या होगा: print(10 या 0)?
0
1
10
1.0
Previous Question
Next Question
25
See Explanation !
9
Which of the statements about dictionary values if false?
ड़िक्शनरी वैल्यूज में से कौन सा स्टेट्मेंट यदि गलत है?
More than one key can have the same value
The values of the dictionary can be accessed as dict[key]
Values of a dictionary must be unique
Values of a dictionary can be a mixture of letters and numbers
Previous Question
Next Question
25
See Explanation !
10
Which of the following will run without errors?
निम्नलिखित में से कौन सी त्रुटि के बिना चलेगी?
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Previous Question
Next Question
25
See Explanation !
11
What does the continue statement do in a loop?
लूप में कंटीन्यू स्टेटमेंट क्या करता है?
Exits the loop entirely.
Skips the rest of the code in the current iteration and moves to the next iteration.
Restarts the loop.
Causes an error.
Previous Question
Next Question
25
See Explanation !
12
What is the output when we execute list("hello") ?
जब हम list("hello") निष्पादित करते हैं तो आउटपुट क्या होता है?
['h', 'e', 'l', 'l', 'o']
[' hello']
['llo']
['olleh']
Previous Question
Next Question
25
See Explanation !
13
Which statement is correct to import all modules from the package ?
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
From package import all
From package import *
From package include all
From package include *
Previous Question
Next Question
25
See Explanation !
14
Data Items having fixed value are called ______
निश्चित मूल्य वाले डेटा आइटम को ______ कहा जाता है।
Identifiers
Functions
keywords
Literals
Previous Question
Next Question
25
See Explanation !
15
What is the output of the following? n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')
निम्नलिखित का आउटपुट क्या है? n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')
5 4 3 1 0
4 3 1 0
4 3 2
none of these
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? print('ab'.isalpha())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('ab'.isalpha ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
17
Who developed Python ?
पायथन किसने विकसित किया?
Ritche
Guido Van Rossum
Bill Gates
Sunder Pitchai
Previous Question
Next Question
25
See Explanation !
18
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
Next Question
25
See Explanation !
19
Which function is used to Evaluates string and returns an object.
स्ट्रिंग का मूल्यांकन करने और किसी ऑब्जेक्ट को वापस करने के लिए किस फ़ंक्शन का उपयोग किया जाता है।
exp(x)
eval(str)
str(x)
None of the above
Previous Question
Next Question
25
See Explanation !
20
In NumPy, what does the SHAPE of an array mean?
NumPy में, सरणी के आकार का क्या अर्थ है?
the shape is the number of rows
the shape is the number of columns
the shape is the number of element in each dimension
Total number of elements in array
Previous Question
Next Question
25
See Explanation !
21
Which function is used to get the Data Type of any value?
किसी भी मान का डेटा प्रकार प्राप्त करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
type()
data_type()
datatype()
dataType()
Previous Question
Next Question
25
See Explanation !
22
_____ returns the current time instant, a floating-point number of seconds since the epoch.
_____ वर्तमान समय तत्काल लौटाता है, जो युग के बाद से फ़्लोटिंग - पॉइंट सेकंड की संख्या है।
Time.time()
datetime()
time.date()
None of the above
Previous Question
Next Question
25
See Explanation !
23
A sentinel-controlled loop can be implemented using _____
_____ का उपयोग करके एक प्रहरी - नियंत्रित लूप को लागू किया जा सकता है।
if
for
Both of the above
None
Previous Question
Next Question
25
See Explanation !
24
Which of the following is not a valid mode to open a file?
निम्नलिखित में से कौन सा फ़ाइल खोलने के लिए वैध मोड नहीं है?
ab
rw
r+
w+
Previous Question
Next Question
25
See Explanation !
25
What is the output of the following code? print(not False)
निम्नलिखित कोड का आउटपुट क्या है? प्रिंट(गलत नहीं)
True
False
None
Error
Previous Question