Solved Paper: O Level M3-R5 January 2024 – All MCQs Answered

January 2024 O Level M3-R5 exam ke 100 questions ke saath full solutions iss post mein diye gaye hain. Ye questions aapko na sirf revise karne mein madad karenge, balki practice ke liye bhi best hain. Har question exam ke format se inspired hai, jisse aap actual paper ke liye better prepare ho paenge. Smart learning yahi se shuru hoti hai!

M3-R5 January 2024 O Level Previous Paper Question Answers

Q. 1. निम्नलिखित में से कौन सा पायथन में फ़ंक्शन का उपयोग है?
Which of the following is the use of function in Python?
(A) Functions don’t provide better modularity for your application
(B) You can’t also create your own functions
(C) Functions are reusable pieces of programs
(D) All of the mentioned
Correct Answer: (C) Functions are reusable pieces of programs

Q. 2. निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
x = ‘abcd’
for i in range(x):
print(i)
(A) a b c d
(B) error
(C) 0 123
(D) none of the mentioned
Correct Answer: (B) error

Q. 3. निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
min(max(False, -3, -4), 2, 7)
(A) -4
(B) False
(C) -3
(D) 2
Correct Answer: (B) False

Q. 4. निम्नलिखित में से कौन सी संख्या निम्न कोड द्वारा कभी भी उत्पन्न नहीं की जा सकती है?
Which of the following numbers can never be generated by the following code?
random.randrange(0, 50)
(A) 0
(B) 1
(C) 49
(D) 50
Correct Answer: (D) 50

Q. 5. निम्न में से कौन सा आइटम फंक्शन हेडर में मौजूद है?
Which of the following items are present in the function header?
(A) parameter list
(B) Both (A) and B
(C) return value
(D) function name
Correct Answer: (B) Both (A) and B

Q. 6. निम्नलिखित में से कौन सी फाइल किसी टेक्स्ट एडिटर में खोली जा सकती है?
Which of the following file can be opened in any text editor?
(A) text
(B) None of the above
(C) Binary
(D) Both of the above
Correct Answer: (A) text

Q. 7. निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?
y = “I love Python”
y[3] = ‘s’
print(y)
(A) Error
(B) snow world
(C) snos world
(D) snow
Correct Answer: (A) Error

Q. 8. किस डेटा प्रकार में अनुक्रमण मान्य नहीं है?
In which data type is indexing not valid?
(A) list
(B) dictionary
(C) string
(D) none of the above
Correct Answer: (D) none of the above

Q. 9. निम्नलिखित कोड खंड क्या प्रिंट करेगा?
What will the following code segment print?
a = True
b = False
c = False
if a or b and c:
print(“HELLO”)
else:
print(“hello”)
(A) Hello
(B) HELLO
(C) None of these
(D) Hello
Correct Answer: (B) HELLO

Q. 10. निम्नलिखित का आउटपुट क्या है?
What is the output of the following?
t = (2, 3, 4, 3.5, 5, 6)
print(sum(t) + t.count(2))
(A) 24.5
(B) 25.5
(C) 23.5
(D) 24
Correct Answer: (B) 25.5

Q. 11. निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?
a = 50
b = a = a * 5
print(b)
(A) Syntax Error
(B) 250
(C) 10
(D) 50
Correct Answer: (B) 250

Q. 12. निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
def sayHello():
print(“Hello World!”)
sayHello()
sayHello()
(A) Hello Hello
(B) ,,Hello World!”,,Hello World!”
(C) None of the above
(D) Hello World! Hello World!
Correct Answer: (D) Hello World! Hello World!

Q. 13. सही फंक्शन हेडर की पहचान करें।
Identify the correct function header.
(A) def fun(a, b=2, c=3)
(B) def fun(a=2, b, c=3)
(C) def fun(a=2, b=3, c)
(D) def fun(a, b, c=3, d)
Correct Answer: (A) def fun(a, b=2, c=3)

Q. 14. निम्नलिखित में से कौन सा एक सही है?
Which one of the following is correct?
(A) Dictionary can neither have two same keys nor two same values
(B) Dictionary can have two same keys with different values
(C) Dictionary can have two same keys or same values but cannot have two same key-value pair
(D) Dictionary can have two same values with different keys
Correct Answer: (D) Dictionary can have two same values with different keys

