Important Notice:
|| CCC Result Dec 2025 ||
|| CCC Marksheet Dec 2025 ||
|| O Level Jan 202& Reg. Form Last Date: 30/09/2026 ||
|| CCC Mar 2026 Exam Admit card Release ||
|| CCC/ O Level Exam Full Form ||
|| CCC Result Dec 2025 ||
|| CCC Marksheet Dec 2025 ||
|| O Level Jan 202& Reg. Form Last Date: 30/09/2026 ||
|| CCC Mar 2026 Exam Admit card Release ||
|| CCC/ O Level Exam Full Form ||
O Level
Notes
Follow us:
OLevelNotes
Home
O Level Notes
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
CCC
CCC Chapter Wise Notes
CCC Chapter Wise MCQ
CCC Modal Paper
CCC Previous Paper
CCC Assignment
CCC Online Test/Real Portal
Chapter Wise MCQ
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Model Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
O Level Real Test Portal
Old Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Practical Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Assignment
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Contact Us
ADCA Course
Introduction To Computer
Introduction To OS
MS Office
Tally Prime
Graphic Design
Web Design
Programming Language
Learn Typing
Typing Tutor
Typing Test
KCIT Student
Student Login
KCIT Student
M3-R5.1 Old Paper — July 2026
100 Questions • M3-R5.1
120:00
← Back
1
Which file mode creates a new file but raises an error if it exists? कौन-सा फाइल मोड एक नई फाइल बनाता है, लेकिन अगर वह पहले से मौजूद हो तो एरर देता है?
A
(A) w
B
(B) a
C
(C) x
D
(D) r+
2
Which property of an algorithm ensures that it does not run indefinitely? एल्गोरिद्म की कौन सी विशेषता यह सुनिश्चित करती है कि वह इन्फिनिटली न चले?
A
(A) Finiteness फाइनाइटनेस
B
(B) Effectiveness एफेक्टिवनेस
C
(C) Definiteness डेफिनिटनेस
D
(D) Generality जनरलिटी
3
Which of the following best explains why Python programs are easier to debug compared to compiled languages? इनमें से कौन सा विकल्प सबसे अच्छी तरह बताता है कि कंपाइल होने वाली भाषाओं की तुलना में पायथन प्रोग्राम को डीबग करना आसान क्यों है?
A
(A) Python does not allow runtime errors पायथन रनटाइम एरर की अनुमति नहीं देता
B
(B) Python checks all errors at compile time पायथन कंपाइल होने के समय सभी एरर की जाँच करता है
C
(C) Python executes code line by line and reports errors immediately पायथन कोड को लाइन-दर-लाइन चलाता है और तुरंत एरर की रिपोर्ट करता है
D
(D) Python programs are always shorter पायथन प्रोग्राम हमेशा छोटे होते हैं
4
What is the output of the following code? निम्नलिखित कोड का आउटपुट क्या होगा? Code: x = 1 y = 2 z = 3 print(x < y < z == True)
A
(A) True
B
(B) False
C
(C) 1
D
(D) None कोई नहीं
5
Python is classified as a: पायथन को ________ के रूप में वर्गीकृत किया गया है:
A
(A) Compiled, low-level language कंपाइल्ड, लो-लेवल भाषा
B
(B) Purely interpreted, machine-dependent language पूरी तरह से इंटरप्रेटेड, मशीन-डिपेंडेंट भाषा
C
(C) High-level, interpreted language with dynamic typing डायनामिक टाइपिंग वाली हाई-लेवल, इंटरप्रेटेड भाषा
D
(D) Assembly-level procedural language असेंबली-लेवल प्रोसीजरल भाषा
6
Which function is used to create a NumPy array? नई ऐरे बनाने के लिए किस फंक्शन का उपयोग किया जाता है?
A
(A) np.create()
B
(B) np.array()
C
(C) np.ndarray()
D
(D) np.makearray()
7
What is the output of following? निम्न का आउटपुट क्या होगा? d = {1: 'a', 2: 'b', 1: 'c'} print(d)
A
(A) {1: 'a', 2: 'b'}
B
(B) {2: 'b'}
C
(C) {1: 'c', 2: 'b'}
D
(D) Error
8
Which scope is searched first according to the LEGB rule? एलईजीबी नियम के अनुसार सबसे पहले किस स्कोप को ढूँढा जाता है?
A
(A) Global ग्लोबल
B
(B) Enclosing एनक्लोजिंग
C
(C) Built-in बिल्ट-इन
D
(D) Local लोकल
9
What will be the output? आउटपुट क्या होगा? print(type({}))
A
(A) <class 'set'>
B
(B) <class 'dict'>
C
(C) <class 'tuple'>
D
(D) Error
10
What is the output of following? निम्न का आउटपुट क्या होगा? def f(x): x = 10 a = 5 f(a) print(a)
A
(A) 10
B
(B) 5
C
(C) Error
D
(D) None
11
What does ndarray.shape return? ndarray.shape क्या रिटर्न करता है?
A
(A) Tuple of array dimensions ऐरे डाइमेंशन्स का ट्यूपल
B
(B) Total elements कुल एलिमेंट्स
C
(C) Data type डेटा टाइप
D
(D) Memory size मेमोरी साइज़
12
What does the following code do? नीचे दिए गए कोड का क्या करता है? from math import * print(cos(0))
A
(A) Prints 1.0 1.0 प्रिंट करता है
B
(B) Raises a NameError नेमएरर देता है
C
(C) Prints cos(0) cos(0) प्रिंट करता है
D
(D) Error एरर
13
Modules act as: मॉड्यूल ________ के रूप में काम करते हैं:
A
(A) Classes क्लासेस
B
(B) Functions फंक्शन्स
C
(C) Objects only केवल ऑब्जेक्ट्स
D
(D) Namespaces नेमस्पेसेज
14
Which variable must be initialized to 1 in the algorithm for factorial computation? फैक्टोरियल की गणना करने वाले एल्गोरिद्म में किस वेरिएबल को 1 से इनिशियलाइज़ किया जाना चाहिए?
A
(A) Counter काउंटर
B
(B) Factorial value फैक्टोरियल वैल्यू
C
(C) Input number इनपुट नंबर
D
(D) Loop limit लूप लिमिट
15
What does s.count('a') return? s.count('a') क्या रिटर्न करता है?
A
(A) Index of 'a' 'a' का इंडेक्स
B
(B) Frequency of 'a' 'a' की फ्रीक्वेंसी
C
(C) Boolean बूलियन
D
(D) Error एरर
16
What will be the output of the following code? नीचे दिए गए कोड का आउटपुट क्या होगा? x = 10 x += x > 5 print(x)
A
(A) 10
B
(B) 11
C
(C) True
D
(D) Error
17
Which variable has local scope? किस वेरिएबल का स्कोप लोकल होता है?
A
(A) Declared outside all functions सभी फंक्शन्स के बाहर घोषित
B
(B) Declared in loop लूप में घोषित
C
(C) Declared using global ग्लोबल का उपयोग करके घोषित
D
(D) Declared inside a function फंक्शन के अंदर घोषित
18
Which of the following errors is most likely if a loop control variable is not updated in an iterative flowchart? अगर किसी इटरेटिव फ्लोचार्ट में लूप कंट्रोल वेरिएबल को अपडेट नहीं किया जाता है, तो इनमें से कौन सी गलती होने की सबसे ज्यादा संभावना है?
A
(A) Syntax error सिंटैक्स एरर
B
(B) Logical error लॉजिकल एरर
C
(C) Compilation error कंपाइलेशन एरर
D
(D) Infinite loop इनफाइनाइट लूप
19
What is the output of following? निम्न का आउटपुट क्या होगा? def add(a, b=5): return a + b print(add(3))
A
(A) 3
B
(B) 5
C
(C) 8
D
(D) Error
20
Which loop condition is used in the algorithm to find the GCD of two numbers using Euclid's method? यूक्लिड की विधि का उपयोग करके दो संख्याओं का जीसीडी ज्ञात करने के लिए एल्गोरिद्म में किस लूप कंडीशन का उपयोग किया जाता है?
A
(A) a > b
B
(B) b = 0
C
(C) While (b != 0)
D
(D) a = b
21
Scope of a name in Python refers to: पायथन में किसी नाम के स्कोप का अर्थ ________ है:
A
(A) Lifetime of an object ऑब्जेक्ट का लाइफटाइम
B
(B) Region of code where a name is accessible कोड का वह हिस्सा जहाँ नाम एक्सेस किया जा सकता है
C
(C) Size of a variable वेरिएबल का साइज़
D
(D) Memory address मेमोरी एड्रेस
22
Which statement imports only selected names from a module? कौन-सा स्टेटमेंट किसी मॉड्यूल से केवल चुने हुए नामों को इम्पोर्ट करता है?
A
(A) import math
B
(B) import math as m
C
(C) from math import sqrt
D
(D) load math
23
What will be printed? क्या प्रिंट होगा? x = 5 def f(): global x x = 10 f() print(x)
A
(A) 5
B
(B) 10
C
(C) Error
D
(D) None
24
Which subtle flaw makes a flowchart logically incorrect even if all symbols are syntactically valid? कौन सी बारीक कमी एक फ्लोचार्ट को लॉजिकली गलत बना देती है, भले ही सभी सिंबल सिंटैक्स के हिसाब से सही हों?
A
(A) Use of multiple terminators एक से ज्यादा टर्मिनेटर का इस्तेमाल
B
(B) Absence of comments कमेंट्स का न होना
C
(C) Use of rectangles instead of parallelograms पैरललोग्राम की जगह रेक्टेंगल का इस्तेमाल
D
(D) A decision block with paths that do not reconverge logically एक ऐसा डिसीजन ब्लॉक जिसके पाव लॉजिकली दोबारा नहीं मिलते
25
Output: आउटपुट: x = 5 y = 10 print(x > 3 or y < 5 and x == 5)
A
(A) True
B
(B) False
C
(C) Error एरर
D
(D) None कोई नहीं
26
A well-designed algorithm must satisfy: एक अच्छी तरह से डिजाइन किए गए एल्गोरिद्म को इन शर्तों को पूरा करना चाहिए:
A
(A) Correctness and finiteness only केवल सही होना और सीमित होना
B
(B) Finiteness and efficiency only केवल सीमित होना और कुशल होना
C
(C) Correctness, finiteness, and clarity सही होना, सीमित होना और स्पष्ट होना
D
(D) Correctness and hardware dependency सही होना और हार्डवेयर पर निर्भरता
27
Which stage occurs first when a Python program is executed? जब पायथन प्रोग्राम को एक्जीक्यूट किया जाता है, तो सबसे पहले कौन सा चरण होता है?
A
(A) Bytecode execution बाइटकोड एक्जीक्यूशन
B
(B) Syntax analysis सिंटैक्स एनालिसिस
C
(C) Output generation आउटपुट जनरेशन
D
(D) Runtime evaluation रनटाइम इवेल्यूएशन
28
What will be the output of the following Python function? नीचे दिए गए पायथन फंक्शन का आउटपुट क्या होगा? random.choice('fun')
A
(A) fun
B
(B) u
C
(C) Error एरर
D
(D) either f, u or n f, u या n में से कोई एक
29
Which keyword allows modification of a global variable inside a function? कौन सा कीवर्ड फंक्शन के अंदर ग्लोबल वेरिएबल में बदलाव करने की सुविधा देता है?
A
(A) extern एक्सटर्न
B
(B) static स्टेटिक
C
(C) global ग्लोबल
D
(D) nonlocal नॉनलोकल
30
Consider two algorithms A and B solving the same problem. Algorithm A always terminates but sometimes produces incorrect output, while algorithm B produces correct output but may not terminate for some inputs. Which statement is TRUE? मान लीजिए कि दो एल्गोरिद्म A और B हैं जो एक ही समस्या को हल करते हैं। एल्गोरिद्म A हमेशा टर्मिनेट हो जाता है लेकिन कभी-कभी गलत आउटपुट देता है, जबकि एल्गोरिद्म B सही आउटपुट देता है लेकिन कुछ इनपुट के लिए टर्मिनेट नहीं हो सकता। कौन सा कथन सही है?
A
(A) A is preferable because it terminates A बेहतर है क्योंकि यह टर्मिनेट हो जाता है
B
(B) B is preferable because correctness is fundamental B बेहतर है क्योंकि सही परिणाम मिलना जरूरी है
C
(C) Both satisfy algorithm correctness दोनों एल्गोरिद्म की सही होने की शर्त को पूरा करते हैं
D
(D) Both are unacceptable algorithms दोनों एल्गोरिद्म के जरूरी गुणों का उल्लंघन करते हैं
31
Which criterion best determines whether a flowchart solution is correct and complete? कौन सा मापदंड सबसे बेहतर ढंग से यह तय करता है कि फ्लोचार्ट का समाधान सही और पूरा है?
A
(A) Uses minimum symbols कम से कम सिंबल का उपयोग करना
B
(B) Has only one loop सिर्फ एक लूप का होना
C
(C) Produces correct output for all valid inputs सभी सही इनपुट के लिए सही आउटपुट देना
D
(D) Uses standard variable names स्टैंडर्ड वेरिएबल नामों का उपयोग करना
32
Which file extension is used for Python modules? पायथन मॉड्यूल्स के लिए कौन सा फाइल एक्सटेंशन उपयोग किया जाता है?
A
(A) .py
B
(B) .mod
C
(C) .exe
D
(D) .txt
33
What will be the output of the code given below? नीचे दिए गए कोड का आउटपुट क्या होगा? import math as m print(m.pi)
A
(A) 3.141592654
B
(B) math.pi
C
(C) Error एरर
D
(D) None कोई नहीं
34
What is the output of following? निम्न का आउटपुट क्या होगा? for i in range(5): if i == 3: continue print(i, end=" ")
A
(A) 0 1 2 3 4
B
(B) 0 1 2 4
C
(C) 1 2 3 4
D
(D) 0 1 2
35
Which statement about debugging is TRUE? डीबगिंग के बारे में कौन सा कथन सही है?
A
(A) Debugging is the process of locating and fixing errors डीबगिंग एरर को ढूँढने और उन्हें ठीक करने की प्रक्रिया है
B
(B) Debugging removes syntax errors only डीबगिंग केवल सिंटैक्स के एरर को हटाती है
C
(C) Debugging is done before testing डीबगिंग टेस्टिंग से पहले की जाती है
D
(D) Debugging increases code complexity डीबगिंग एल्गोरिद्म की जटिलता को बढ़ाती है
36
Which statement about dictionaries is true? डिक्शनरीज के बारे में कौन सा कथन सही है?
A
(A) Dictionary keys must be mutable डिक्शनरी की कुंजियाँ म्यूटेबल होनी चाहिए
B
(B) Dictionary values must be immutable डिक्शनरी के मान इम्यूटेबल होने चाहिए
C
(C) Dictionary preserves insertion order only in Python 2 डिक्शनरी केवल पायथन 2 में प्रिविड क्रम को संरक्षित करता है
D
(D) Dictionary keys must be unique डिक्शनरी की कुंजियाँ यूनिक होनी चाहिए
37
What is the output of following? निम्न का आउटपुट क्या होगा? a = [1, 2, 3] b = a b.append(4) print(a)
A
(A) [1, 2, 3]
B
(B) [1, 2, 3, 4]
C
(C) Error
D
(D) [4]
38
Which operation is not valid on tuples? ट्यूपल्स पर कौन सा ऑपरेशन मान्य नहीं है?
A
(A) Indexing इंडेक्सिंग
B
(B) Slicing स्लाइसिंग
C
(C) Concatenation कॉन्कैटिनेशन
D
(D) Element assignment एलिमेंट असाइनमेंट
39
Default argument values are evaluated: डिफॉल्ट आर्गुमेंट वैल्यूज का मूल्यांकन कब किया जाता है?
A
(A) At function definition फंक्शन डेफिनिशन के समय
B
(B) At function call फंक्शन कॉल के समय
C
(C) At runtime always हमेशा रनटाइम पर
D
(D) Never कभी नहीं
40
What does the nonlocal keyword refer to? नॉनलोकल कीवर्ड किस चीज़ को दर्शाता है?
A
(A) Enclosing function scope एनक्लोजिंग फंक्शन स्कोप
B
(B) Built-in scope बिल्ट-इन स्कोप
C
(C) Global scope ग्लोबल स्कोप
D
(D) Local scope लोकल स्कोप
41
The Fibonacci sequence algorithm mainly demonstrates: फिबोनाची सीक्वेंस एल्गोरिद्म मुख्य रूप से दिखाता है:
A
(A) Decision-based processing निर्णय-आधारित प्रोसेसिंग
B
(B) Sequential processing क्रमिक प्रोसेसिंग
C
(C) Iterative processing with variable update वेरिएबल अपडेट के साथ इटरेटिव प्रोसेसिंग
D
(D) Randomized processing रैंडमाइज़्ड प्रोसेसिंग
42
Which statement imports an entire module? कौन-सा स्टेटमेंट पूरे मॉड्यूल को इम्पोर्ट करता है?
A
(A) import math
B
(B) from math import pi
C
(C) include math
D
(D) using math
43
What is the default datatype of np.array([1,2,3])? np.array([1,2,3]) का डिफॉल्ट डेटाटाइप क्या है?
A
(A) float64
B
(B) int32
C
(C) int64
D
(D) object
44
What does the following slice return? नीचे दिया गया स्लाइस क्या रिटर्न करता है? s = [0,1,2,3,4,5] print(s[1:5:2])
A
(A) [1, 3]
B
(B) [2, 4]
C
(C) [1, 2, 3, 4]
D
(D) [0, 2, 4]
45
What is the output of following? निम्न का आउटपुट क्या होगा? for i in range(3): pass print(i)
A
(A) 0
B
(B) 1
C
(C) 2
D
(D) Error
46
Which function removes whitespace from both ends? कौन सा फंक्शन दोनों सिरों से व्हाइटस्पेस हटाता है?
A
(A) strip()
B
(B) lstrip()
C
(C) rstrip()
D
(D) trim()
47
What will be printed? क्या प्रिंट होगा? i = 0 while i < 3: i += 1 if i == 2: continue print(i, end=" ") else: print("END")
A
(A) 1 2 3 END
B
(B) 1 2 3
C
(C) 1 3
D
(D) 1 3 END
48
What does eval() do? eval() क्या करता है?
A
(A) Converts string to int स्ट्रिंग को इंट में बदलता है
B
(B) Evaluates Python expression पायथन एक्सप्रेशन को इवैल्यूएट करता है
C
(C) Prints expression एक्सप्रेशन को प्रिंट करता है
D
(D) Converts to float फ्लोट में बदलता है
49
What is printed? क्या प्रिंट होगा? i = 1 while i < 4: print(i, end=" ") i += 1 else: print("Done")
A
(A) 1 2 3
B
(B) Infinite loop
C
(C) Done
D
(D) 1 2 3 Done
50
In a flowchart, the diamond-shaped symbol is used to represent: फ्लोचार्ट में, डायमंड के आकार के सिंबल का उपयोग ________ को दिखाने के लिए किया जाता है:
A
(A) Input/Output operation इनपुट/आउटपुट ऑपरेशन
B
(B) Processing step प्रोसेसिंग स्टेप
C
(C) Decision making डिसीजन मेकिंग
D
(D) Loop termination लूप टर्मिनेशन
51
In a primality-checking algorithm, the loop typically runs from: प्राइम-चेकिंग एल्गोरिद्म में, लूप आमतौर पर ________ तक चलता है:
A
(A) 1 to n 1 से n
B
(B) 2 to n-1 2 से n-1
C
(C) 1 to √n 1 से √n
D
(D) 2 to √n 2 से √n
52
What is the output of following? निम्न का आउटपुट क्या होगा? f = open("test.txt", "r") f.seek(0) print(f.tell())
A
(A) 0
B
(B) 1
C
(C) Error एरर
D
(D) File size फाइल साइज़
53
Which string slicing expression gives the output 'yth' from 'python'? 'python' से 'yth' आउटपुट पाने के लिए कौन सा स्ट्रिंग स्लाइसिंग एक्सप्रेशन उपयोग किया जाता है?
A
(A) s[1:4]
B
(B) s[1:3]
C
(C) s[2:5]
D
(D) s[1:5:2]
54
What is the output of following? निम्न का आउटपुट क्या होगा? f = open("data.txt", "r") print(f.readline())
A
(A) One line from the file फाइल की एक लाइन
B
(B) Entire file पूरी फाइल
C
(C) List of lines लाइनों की लिस्ट
D
(D) Error एरर
55
Which built-in data type is immutable? कौन सा बिल्ट-इन डेटा टाइप इम्यूटेबल है?
A
(A) List लिस्ट
B
(B) Set सेट
C
(C) Dictionary डिक्शनरी
D
(D) String स्ट्रिंग
56
Which of the following data types is immutable? इनमें से कौन सा डेटा टाइप इम्यूटेबल है?
A
(A) List लिस्ट
B
(B) Dictionary डिक्शनरी
C
(C) Set सेट
D
(D) Tuple ट्यूपल
57
Output of the code: कोड का आउटपुट: t = (10, 20, 30) t += (40,) print(t)
A
(A) (10, 20, 30)
B
(B) (10, 20, 30, 40)
C
(C) Error
D
(D) (40,)
58
Which of the following creates a set? इनमें से कौन-सा एक सेट बनाता है?
A
(A) {1, 2, 3}
B
(B) []
C
(C) [1, 2, 3]
D
(D) (1, 2, 3)
59
What happens if a file opened in w mode already exists? अगर w मोड में खोली गई फाइल पहले से मौजूद हो, तो क्या होता है?
A
(A) Error is raised एरर रेज होता है
B
(B) File is appended फाइल में डेटा जोड़ा जाता है
C
(C) File is read-only फाइल रीड-ओनली हो जाती है
D
(D) File is overwritten फाइल ओवरराइट हो जाती है
60
What does np.ones((2,3)) create? np.ones((2,3)) क्या बनाता है?
A
(A) 2 rows, 3 columns of ones एक की 2 पंक्तियाँ, 3 कॉलम
B
(B) 3 rows, 2 columns of ones एक की 3 पंक्तियाँ, 2 कॉलम
C
(C) 6x6 matrix 6x6 मैट्रिक्स
D
(D) 1D array 1डी ऐरे
61
Which attribute returns number of bytes per element? कौन-सा एट्रिब्यूट प्रति एलिमेंट बाइट्स की संख्या रिटर्न करता है?
A
(A) itemsize आइटमसाइज़
B
(B) nbytes एनबाइट्स
C
(C) memory मेमोरी
D
(D) bytesize बाइटसाइज़
62
What is the output of np.arange(1,10,2)? np.arange(1,10,2) का आउटपुट क्या होगा?
A
(A) [1,3,5,7,9]
B
(B) [1,2,3,4,5]
C
(C) [2,4,6,8]
D
(D) Error एरर
63
input() function always returns: input() फंक्शन हमेशा ________ रिटर्न करता है:
A
(A) int इंट
B
(B) float फ्लोट
C
(C) Boolean बूलियन
D
(D) String स्ट्रिंग
64
What does the following code do? नीचे दिया गया कोड क्या करता है? from datetime import datetime dt = datetime.strptime("2024-11-22", "%Y-%m-%d") print(dt)
A
(A) Returns the current date करंट डेट रिटर्न करता है
B
(B) Converts the string "2024-11-22" to a datetime object स्ट्रिंग "2024-11-22" को डेटटाइम ऑब्जेक्ट में बदलता है
C
(C) Returns the string "2024-11-22" स्ट्रिंग "2024-11-22" रिटर्न करता है
D
(D) Raises a ValueError वैल्यूएरर रेज करता है
65
Which statement is used when a loop body is syntactically required but no action is needed? जब सिंटैक्स के हिसाब से लूप बॉडी की ज़रूरत हो लेकिन कोई एक्शन न करना हो, तो किस स्टेटमेंट का उपयोग किया जाता है?
A
(A) pass पास
B
(B) continue कंटिन्यू
C
(C) break ब्रेक
D
(D) assert एसर्ट
66
Recursion means: रिकर्शन का अर्थ है:
A
(A) Looping लूपिंग
B
(B) Function calling another function एक फंक्शन द्वारा दूसरे फंक्शन को कॉल करना
C
(C) Function calling itself फंक्शन का खुद को ही कॉल करना
D
(D) Infinite execution इनफाइनाइट एक्जीक्यूशन
67
A syntax error in Python is detected during: पायथन में सिंटैक्स एरर का पता ________ के दौरान चलता है:
A
(A) Compilation/interpretation phase कंपाइलेशन/इंटरप्रेटेशन फेज़
B
(B) Logical analysis लॉजिकल एनालिसिस
C
(C) Program execution only सिर्फ प्रोग्राम एक्जीक्यूशन
D
(D) Documentation phase डॉक्यूमेंटेशन फेज़
68
What does read() do? read() क्या करता है?
A
(A) Reads one line एक लाइन रीड करता है
B
(B) Reads all lines into a list सभी लाइनों को एक लिस्ट में रीड करता है
C
(C) Reads entire file as a string पूरी फाइल को एक स्ट्रिंग के रूप में रीड करता है
D
(D) Reads one character एक कैरेक्टर रीड करता है
69
What does tell() return? tell() क्या रिटर्न करता है?
A
(A) File size फाइल का साइज़
B
(B) File name फाइल का नाम
C
(C) Number of lines लाइनों की संख्या
D
(D) Current file pointer position मौजूदा फाइल पॉइंटर की पोजिशन
70
Which operator checks membership? कौन सा ऑपरेटर मेंबरशिप चेक करता है?
A
(A) ==
B
(B) is
C
(C) has
D
(D) in
71
Which statement best captures the deep relationship between testing and debugging? कौन सा कथन टेस्टिंग और डीबगिंग के बीच गहरे संबंध को सबसे अच्छी तरह बताता है?
A
(A) Testing and debugging are identical processes टेस्टिंग और डीबगिंग एक जैसी प्रक्रियाएँ हैं
B
(B) Testing guarantees error-free programs टेस्टिंग से बिना गलती वाले प्रोग्राम की गारंटी मिलती है
C
(C) Debugging must be completed before testing टेस्टिंग से पहले डीबगिंग पूरी होनी चाहिए
D
(D) Testing reveals the presence of defects, while debugging locates and removes them टेस्टिंग से कमियों का पता चलता है, जबकि डीबगिंग उन्हें ढूँढकर दूर करती है
72
What is the output of following? निम्न का आउटपुट क्या होगा? print(round(4.567, 2))
A
(A) 4.56
B
(B) 4.57
C
(C) 4.5
D
(D) 5
73
What is the output of following? निम्न का आउटपुट क्या होगा? def f(a, b): print(a, b) f(b=2, a=1)
A
(A) 2 1
B
(B) 1 2
C
(C) Error एरर
D
(D) None कोई नहीं
74
What does flatten() do to an array? flatten() ऐरे का क्या करता है?
A
(A) Reduces dimension डाइमेंशन घटाता है
B
(B) Converts to row vector रो वेक्टर में बदलता है
C
(C) Removes elements एलिमेंट्स हटाता है
D
(D) Changes datatype डेटाटाइप बदलता है
75
What will be the output of the following code? नीचे दिए गए कोड का आउटपुट क्या होगा? for i in range(1, 5): if i == 3: break print(i, end=" ")
A
(A) 1 2 3
B
(B) 1 2 3 4
C
(C) 1 2 4
D
(D) 1 2
76
What is the output? आउटपुट क्या है? s = "Python" print(s[-1:-4])
A
(A) nho
B
(B) hon
C
(C) IndexError
D
(D) Empty string
77
Command line arguments in Python are accessed using: पायथन में कमांड लाइन आर्गुमेंट्स को ________ का उपयोग करके एक्सेस किया जाता है:
A
(A) argv[]
B
(B) sys.argv
C
(C) input()
D
(D) args[]
78
arr[::-1] does what? arr[::-1] क्या करता है?
A
(A) Sorts array ऐरे को सॉर्ट करता है
B
(B) Reverses array ऐरे को रिवर्स करता है
C
(C) Deletes elements एलिमेंट्स को डिलीट करता है
D
(D) Returns copy only सिर्फ कॉपी देता है
79
What does range(1, 10, 2) generate? range(1, 10, 2) क्या जनरेट करता है?
A
(A) Even numbers सम संख्याएँ
B
(B) Odd numbers from 1 to 9 1 से 9 तक विषम संख्याएँ
C
(C) Odd numbers from 1 to 10 1 से 10 तक विषम संख्याएँ
D
(D) Error एरर
80
In 2D slicing, arr[1,2] refers to: 2डी स्लाइसिंग में, arr[1,2] का अर्थ है:
A
(A) Row 1 रो 1
B
(B) Column 2 कॉलम 2
C
(C) Element at row 1, column 2 रो 1, कॉलम 2 पर मौजूद एलिमेंट
D
(D) Entire second row पूरी दूसरी रो
81
What is the output of following? निम्नलिखित का आउटपुट क्या होगा? print(type(1+2j))
A
(A) <class 'complex'>
B
(B) <class 'float'>
C
(C) <class 'int'>
D
(D) TypeError
82
The algorithm to evaluate sin x using series expansion primarily uses: सीरीज़ एक्सपेंशन का इस्तेमाल करके sin x का मान निकालने वाला एल्गोरिद्म मुख्य रूप से ________ का इस्तेमाल करता है:
A
(A) Iteration and sequential arithmetic इटरेशन और सीक्वेंशियल अरिथमेटिक
B
(B) Recursion रिकर्शन
C
(C) Decision-only processing डिसीजन-ओनली प्रोसेसिंग
D
(D) Sorting सॉर्टिंग
83
Which function is used to open a file in Python? पायथन में फाइल खोलने के लिए किस फंक्शन का उपयोग किया जाता है?
A
(A) file()
B
(B) open()
C
(C) fopen()
D
(D) load()
84
To reverse the order of elements in an array, the algorithm must swap elements between: किसी ऐरे में एलिमेंट्स के क्रम को उलटने के लिए, एल्गोरिद्म को ________ के बीच एलिमेंट्स को स्वैप करना होगा:
A
(A) Adjacent indices आस-पास के इंडेक्स
B
(B) First and last, second and second-last, etc. पहले और आखिरी, दूसरे और दूसरे-आखिरी, आदि इंडेक्स
C
(C) Random indices रैंडम इंडेक्स
D
(D) Even indices only केवल सम इंडेक्स
85
Which of the following programs correctly prints the sum of two numbers? इनमें से कौन-सा प्रोग्राम दो संख्याओं का योग सही ढंग से प्रिंट करता है?
A
(A) print(intput() + input())
B
(B) print(int(input()) + int(input()))
C
(C) print(input() + input)
D
(D) print(eval(input()))
86
For calculating the summation of N numbers, the minimum number of decision boxes required is: N संख्याओं का योग निकालने के लिए, जरूरी डिसीजन बॉक्स की कम-से-कम संख्या ________ है:
A
(A) 0
B
(B) 1
C
(C) 2
D
(D) N
87
When a module is imported, its code is: जब कोई मॉड्यूल इम्पोर्ट होता है तो उसका कोड ________:
A
(A) Imported इम्पोर्ट किया जाता है
B
(B) Compiled only सिर्फ कंपाइल किया जाता है
C
(C) Executed once एक बार एक्जीक्यूट किया जाता है
D
(D) Executed every time हर बार एक्जीक्यूट किया जाता है
88
In the flowchart to print elements of an upper triangular matrix, which condition is checked? अपर ट्रायंगुलर मैट्रिक्स के एलिमेंट्स को प्रिंट करने वाले फ्लोचार्ट में, कौन सी कंडीशन चेक की जाती है?
A
(A) i > j
B
(B) i < j
C
(C) i <= j
D
(D) i = j
89
What will be printed? क्या प्रिंट होगा? x = 10 def f(): x = 20 print(x) f() print(x)
A
(A) 10 10
B
(B) 20 20
C
(C) 20 10
D
(D) Error एरर
90
What does assert do? एसर्ट क्या करता है?
A
(A) Terminates loop लूप को खत्म करता है
B
(B) Skips iteration इटरेशन को छोड़ देता है
C
(C) Prints message मैसेज प्रिंट करता है
D
(D) Raises error if condition is False अगर कंडीशन गलत हो तो एरर देता है
91
What is the output of following? निम्न का आउटपुट क्या होगा? lst = [1, 2, 3, 4] print(lst[::-1])
A
(A) [1, 2, 3, 4]
B
(B) [4, 3, 2, 1]
C
(C) Error एरर
D
(D) [1, 3]
92
Which function writes a list of strings to a file? कौन सा फंक्शन स्ट्रिंग्स की एक लिस्ट को फाइल में लिखता है?
A
(A) writelines()
B
(B) write()
C
(C) readlines()
D
(D) append()
93
What is the type of input received using input()? input() का उपयोग करके किस तरह का इनपुट मिलता है?
A
(A) int
B
(B) float
C
(C) string
D
(D) depends on user input यूज़र इनपुट पर निर्भर करता है
94
Which of the following is a mutable object? निम्न में से कौन सा म्यूटेबल ऑब्जेक्ट है?
A
(A) List लिस्ट
B
(B) Tuple ट्यूपल
C
(C) String स्ट्रिंग
D
(D) int
95
What happens when this code is executed? जब यह कोड चलाया जाता है तो क्या होता है? f = open("data.txt", "r") f.write("Hello") f.close()
A
(A) Data is written successfully डेटा सफलतापूर्वक लिखा जाता है
B
(B) File content is overwritten फाइल का कंटेंट ओवरराइट हो जाता है
C
(C) Raises an exception एक एक्सेप्शन आता है
D
(D) Nothing happens कुछ नहीं होता है
96
Which scope is created by a function defined inside another function? किसी दूसरे फंक्शन के अंदर परिभाषित फंक्शन द्वारा कौन सा स्कोप बनता है?
A
(A) Local लोकल
B
(B) Global ग्लोबल
C
(C) Enclosing एनक्लोजिंग
D
(D) Built-in बिल्ट-इन
97
What is the result of print(10 // 3)? print(10 // 3) का परिणाम क्या होगा?
A
(A) 3.333
B
(B) 3
C
(C) 4
D
(D) 3.0
98
Which loop is preferred when the number of iterations is known? जब इटरेशन की संख्या पता हो तो कौन सा लूप बेहतर है?
A
(A) while
B
(B) do-while
C
(C) for
D
(D) if
99
A Python module is: पायथन मॉड्यूल ________ है:
A
(A) A function एक फंक्शन
B
(B) A package एक पैकेज
C
(C) A class एक क्लास
D
(D) A file containing Python code पायथन कोड वाली एक फाइल
100
What is the output of following? निम्न का आउटपुट क्या होगा? def test(): return print(test())
A
(A) 0
B
(B) Error एरर
C
(C) None
D
(D) Blank खाली
📋 Question Navigator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Answered
Not Answered
ℹ️ Quiz Info
Total Questions:
100
Time Limit:
120 min
Subject:
M3-R5.1
Passing:
40%
Instant Feedback:
ON
Attempt all questions before submitting. You can review your answers using the navigator above.
Answered:
0
/ 100
Submit Quiz