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 code? i = 2 while True: if i%3 == 0: break print(i) i += 2
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? i = 2 जबकि सही: यदि i%3 == 0: break print(i) i = 2
2 4 6 8 10 …
2 4
2 3
error
Next Question
25
See Explanation !
2
Designing the problem in known as
समस्या को डिजाइन करना जिसे के रूप में जाना जाता है
Testing
Debugging
logical error
Algorithm
Previous Question
Next Question
25
See Explanation !
3
Diagram that represents steps or operations involved in any kind of process is called
आरेख जो किसी भी प्रकार की प्रक्रिया में शामिल चरणों या संचालन का प्रतिनिधित्व करता है, को कहा जाता है
System diagram
Management hierarchy
Flowcharts
Convenience diagrams
Previous Question
Next Question
25
See Explanation !
4
What is the output of the following code? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
निम्नलिखित कोड का परिणाम क्या है ? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
x is now 50
x is now 2
x is now 100
Error
Previous Question
Next Question
25
See Explanation !
5
What will be output for the following code ? import numpy as np a=np.array([2,3,4,5]) print(a.dtype)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a=np.array([2,3,4,5]) print(a.dtype)
int32
int
float
none of these
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
True
False
Error
None
Previous Question
Next Question
25
See Explanation !
7
Which of the following functions converts a string to a float in python ?
निम्नलिखित में से कौन सा कार्य अजगर में एक स्ट्रिंग को एक फ्लोट में परिवर्तित करता है?
int(x [,base])
long(x [,base])
float(x)
str(x)
Previous Question
Next Question
25
See Explanation !
8
Which of the following is the correct syntax for a conditional statement in Python?
पायथन में कंडिशनल स्टेट्मेंट के लिए निम्नलिखित में से कौन सा सही सिंटेक्स है?
if (x > 0):
if x > 0
if x > 0 then:
Both A and B
Previous Question
Next Question
25
See Explanation !
9
What happens if the base condition isn’t defined in recursive programs?
यदि रिकर्सिव फ़ंक्शन में बेस की कंडीशन को डिफाइन नहीं किया जाता है तो क्या होता है?
Program gets into an infinite loop
Program runs once
Program runs n number of times where n is the argument given to the function
An exception is thrown
Previous Question
Next Question
25
See Explanation !
10
Which of the following data types is not supported in python?
पायथन में निम्नलिखित में से कौन सा डेटा प्रकार समर्थित नहीं है?
Number
String
List
Slice
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v < values[row][column]:
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v < values[row][column]: v
3
5
6
33
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code snippet? print(''.isdigit())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?print(''.isdigit ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
13
Provide the output for the expression: list = [1, 2] + [3, 4]
list= [1, 2] + [3, 4] का आउटपुट क्या होगा
[4,6]
[1, 2, 3, 4]
10
Error in Code
Previous Question
Next Question
25
See Explanation !
14
Which of the following function of dictionary gets all the keys from the dictionary
निम्नलिखित में से डिक्शनरी का कौन सा फ़ंक्शन डिक्शनरी से सभी की निकालने के लिए किया जाता है
getkeys()
key()
keys()
none of the mentioned
Previous Question
Next Question
25
See Explanation !
15
A step by step method for solving a problem using English Language
अंग्रेजी भाषा का उपयोग करके किसी समस्या को हल करने के लिए चरण - दर - चरण विधि
program
Flowchart
statement
Algorithm
Previous Question
Next Question
25
See Explanation !
16
What will be the output of : infile.read(2)
निम्नलिखित कोड का आउटपुट क्या होगा? infile.read(2)
Read two words from file
Read two line from file
Read two character / two bytes
count the number of '2' in file
Previous Question
Next Question
25
See Explanation !
17
Can we write if / else into one line in python?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?
Yes
No
if / else not used in python
None of the above.
Previous Question
Next Question
25
See Explanation !
18
A Python tuple that is created without using the parentheses brackets () is called as ?
एक पायथन टपल जिसे कोष्ठक कोष्ठक () का उपयोग किए बिना बनाया जाता है, को कहा जाता है?
Tuple packing
Tuple sampling
Tuple sorting
None of the above
Previous Question
Next Question
25
See Explanation !
19
To start Python from the command prompt, use the command
कमांड प्रॉम्प्ट से पायथन शुरू करने के लिए, कमांड का उपयोग करें
execute python
go python
python
run python
Previous Question
Next Question
25
See Explanation !
20
What is the purpose of zeros() function used in NumPy array ?
NumPy सरणी में उपयोग किए जाने वाले शून्य () फ़ंक्शन का उद्देश्य क्या है?
To make a Matrix with all diagonal element 0
To make a Matrix with first row 0
To make a Matrix with all elements 0
None of the above
Previous Question
Next Question
25
See Explanation !
21
What will happen if a for loop tries to iterate over an empty list?
यदि कोई लूप किसी एम्प्टी लिस्ट पर पुनरावृति करने का प्रयास करता है तो क्या होगा?
It will raise an IndexError.
It will iterate once with a default value of None.
It will not execute the loop body.
It will run indefinitely.
Previous Question
Next Question
25
See Explanation !
22
What is the output when we execute list("hello")?
जब हम सूची(" हैलो ") निष्पादित करते हैं तो आउटपुट क्या होता है?
['llo']
['hello']
['h', 'e', T', '1', 'o']
None of the above
Previous Question
Next Question
25
See Explanation !
23
Which of the following character is used to give comments in Python Program ?
पायथन प्रोग्राम में टिप्पणियां देने के लिए निम्नलिखित में से किस वर्ण का उपयोग किया जाता है?
#
&
@
$
Previous Question
Next Question
25
See Explanation !
24
What will the following code output? x=0 if x: print("True") else: print("False")
निम्नलिखित कोड क्या आउटपुट देगा? x=0 if x: print("True") else: print("False")
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code snippet? print('abef'.partition('cd'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abef '.partition (' cd '))
(‘abef’)
(‘abef’, ‘cd’, ”)
(‘abef’, ”, ”)
error
Previous Question