Q. 15. Function के लिए किस कीवर्ड का प्रयोग किया जाता है?
Which keyword is used for function?
(A) function
(B) def
(C) define
(D) fun
Correct Answer: (B) def

Q. 16. पायथन में किस मॉड्यूल का उपयोग बड़े ऐरे और मैट्रिक्स पर गणितीय ऑपरेशन करने के लिए किया जाता है?
Which module in Python is used for mathematical operations on large arrays and matrices?
(A) numpy
(B) pandas
(C) math
(D) none of these
Correct Answer: (A) numpy

Q. 17. NumPY का पूरा नाम क्या है?
NumPY stands for?
(A) Number in Python
(B) Numerical Python
(C) Numbering Python
(D) None of these
Correct Answer: (B) Numerical Python

Q. 18. यदि x = 56.236 है, तो निम्नलिखित पायथन अभिव्यक्ति का आउटपुट क्या होगा?
Which will be the output of the following Python expression if x = 56.236?
print(“%.2f” % x)
(A) 56.236
(B) 56.0000
(C) 56.23
(D) 56.24
Correct Answer: (C) 56.23

Q. 19. पायथन का ________ मोड टाइप किए गए स्टेटमेंट को तुरंत परिणाम देता है?
Python’s ________ mode returns the typed statement to the result instantly?
(A) Functional
(B) Interactive
(C) Script
(D) Object-oriented
Correct Answer: (B) Interactive

Q. 20. एल्गोरिथम निर्माण के लिए तीन चरण क्या हैं?
What are the three steps for algorithm construction?
(A) Sequence Selection Repetition
(B) Input Output Process
(C) Input Output Decision Repetition
(D) None of these
Correct Answer: (A) Sequence Selection Repetition

Q. 21. निम्नलिखित में से कौन सा एक अवैध मोड है?
Which of the following is an invalid mode?
(A) w
(B) r+
(C) a
(D) ar+
Correct Answer: (D) ar+

Q. 22. numpy का डिफॉल्ट प्रकार क्या है?
What is the default type of numpy?
(A) float64
(B) float32
(C) int64
(D) int32
Correct Answer: (A) float64

Q. 23. पायथन में फाइल को संपूर्ण रूप से डिलीट करने के लिए किस फंक्शन का प्रयोग किया जाता है?
Which function is used to delete a file entirely in Python?
(A) clear()
(B) delete()
(C) erase()
(D) remove()
Correct Answer: (D) remove()

Q. 24. फ्लोचार्टिंग में वास्तविक निर्देश _______ में दर्शाए गए हैं?
The actual instructions in flowcharting are shown in ________
(A) Arrows
(B) Circles
(C) Lines
(D) Boxes
Correct Answer: (D) Boxes

Q. 25. एक एल्गोरिथ्म क्या है?
What is an algorithm?
(A) a decision
(B) a flow chart
(C) a flowchart or pseudocode
(D) Step-by-step instructions used to solve a problem
Correct Answer: (D) Step-by-step instructions used to solve a problem

Q. 26. ndarray क्या बताता है?
ndarray refers to?
(A) Matrix
(B) List
(C) None of the
(D) Array
Correct Answer: (D) Array

Q. 27. परीक्षण को किस रूप में जाना जाता है?
Testing is known as?
(A) Finding broken code
(B) None of the above
(C) A stage of all projects
(D) Evaluating deliverable to find errors
Correct Answer: (D) Evaluating deliverable to find errors

Q. 28. निम्नलिखित प्रश्नों का आउटपुट क्या है?
What is the output of the following questions?
(A) (3,1)
(B) (1,3)
(C) (1,0)
(D) (0,3)
Correct Answer: (B) (1,3)

Q. 29. numpy में प्रचारण क्या है?
_______ is broadcasting in numpy?
(A) Distribution
(B) Extension
(C) Broadcasting
(D) Propagation
Correct Answer: (C) Broadcasting

Q. 30. एक विस्तृत फ्लोचार्ट को ________ कहा जाता है?
________ is a detailed flowchart?
(A) union
(B) macro
(C) micro
(D) stack
Correct Answer: (B) macro

