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? matrix = [[1, 2, 3, 4], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]] for i in range(0, 4): print(matrix[i][1], end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? मैट्रिक्स = [[1, 2, 3, 4], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]] for i in range(0, 4): print(matrix[i][1], end = " ")
1 2 3 4
4 5 6 7
1 3 8 12
2 5 9 13
Next Question
25
See Explanation !
2
Which of the following types of loops are not supported in Python?
निम्नलिखित में से किस प्रकार के लूप पायथन में सपोर्ट नहीं करता हैं?
for
While
do-while
None of these
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} print(a.get(1,4))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} print(a.get(1,4))
1
A
4
Invalid syntax for get method
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? names = ['Amir', 'Bear', 'Charlton', 'Daman'] print(names[-1][-1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? NAMES = [' अमीर ', 'भालू ',' चार्ल्टन ', 'दमन '] PRINT(NAMES [-1] [-1])
A
Daman
Error
n
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print("john" in d)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print("john" in d)
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
6
Which of the following is not a valid set operation in python?
निम्नलिखित में से कौन सा पायथन में एक वैध सेट ऑपरेशन नहीं है?
Union
Intersection
Difference
None of the above
Previous Question
Next Question
25
See Explanation !
7
The ____________ function removes the first element of a set and the last element of a list.
____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।
remove
pop
discard
dispose
Previous Question
Next Question
25
See Explanation !
8
Which of the following is the proper syntax to check if a particular element is present in a list?
निम्नलिखित में से कौन सा उचित वाक्यविन्यास यह जांचने के लिए है कि कोई विशेष तत्व किसी सूची में मौजूद है या नहीं?
if ele in list
if not ele not in list
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
9
Which one is the type of algorithm:
कौन सा एल्गोरिथ्म का प्रकार है:
Flowchart
Pseudo
Greedy
Connector
Previous Question
Next Question
25
See Explanation !
10
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 !
11
Algorithm when transalated into a programming language is called...
प्रोग्रामिंग भाषा में ट्रांसलेट होने पर एल्गोरिथ्म को कहा जाता है...
Flowchart
Identifier
code
Debugging
Previous Question
Next Question
25
See Explanation !
12
In a Python program, a control structure:
पायथन प्रोग्राम में, एक नियंत्रण संरचना:
directs the order of execution of the statements in the program
dictates what happens before the program starts and after it terminates
defines program-specific data structures
manages the input and output of control characters
Previous Question
Next Question
25
See Explanation !
13
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
*
**
<
==
Previous Question
Next Question
25
See Explanation !
14
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 !
15
What will be the output of the following Python code? x = "abcdef" i = "i" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 14 MINUTES 31 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
no output
i i i i i i …
a b c d e f
abcdef
Previous Question
Next Question
25
See Explanation !
16
In a flowchart an input or output instruction is represented by
फ्लोचार्ट में एक इनपुट या आउटपुट निर्देश का प्रतिनिधित्व किसके द्वारा किया जाता है
A rectangle
A rhombus
A parallelogram
A circle
Previous Question
Next Question
25
See Explanation !
17
Which syntax would print the last 3 numbers from the array below: arr = np.array([1,2,3,4,5,6,7])
नीचे दिए गए ऐरे से अंतिम 3 नंबर कौन सा सिंटैक्स प्रिंट करेगा: arr = np.array([1,2,3,4,5,6,7])
print(arr[3:])
print(arr[3])
print(arr[:3])
print(arr[4:])
Previous Question
Next Question
25
See Explanation !
18
____is a string literal denoted by triple quotes for providing the specifications of certain program elements.
____ एक स्ट्रिंग शाब्दिक है जिसे कुछ प्रोग्राम तत्वों के विनिर्देश प्रदान करने के लिए ट्रिपल कोट्स द्वारा दर्शाया गया है।
Interface
Modularity
Client
Docstring
Previous Question
Next Question
25
See Explanation !
19
Which one of the following is the correct extension of the Python file?
पाइथन फ़ाइल का सही एक्सटेंशन निम्नलिखित में से कौन सा है?
.python
.py
.p
.pyt
Previous Question
Next Question
25
See Explanation !
20
The functions which are coming with Python software automatically are called ____ .
पायथन सॉफ्टवेयर के साथ आने वाले कार्यों को स्वचालित रूप से ____ कहा जाता है।
built-in functions
User-defined functions
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', -10, -1))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" xyyzxyzxzxyy ".count(' xyyy ', -10, -1))
2
0
1
error
Previous Question
Next Question
25
See Explanation !
22
The.........symbol is always the first and the last symbol in the flowchart.
......... symbol फ्लोचार्ट में हमेशा पहला और अंतिम प्रतीक होता है।
Rectangle
Terminal
Diamond
None of these
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code snippet? print('ab cd-ef'.title())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' ab cd - ef '.title ())
Ab cd-ef
Ab Cd-ef
Ab Cd-Ef
None of the mentioned
Previous Question
Next Question
25
See Explanation !
24
Which mode creates a new file if the file does not exist?
यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?
write mode
read mode
append mode
Both (A) And (B)
Previous Question
Next Question
25
See Explanation !
25
Which of the following statement is correct about Getcwd() .
Getcwd () के बारे में निम्नलिखित में से कौन सा कथन सही है।
Method displays the directory of a process.
Method displays the current working directory of a process.
Method create file of a process.
None of these
Previous Question