Q. 31. निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?
What will be the output of the following code snippet?
Day = [“Sunday” “Monday” “Tuesday” “Wednesday”]
print(Day[-3:-1])
(A) [‘Tuesday’ ‘Wednesday’]
(B) [‘Sunday’ ‘Monday’]
(C) None of these
(D) [‘Monday”Tuesday’]
Correct Answer: (C) None of these
(Note: The list Day is not separated by commas, so it’s treated as a single string.)

Q. 32. पायथन में कितने कीवर्ड हैं?
How many keywords are in Python?
(A) 35
(B) 30
(C) 33
(D) 32
Correct Answer: (A) 35

Q. 33. दिए गए कोड का आउटपुट क्या है?
What is the output of the given code?
5 | 2, 5 // 2
(A) 7,2
(B) 2.5
(C) 5
(D) 2
Correct Answer: (A) 7,2
(Due to tuple: (5 | 2, 5 // 2) = (7, 2))

Q. 34. निम्न में से कौन उच्च स्तरीय भाषाओं की विशेषता नहीं है?
Which of the following is not a characteristic of high-level languages?
(A) Interactive execution
(B) User friendly
(C) Platform Independent
(D) Machine code
Correct Answer: (D) Machine code

Q. 35. निम्नलिखित में से कौन सा फंक्शन आवश्यक रूप से केवल पुनरावर्ती को तरक के रूप में स्वीकार नहीं करता?
Which of the following functions does not necessarily accept only recursive as asterisk?
(A) map()
(B) lambda()
(C) reduce()
(D) filter()
Correct Answer: (B) lambda()

Q. 36. कोई भी एल्गोरिदम एक प्रोग्राम है?
Any algorithm is a program?
(A) May be
(B) Can’t say
(C) False
(D) True
Correct Answer: (C) False

Q. 37. निम्नलिखित में से कौन सा चरण एल्गोरिथ्म निर्माण के बाद नहीं आता है?
Which of the following steps does not come after algorithm creation?
(A) Program testing
(B) Program debugging
(C) Program maintenance
(D) Program coding
Correct Answer: (D) Program coding

Q. 38. पाइथन में लैम्ब्डा फंक्शन क्या है?
What is Lambda function in Python?
(A) A one-line anonymous function
(B) A built-in Python function
(C) Lambda is a function in Python but users cannot use it.
(D) None of the above
Correct Answer: (A) A one-line anonymous function

Q. 39. प्रोग्रामिंग में टाइप कास्टिंग क्या है ?
What is Type Casting in Programming?
(A) Declaring variables
(B) Assigning values to variables
(C) Converting one data type to another
(D) None of these
Correct Answer: (C) Converting one data type to another

Q. 40. पाइथन लैंग्वेज _______ में मशीनी कोड में अनुवादित होती है ?
Python language is translated into machine code in _________ ?
(A) Compiler
(B) Interpreter and compiler
(C) None of these
(D) Interpreter
Correct Answer: (D) Interpreter

Q. 41. निम्नलिखित में से कौन सा फ़ंक्शन पायथन में एक अंतर्निहित फ़ंक्शन है?
Which of the following functions is a built-in function in Python?
(A) factorial()
(B) print()
(C) seed()
(D) sqrt()
Correct Answer: (B) print()

Q. 42. किस प्रकार का डेटा स्ट्रक्चर FIFO (First In First Out) सिद्धांत पर काम करता है ?
Which type of data structure works on the FIFO (First In First Out) principle?
(A) queue
(B) Stack
(C) Array
(D) Linked List
Correct Answer: (A) queue

Q. 43. पिकलिंग क्या है?
What is pickling?
(A) It is used for object serialization
(B) It is used for object deserialization
(C) All of the mentioned
(D) None of the mentioned
Correct Answer: (A) It is used for object serialization

Q. 44. एल्गोरिथ्म प्रक्रिया का उपयोग गणना, डेटा प्रोसेसिंग और _______ कार्यों के लिए किया जाता है ?
The algorithm process is used for calculations, data processing, and _______ tasks?
(A) Automated
(B) Scripted
(C) Any
(D) Performed
Correct Answer: (A) Automated

Q. 45. फ्लो चार्ट और एल्गोरिदम का उपयोग किया जाता है ?
Flow charts and algorithms are used for?
(A) Better Programming
(B) Optimized Coding
(C) Systematic Testing
(D) All of the above
Correct Answer: (D) All of the above

Q. 46. प्रोग्रामिंग में कौन सा डाटा टाइप नहीं है ?
Which data type is not used in programming?
(A) char
(B) int
(C) float
(D) character
Correct Answer: (D) character

Q. 47. हम पायथन में Numpy ऐरे को सूची में कैसे बदल सकते हैं?
How can we convert the Numpy array to the list in Python?
(A) list(array)
(B) list.array
(C) array.list
(D) None of these
Correct Answer: (A) list(array)

Q. 48. NumPy में परिभाषित सबसे महत्वपूर्ण एक ऑब्जेक्ट एन-डायमेंशन ऐरे का प्रकार है जिसे कहा जाता है?
The most important object defined in NumPy is an N-dimensional array type called?
(A) narray
(B) nd_array
(C) ndarray
(D) darray
Correct Answer: (C) ndarray

Q. 49. किस प्रकार का डेटा स्ट्रक्चर LIFO (Last In First Out) सिद्धांत पर काम करता है ?
Which type of data structure works on the LIFO (Last In First Out) principle?
(A) Stack
(B) Queue
(C) Array
(D) Linked List
Correct Answer: (A) Stack

Q. 50. निम्नलिखित में से कौन सा डेटा स्ट्रक्चर अंतिम तत्व तक पहुंचने के लिए रिवर्स ऑर्डर में उपयोग होता है ?
Which of the following data structure is used in reverse order to reach the last element ?
(A) Stack
(B) Array
(C) Linked List
(D) Queue
Correct Answer: (A) Stack

Q. 51. निम्नलिखित में से कौन सा डेटा स्ट्रक्चर अधूरी सूची का प्रतिनिधित्व करता है ?
Which of the following data structure represents an incomplete list?
(A) Linked List
(B) Array
(C) Queue
(D) Stack
Correct Answer: (A) Linked List

Q. 52. निम्न में से कौन सा एक लूप प्रकार नहीं है ?
Which of the following is not a loop type?
(A) loop
(B) do-while
(C) for
(D) while
Correct Answer: (A) loop

Q. 53. पाइथन में डेटा स्ट्रक्चर _______ के रूप में भी जाना जाता है ?
Data structure in Python is also known as _______?
(A) List
(B) Stack
(C) Queue
(D) All of the above
Correct Answer: (D) All of the above

Q. 54. पीवीएम का फुल फॉर्म क्या है ?
What is the full form of PVM?
(A) Python Virtual Machine
(B) Python Virtual Mode
(C) Python Visual Mode
(D) Python Visual Machine
Correct Answer: (A) Python Virtual Machine

Q. 55. फ़्लोचार्ट में इनपुट और आउटपुट के लिए किस प्रतीक का उपयोग किया जाता है?
Which symbol is used for input and output in a flowchart?
(A) Rectangle
(B) Parallelogram
(C) Oval
(D) Diamond
Correct Answer: (B) Parallelogram

Q. 56. क्या abs() फंक्शन math.fabs( ) के बराबर है?
The result of abs() is equal to math.fabs()?
(A) Yes
(B) No
(C) Can’t say
(D) None of these
Correct Answer: (A) Yes

Q. 57. What will be the output of print((range(4)))?
(A) range(0,5)
(B) range(0,4)
(C) range(1,4)
(D) range(1,5)
Correct Answer: (B) range(0,4)

Q. 58. निम्नलिखित में से कौन सा फाइल का ऐट्रीब्यूट नहीं है?
Which one of the following is not an attribute of a file?
(A) rename
(B) softspace
(C) closed
(D) None of the above
Correct Answer: (A) rename

Q. 59. पायथन प्रोग्राम कमांड लाइन से कितने arguments स्वीकार कर सकता है?
How many arguments can a Python program accept from the command line?
(A) Any
(B) Two
(C) one
(D) Three
Correct Answer: (A) Any

Q. 60. निम्नलिखित कोड का परिणाम क्या होगा?
What will be the output of the following code?
a = set(‘dcma’)
b = set(‘mlpc’)
print(a^b)
(A) {‘d’, ‘c’, ‘m’, ‘a’}
(B) None
(C) {‘d’, ‘a’, ‘p’, ‘l’}
(D) {‘d’, ‘a’, ‘p’, ‘l’, ‘c’}
Correct Answer: (A) {‘d’, ‘c’, ‘a’, ‘p’, ‘l’}
(Updated output should be: {‘d’, ‘a’, ‘p’, ‘l’}, assuming ‘l’ was meant in ‘mlpc’ instead of ‘I’)

Q. 61. एल्गोरिदम को ______ द्वारा प्रदर्शित नहीं किया जा सकता है।
Algorithms cannot be represented by _______
(A) syntax
(B) programs
(C) pseudo codes
(D) flowcharts
Correct Answer: (A) syntax

Q. 62. >>>”2″+”3″ का आउटपुट क्या होगा?
What is the output of >>>”2″+”3″?
(A) “23”
(B) None of these
(C) ,,2+3″
(D) 23
Correct Answer: (A) “23”

Q. 63. सीएसवी का फुल फॉर्म क्या है?
What is the full form of CSV?
(A) Comma Separated Value
(B) Compact Structure View
(C) Comma Space Value
(D) Common Spaced Value
Correct Answer: (A) Comma Separated Value

Q. 64. os.getlogin() function क्या return करता है?
os.getlogin() function returns?
(A) Return the name of the user logged in to the terminal
(B) Return the login time when user logged in to the terminal
(C) Return the email of the user logged in to the terminal
(D) None of the above
Correct Answer: (A) Return the name of the user logged in to the terminal

Q. 65. निम्नलिखित डेटा प्रकारों में से कौन डुप्लीकेट आइटम्स की अनुमति नहीं देता?
Which of the following data types does not allow duplicate items?
(A) सेट / set
(B) लिस्ट / list
(C) डिक्शनरी / dictionary
(D) इनमे से कोई भी नहीं / None of the above
Correct Answer: (A) सेट / set

Q. 66. एक विस्तृत फ्लोचार्ट को क्या कहा जाता है?
A detailed flowchart is known as:
(A) यूनियन / Union
(B) मैक्रो / Macro
(C) स्टैक / Stack
(D) माइक्रो / Micro
Correct Answer: (B) मैक्रो / Macro

Q. 67. कोड में त्रुटियों को खोजने की प्रक्रिया को क्या कहा जाता है?
The process of finding errors in code is called:
(A) Debugging
(B) Running
(C) Testing
(D) Compiling
Correct Answer: (A) Debugging

Q. 68. LEGB का पूरा अर्थ क्या होता है?
What is the full form of LEGB?
(A) Local, Enclosing, Global and Built-in
(B) Low, Enclosing, Global and Built-in
(C) Light, Emitting, Global and Built-in
(D) Local, Ending, Global and Built-in
Correct Answer: (A) Local, Enclosing, Global and Built-in

Q. 69. इस कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
from math import *
floor(3.7)
(A) 3
(B) 4
(C) 3.0
(D) None of these
Correct Answer: (A) 3

Q. 70. निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?
import numpy as np
a = np.array([[1,2,3]])
print(a.shape)
(A) (1, 3)
(B) (3, 1)
(C) (2, 3)
(D) None of these
Correct Answer: (A) (1, 3)

Q. 71. इस कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
q = [3, 4, 5, 20, 5, 25, 1, 3]
q .pop(1)
print(q)
(A) [3, 5, 20, 5, 25, 1, 3]
(B) [1, 3, 4, 5, 20, 5, 25]
(C) [3, 4, 5, 20, 5, 25, 1, 3]
(D) [1, 3, 3, 4, 5, 5, 20, 25]
Correct Answer: (A) [3, 5, 20, 5, 25, 1, 3]

Q. 72. नीचे दिए गए कोड का परिणाम क्या होगा?
What is the output of the following code?
x = 10
y = 3
print(divmod(x, y))
(A) (3, 1)
(B) (4, 2)
(C) (5, 7)
(D) (1, 3)
Correct Answer: (A) (3, 1)

Q. 73. नीचे दिए गए कोड का आउटपुट क्या होगा?
What will be the output of the following code?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,1,5,4,2])
c = a + b
c = c * a
print(c[2])
(A) 24
(B) 6
(C) 0
(D) None of these
Correct Answer: (A) 24

Q. 74. इस कोड का आउटपुट क्या होगा?
What will be the output of the following code?
ms = (‘A’, ‘D’, ‘H’, ‘U’, ‘N’, ‘I’, ‘C’)
print(ms[1:4])
(A) (‘D’, ‘H’, ‘U’)
(B) (‘A’, ‘D’, ‘H’, ‘U’, ‘N’, ‘T’, ‘C’)
(C) (‘D’, ‘H’, ‘U’, ‘N’, ‘I’, ‘C’)
(D) None of these
Correct Answer: (A) (‘D’, ‘H’, ‘U’)

Q. 75. निम्न कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
def addItem(listParam):
  listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))
(A) 5
(B) 2
(C) 8
(D) 1
Correct Answer: (A) 5

Q. 76. नीचे दिए गए कोड में लूप कितनी बार चलेगा?
How many times will the loop run?
for a in “56247839”:
print(a)
(A) 8
(B) 11
(C) 1
(D) 0
Correct Answer: (A) 8

Q. 77. नीचे दिए गए स्टेटमेंट में कौन सा मान्य कॉन्स्टैंट है?
Which is a valid constant in Python?
(A) 949227
(B) Hello
(C) True
(D) “2′
Correct Answer: (A) 949227

Q. 78. निम्नलिखित कोड का आउटपुट क्या है?
What is the output of the following code?
print(int())
(A) 1
(B) Error
(C) Any random number
(D) 0
Correct Answer: (D) 0

Q. 79. पायथन में Math trunc() फ़ंक्शन क्या लौटाता है?
What will the math.trunc() function return in Python?
(A) किसी संख्या के दशमलव भाग को ट्रंकेट करता है / Truncates the decimal part of a number
(B) एक संख्या का राउंडेड पूर्णांक मान / The rounded integer value of a number
(C) ट्रंकेटेड पूर्णांक मान / The truncated integer value of a number
(D) फ्लोर वैल्यू / The floor (largest integer less than or equal to the number)
Correct Answer: (C) ट्रंकेटेड पूर्णांक मान / The truncated integer value of a number

Q. 80. किसी लिस्ट से अंतिम आइटम हटाने के लिए कौन सा फ़ंक्शन उपयोग किया जाता है?
Which function is used to remove the last item from a list?
(A) pop()
(B) delete()
(C) remove_last()
(D) delete_last()
Correct Answer: (A) pop()

Q. 81. फ़ाइल बाइनरी मोड को क्या दर्शाता है?
Which denotes file binary mode?
(A) r
(B) r+
(C) w
(D) rb
Correct Answer: (D) rb

Q. 82. निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following?
import sys
sys.stdout.write(‘Welcome\n’)
sys.stdout.write(‘All\n’)
(A) Compilation Error
(B) Welcome All
(C) WelcomeAll
(D) Runtime Error
Correct Answer: (C) WelcomeAll

Q. 83. पायथन में फ़ंक्शन डिक्लेयर करने का सही तरीका क्या है?
How is a function declared in Python?
(A) declare function_name()
(B) def function function_name():
(C) declare function function_name():
(D) def function_name():
Correct Answer: (D) def function_name():

Q. 84. “hello,world”[-6] का आउटपुट क्या होगा?
What value will “hello,world”[-6] print?
(A) White Space
(B) ,
(C) e
(D) S
Correct Answer: (B) ,

Q. 85. निम्न में से कौन सा फ़ाइल खोलने के लिए सही मोड नहीं है?
Which of the following is not a correct mode to open a file?
(A) rw
(B) r+
(C) a+
(D) ab
Correct Answer: (A) rw

Q. 86. पायथन में किसी फ़ंक्शन को परिभाषित करने के लिए कौन सा कीवर्ड उपयोग किया जाता है?
Which keyword is used for functions in Python?
(A) fun
(B) function
(C) def
(D) define
Correct Answer: (C) def

Q. 87. निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following?
print ((2, 4) + (1, 5))
(A) (2, 4), (4, 5)
(B) Invalid Syntax
(C) (2, 4, 1, 5)
(D) (3, 9)
Correct Answer: (C) (2, 4, 1, 5)

Q. 88. पायथन कोड print((-3)**2) का आउटपुट क्या होगा?
What will be the output of print((-3)**2)?
(A) 9
(B) -9
(C) -6
(D) 6
Correct Answer: (A) 9

Q. 89. निम्नलिखित कोड द्वारा कितनी संख्याएं मुद्रित होंगी?
How many numbers will be printed by the following code?
def fun(a,b):
for x in range(a,b+1):
if x%3==0:
print(x, end=” “)
fun(100,120)
(A) 6
(B) 7
(C) 9
(D) 8
Correct Answer: (B) 7

Q. 90. फ़ाइल का नाम बदलने के लिए सही सिंटैक्स क्या है?
What is the correct syntax to rename a file?
(A) os.rename ( existing_name, new_name)
(B) os.rename (fp, new_name)
(C) os.set_name (existing_name, new_name)
(D) fp.name =,, new_name.txt”
Correct Answer: (A) os.rename ( existing_name, new_name)

Q. 91. पायथन में फ़ाइल खोलने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to open a file in Python?
(A) open(file_object, file_name, mode)
(B) file_open(file_object, file_name, mode)
(C) file_object=open(file_name, mode)
(D) file_object=file_open(file_name, mode)
Correct Answer: (C) file_object=open(file_name, mode)

Q. 92. ब्रेक स्टेटमेंट के बारे में क्या सत्य है?
What is true about a break statement?
(A) Break halts the execution of the loop for certain time frame
(B) Break halts the execution and forces the control out of the loop
(C) Break stops the execution of entire program
(D) Break forces the control out of the loop and starts the execution of next iteration
Correct Answer: (B) Break halts the execution and forces the control out of the loop

Q. 93. यदि हम फाइल को राइट मोड में खोलते हैं और फाइल मौजूद नहीं है तो क्या होगा?
If we open a file in write mode and the file does not exist, what happens?
(A) File Not Exist Error
(B) File Not Found Error
(C) File Found Error
(D) None of these
Correct Answer: (D) None of these

Q. 94. निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
max(“what are you”)
(A) Error
(B) y
(C) what
(D) a
Correct Answer: (B) y

Q. 95. कौन सा एक गणितीय फ़ंक्शन है?
Which one is a mathematical function?
(A) rhombus()
(B) home()
(C) sqrt()
(D) add()
Correct Answer: (C) sqrt()

Q. 96. पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following?
import numpy as np
arr = np.array([1,2,3])
print(arr.shape)
(A) 3
(B) (4,)
(C) (3,)
(D) 1
Correct Answer: (C) (3,)

Q. 97. फ्लो चार्ट में अंडाकार आकार का उपयोग किसके लिए किया जाता है?
In a flowchart, what is the oval shape used for?
(A) Input/Output
(B) Arithmetic instruction
(C) Decision
(D) Start/Stop
Correct Answer: (D) Start/Stop

Q. 98. निम्नलिखित में से कौन सा फ़ाइल खोलने के लिए वैध मोड नहीं है?
Which of the following is not a valid mode to open a file?
(A) ab
(B) r+
(C) w+
(D) rw
Correct Answer: (D) rw

Q. 99. पायथन फ़ाइल को किस प्रारूप में मानी जाती है?
In which format is a Python file considered?
(A) giga bytes / गीगाबाइट्स
(B) bits / बिट्स
(C) mega bytes / मेगाबाइट्स
(D) byte / बाइट
Correct Answer: (D) byte / बाइट

Q. 100. बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
Which symbol is used for the bitwise XOR operator?
(A) ^
(B) !
(C) |
(D) &
Correct Answer: (A) ^

Hope aapne M3-R5 O Level NIELIT January 2024 ke previous papers padh liye hain aur samajh bhi liya hai.

आज तक के सभी ओ-लेवल प्रीवियस पेपर्स को पढ़ना, डाउनलोड करना या मॉक टेस्ट देना है तो नीचे दिए गए बटन को दबाइये!


Kya aap M3-R5 O Level January 2024 ke previous papers ka mock test dena chahte hain?, Neeche diye gaye button par click karein.


Agar aap M3-R5 O Level January 2024 ke previous papers PDF mein download karna chahte hain?, to neeche diye gaye button par click karein.


Apna study experience humse neeche comment box mein zarur share karein. Agar aapko koi galti mile to humein batana na bhoolen. 😊

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

error: Content is protected !!
Scroll to Top