NIELIT O level - Programming and problem solving through python Mock Test

Exam Name
programming and problem solving through python
Student Name
Your Name
Remaining Time:
00:00:00
Question No: 1 Total Question : 100 Total Time : 90 Minutes
Report Bug


A. f.seek(-10, 0)

B. f.seek(10,0)

C. f.seek(-10, 1)

D. None of the above
     उपर्युक्त में से कोई नहीं


Report Bug


A. Any Random Number

B. 0

C. 1

D. Error


Report Bug


A. Iterating over a list.
     किसी लिस्ट को इटरेटिंग करना।

B. Iterating over a string.
     एक स्ट्रिंग पर इटरेटिंग.

C. Iterating over a dictionary.
     एक ड़िक्शनरी पर इटरेटिंग।

D. None of the above
     इनमे से कोई भी नहीं


Report Bug


A. Lists
     लिस्ट्स

B. Dictionary
     ड़िक्शनरी

C. Tuples
     टपल्स

D. Class
     क्लास


Report Bug


A. Input/Output, Decision, Repeat

B. Input, Output, Process

C. Loop, Input/Output, Process

D. Sequence, Selection, Repeat


Report Bug


A. True
     सही

B. False
     गलत

C. None
     कोई नहीं

D. Error
     एरर


Report Bug


A. f.read(5)

B. f.read()=5

C. f.readline(5)

D. f.readlines(5)


Report Bug


A. break

B. pass

C. continue

D. none of these
     इनमे से कोई नहीं


Report Bug


A. None

B. True

C. False

D. equal


Report Bug


A. True

B. False

C. Machine dependent

D. Error


Report Bug


A. keys, keys

B. key values, keys

C. keys, key values

D. key values, key values


Report Bug


A. del

B. remove

C. removeAll

D. None of these
     इनमें से कोई नहीं


Report Bug


A. Classes are real world entities.
     क्लॉसेस रियल वर्ल्ड इन्ट्टिीज हैं।

B. Objects are real world entities
     ऑब्जेक्ट रियल वर्ल्ड इन्ट्टिीज है।

C. Objects and classes are real world entities.
     ऑब्जेक्ट्स और क्लॉसेस रियल वर्ल्ड इन्ट्टिीज है ।

D. objects are real-world entities while classes are not real.
     ऑब्जेक्ट्स रियल वर्ल्ड इन्ट्टिीज हैं जबकि क्लॉसेस रियल वर्ल्ड इन्ट्टिीज नहीं हैं ।


Report Bug


A. __init__

B. in

C. it

D. on


Report Bug


A. 0.0

B. 0

C. 1.0

D. 1


Report Bug


A. Curly Braces
     कर्ली ब्रेसेस

B. Round Brackets
     राउंड ब्रेसेस

C. Indentation
     आइंडेंटेशन

D. Semicolon
     सेमीकोलन


Report Bug


A. pop
     पॉप

B. remove
     रिमूव

C. update
     अपडेट

D. sum
     सम


Report Bug


A. {1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’}

B. None
     कोई नहीं

C. Error
     एरर

D. [1,3,6,10]


Report Bug


A. Platform-independent
     platform-independent

B. Low Level Language

C. Python is open-source and free to use

D. Object Oriented Programming


Report Bug


A. pass

B. break

C. continue

D. goto


Report Bug


A. print('Hello Word')

B. print("Hello Word")

C. print(Hello Word)

D. Both A and B


Report Bug


A. ord()

B. min()

C. chr()

D. any()


Report Bug


A. Sub algorithm

B. Recursion

C. Polish notation

D. Traversal algorithm


Report Bug


A. Infinite Loop
     इन्फाईनाइट लूप

B. conditional loop
     कंडीशनल लूप

C. unlimited loop
     अनलिमीटेड लूप

D. None of these
     इनमें से कोई नहीं


Report Bug


A. less
     लेस

B. more
     मोर

C. End
     इंड

D. None of these
     इनमें से कोई नहीं


Report Bug


A. {1: ‘A’, 2: ‘B’, 3: ‘C’}

B. Method update() doesn’t exist for dictionaries
     मैथड अपडेट () ड़िक्शनरी के लिए मौजूद नहीं है

C. {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}

D. {4: ‘D’, 5: ‘E’}


Report Bug


A. To make a Matrix with all diagonal element 0

B. To make a Matrix with first row 0

C. To make a Matrix with all elements 0

D. None of the above


Report Bug


A. raise

B. goto

C. try

D. except


Report Bug


A. swapcase
     स्वैपकेस

B. uppertolower()
     अप्परटूलोअर()

C. lowertoUpper()
     लोअरटूअप्पर()

D. None of these
     इनमें से कोई नहीं


Report Bug


A. It’s easier to code some real-world problems using recursion than non-recursive equivalent
     नॉन-रिकर्सिव समकक्ष की तुलना में रिकर्शन का यूज़ करके कुछ रियल-वर्ल्ड की प्रॉब्लम्स को कोड करना आसान है

B. Recursive functions are easy to debug
     रिकर्सिव फ़ंक्शन को डीबग करना आसान है

C. Recursive calls take up a lot of memory
     रिकर्सिव कॉल बहुत सारी मेमोरी लेती हैं

D. Programs using recursion take longer time than their non-recursive equivalent
     रिकर्शन का यूज़ करने वाले प्रोग्राम अपने नॉन-रिकर्सिव समकक्ष की तुलना में अधिक समय लेते हैं


Report Bug


A. algorithm
     एल्गोरिथम

B. program
     प्रोग्राम

C. Graph
     ग्रॉफ

D. None of these
     इनमें से कोई नहीं


Report Bug


A. Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
     पायथन मॉड्यूल, फंक्शनो, क्लॉसो और मेथेडो के साथ डाक्यूमेन्टेशन को जोड़ने का एक सुविधाजनक तरीका प्रदान करता है।

B. All functions should have a docstring.
     सभी फंक्शनो में एक डॉकस्ट्रिंग होना चाहिए

C. Docstrings can be accessed by the ___doc_attribute on objects.
     Docstrings को ऑब्जेक्ट पर __doc__ ऐट्रीब्यूट द्वारा एक्सेस किया जा सकता है।

D. All of the mentioned.
     उल्लिखित सभी


Report Bug


A. Returns True if any key of the dictionary is true
     यदि डिक्शनरी की कोई भी key सही है, तो रिटर्न

B. Returns False if dictionary is empty
     यदि डिक्शनरी खाली है तो गलत है

C. Returns True if all keys of the dictionary are true
     यदि डिक्शनरी की सभी keys सही हैं, तो सही

D. Method any() doesn’t exist for dictionary
     मैथड किसी भी () शब्दकोश के लिए मौजूद नहीं है


Report Bug


A. sets the file's current position at the offset.
     फ़ाइल की वर्तमान स्थिति को ऑफ़सेट पर सेट करता है।

B. sets the file's previous position at the offset.
     फ़ाइल की पिछली स्थिति ऑफ़सेट पर सेट करता है।

C. sets the file's current position within the file.
     फ़ाइल के भीतर फ़ाइल की वर्तमान स्थिति सेट करता है।

D. None of the above
     इनमे से कोई भी नहीं


Report Bug


A. 6

B. 1

C. 0

D. 7


Report Bug


A. file name
     फाइल का नाम

B. file handle
     फाइल हैंडल

C. Mode of file
     फाइल का मोड

D. file handling
     फाइल हैंडलिंग


Report Bug


A. Compiler

B. Interpreters

C. Both Compiler and Interpreter
     Compiler और Interpreter दोनों

D. None of the above
     इनमे से कोई भी नहीं


Report Bug


A. Input/Output

B. Decision

C. Arithmetic instruction

D. Start/Stop


Report Bug


A. execute python

B. go python

C. python

D. run python


Report Bug


A. built-in functions
     बिल्ट-इन फंक्शन

B. User-defined functions
     यूजर - डिफाइन्ड फंक्शन

C. Both of the above
     उपरोक्त दोनो

D. None of these
     इनमें से कोई नहीं


Report Bug


A. [“Welcome”, “to”, “Python”]

B. (“Welcome”, “to”, “Python”)

C. {“Welcome”, “to”, “Python”}

D. “Welcome”, “to”, “Python”


Report Bug


A. yes
     हाँ

B. no
     नहीं

C. machine dependent
     मशीन डिपेंडेंट

D. none of the mentioned
     उल्लेखित कोई नहीं


Report Bug


A. write

B. writelineas
     writelines

C. dump

D. pickle


Report Bug


A. Dictionary
     शब्दकोश

B. String
     स्ट्रिंग

C. Tuple
     टपल

D. List
     लिस्ट


Report Bug


A. Operating System
     ऑपरेटिंग सिस्टम

B. Compiler
     कम्पाइलर

C. Interface
     इंटरफ़ेस

D. None of these
     इनमें से कोई नहीं


Report Bug


A. <!-- This is Comment -->

B. // This is Comment

C. /* This is Comment */

D. # This is Comment


Report Bug


A. 0 1 2

B. None None None
     कोई नहीं कोई नहीं

C. error
     एरर

D. none of the mentioned
     उल्लेखित कोई नहीं


Report Bug


A. Use multiple write() statements.

B. Use writelines() method.

C. Use writeLine() method.

D. Use append() method.


Report Bug


A. ab12ef12

B. abcdef12

C. ab12efcd

D. none of the mentioned
     उल्लेखित कोई नहीं


Report Bug


A. 1 2

B. 1 2 3

C. 1 2 3 4

D. 1 2 3 4 5


Report Bug


A. Warning

B. Error

C. Error

D. No Error


Report Bug


A. random.choice([3, 6])

B. random.randrange(3, 6)

C. 3 + random.randrange(3)

D. 3 + random.randrange(4)


Report Bug


A. Processor and memory
     प्रोसेसर और मेमोरी

B. Complexity and capacity
     जटिलता और क्षमता

C. Time and space
     टाइम और स्पेस

D. Data and space
     डेटा और स्पेस


Report Bug


A. 2

B. 0

C. error
     एरर

D. none of the mentioned
     उल्लेखित कोई नहीं


Report Bug


A. Guido van Rosum
     गुइडो वैन रोसुम

B. Travis Oliphant
     ट्रैविस ओलिफांट

C. Wes McKinney
     वेस मैककिनी

D. Jim Hugunin
     जिम हुगुनिन


Report Bug


A. Syntax error
     सिंटेक्स एरर

B. dict_items([(‘A’), (‘B’), (‘C’)])

C. dict_items([(1,2,3)])

D. dict_items([(1, ‘A’), (2, ‘B’), (3, ‘C’)])


Report Bug


A. True True

B. True False

C. False True

D. False False


Report Bug


A. Built in datatype

B. Derived datatype

C. Concrete datatype

D. Abstract datatype


Report Bug


A. ndarray
     एनडीऐरे

B. array
     ऐरे

C. alias
     एलियॉस

D. None of these
     इनमें से कोई नहीं


Report Bug


A. #

B. &

C. @

D. $


Report Bug


A. Interpreter
     इंटरप्रेटर

B. Compiler
     कम्पाइलर

C. Combination of Compiler and Interpreter
     कंपाइलर और इंटरप्रेटर का संयोजन

D. all of these
     ऊपर के सभी


Report Bug


A. round(45.8)

B. round(6352.898,2,5)

C. round()

D. round(7463.123,2,1)


Report Bug


A. A

B. B

C. a

D. Error
     एरर


Report Bug


A. The outer loop must run fewer times than the inner loop.
     आउटर लूप को इनर लूप की तुलना में कम बार रन करना चाहिए।

B. Only for loops can be nested.
     केवल लूप के लिए नेस्ट किया जा सकता है।

C. Both for and while loops can be nested.
     for और while दोनों लूप को नेस्ट किया जा सकता है।

D. The inner loop runs only once for each iteration of the outer loop.
     इनर लूप आउटर लूप के प्रत्येक इट्रेशन के लिए केवल एक बार रन करता है।


Report Bug


A. python.help ()

B. help()

C. help.python()

D. None of the Above
     उपर्युक्त में से कोई नहीं


Report Bug


A. Error

B. Flexibility

C. Portability

D. Reliability


Report Bug


A. Removes an arbitrary element
     एक आर्बिट्रेरी एलिमेंट्स रिमूव करता है

B. Removes all the key-value pairs
     सभी की-वैल्यू पेयर्स रिमूव करता है

C. Removes the key-value pair for the key given as an argument
     आर्ग्यमन्ट के रूप में दी गई key के लिए की-वैल्यू पेयर्स को रिमूव करती है

D. Invalid method for dictionary
     ड़िक्शनरी के लिए इनवैलिड मैथड


Report Bug


A. 12.6

B. '12.6'

C. 12

D. Syntax Error


Report Bug


A. 0 1 2

B. 0 1 2 0 1 2 0 1 2 …

C. None None None
     कोई नहीं कोई नहीं

D. None of the mentioned
     उल्लेखित कोई नहीं


Report Bug


A. Error, copy() method doesn’t exist for dictionaries
     एरर, डिक्शनरीज़ के लिए कॉपी () मैथड मौजूद नहीं है

B. {1: ‘A’, 2: ‘B’, 3: ‘C’}

C. {1: ‘A’, 2: ‘D’, 3: ‘C’}

D. “None” is printed
     &quot;कोई नहीं&quot; प्रिंट है


Report Bug


A. Mathematical and logical operations on arrays.
     सरणियों पर गणितीय और तार्किक संचालन

B. Fourier transforms and routines for shape manipulation.
     आकार हेरफेर के लिए फूरियर रूपांतरण और दिनचर्या।

C. Operations related to linear algebra.
     रैखिक बीजगणित से संबंधित संचालन।

D. All of the above
     ऊपर के सभी


Report Bug


A. Numbers

B. String

C. List

D. Slice


Report Bug


A. The program prints two rows 3 4 5 1 followed by 33 6 1 2
     प्रोग्राम दो रो 3 4 5 1 को प्रिंट करता है और उसके बाद 33 6 1 2

B. The program prints on row 3 4 5 1 33 6 1 2
     प्रोग्राम रो 3 4 5 1 33 6 1 2 पर प्रिंट करता है

C. The program prints two rows 3 4 5 1 followed by 33 6 1 2
     प्रोग्राम दो रो 3 4 5 1 को प्रिंट करता है और उसके बाद 33 6 1 2

D. The program prints two rows 1 3 4 5 followed by 1 2 6 33
     प्रोग्राम दो रो 1 3 4 5 प्रिंट करता है और उसके बाद 1 2 6 33


Report Bug


A. Python first searches the built-in namespace, then the global namespace and finally the local namespace.
     पायथन पहले बिल्ट-इन नेमस्पेस, फिर ग्लोबल नेमस्पेस और अंत में लोकल नेमस्पेस की खोज करता है

B. Python first searches the built-in namespace, then the local namespace and finally the global namespace
     पायथन पहले बिल्ट-इन नेमस्पेस, फिर लोकल नेमस्पेस और अंत में ग्लोबल नेमस्पेस की खोज करता है

C. Python first searches the local namespace, then the global namespace and finally the built-in namespace
     पायथन पहले लोकल नेमस्पेस, फिर ग्लोबल नेमस्पेस और अंत में बिल्ट-इन नेमस्पेस की खोज करता है

D. Python first searches the global namespace, then the local namespace and finally the built-in namespace
     पायथन पहले ग्लोबल नेमस्पेस, फिर लोकल नेमस्पेस और अंत में बिल्ट-इन नेमस्पेस की खोज करता है


Report Bug


A. 65536

B. 33

C. 169

D. None of the above


Report Bug


A. the shape is the number of rows

B. the shape is the number of columns

C. the shape is the number of element in each dimension

D. Total number of elements in array


Report Bug


A. 4

B. 0

C. 1

D. 8


Report Bug


A. [‘Apple’, ‘Ball’, ‘Cobra’]

B. [‘Ball’, ‘Apple’, ‘Cobra’]

C. [‘Cobra’, ‘Apple’, ‘Ball’]

D. Invalid syntax for sort()
     सॉर्ट() के लिए इनवैलिड सिंटैक्स


Report Bug


A. 2 3 4 5 6 1

B. 6 1 2 3 4 5

C. 2 3 4 5 6 6

D. 1 1 2 3 4 5


Report Bug


A. if a> = 2:

B. if (a>= 2)

C. if (a => 22)

D. if a >= 22


Report Bug


A. Provides a means of reuse of program code
     प्रोग्राम कोड के पुनः उपयोग का एक साधन प्रदान करता है

B. Provides a means of dividing up tasks
     कार्यों को विभाजित करने का एक साधन प्रदान करता है

C. Provides a means of reducing the size of the program
     प्रोग्राम के आकार को काम करने का एक साधन प्रदान करता है

D. Provides a means of testing individual parts of the program
     प्रोग्राम के अलग-अलग हिस्सों के परीक्षण का एक साधन प्रदान करता है


Report Bug


A. built-in functions

B. user-defined functions

C. py function

D. None of the above
     इनमें से कोई नहीं


Report Bug


A. Interactive Mode

B. Script Mode

C. Both Interactive Mode or Script Mode

D. None of These


Report Bug


A. 0

B. 1

C. error
     एरर

D. none of the mentioned
     उल्लेखित कोई नहीं


Report Bug


A. enumerate()
     इनूमरेट()

B. all()
     ऑल()

C. chr()

D. max()
     मैक्स()


Report Bug


A. August
     अगस्त

B. Aug

C. 08

D. 8


Report Bug


A. We can replace a recursive function by a non-recursive function.
     हम एक रिकर्सिव फंक्शन को एक नॉन-रिकर्सिव फंक्शन द्वारा प्रतिस्थापित कर सकते हैं।

B. The memory space taken by the recursive functions is more than that of non-recursive function,
     रिकर्सिव फंक्शनो द्वारा लिया गया मेमोरी स्पेस नॉन-रिकर्सिव फंक्शन की तुलना में अधिक है।

C. Running a recursive function is faster as compared to a non-recursive function.
     नॉन-रिकर्सिव फंक्शन की तुलना में रिकर्सिव फंक्शन को रन करना तेज़ होता है।

D. The process of recursion makes it easier for users to understand a program.
     रिकर्सन की प्रक्रिया उपयोगकर्ताओं के लिए प्रोग्राम को समझना आसान बनाती है


Report Bug


A. User Defined Function

B. Library Functions

C. Builtin Functions

D. All of the above


Report Bug


A. {1:’A’, 2: ‘B’,3: ‘C’}

B. {1: ‘A’, 2: ‘b’, 3: ‘c’, 4: ‘D’, 5: ‘E’}

C. Error

D. {4: ‘D’, 5: ‘E’}


Report Bug


A. Error, tuple slicing doesn’t exist
     एरर,टप्पल स्लाइसिंग मौजूद नहीं है

B. [2,3]

C. (2,3,4)

D. (2,3)


Report Bug


A. [1 3 5]

B. [1 3]

C. [1,3]

D. [1,2,3,4,5]


Report Bug


A. anywhere in between the file
     फ़ाइल के बीच में कही भी

B. End
     अंत

C. beginning
     आरम्भ में

D. second line of the file
     फ़ाइल की दूसरी पंक्ति


Report Bug


A. sys.version

B. sys.version()

C. sys.version(0)

D. sys.version(1)


Report Bug


A. O(n)

B. O(log n)

C. O(n2)

D. O(n log n)


Report Bug


A. Module
     मॉड्यूल

B. Function
     फंक्शन

C. Folder
     फोल्डर

D. None of these
     इनमें से कोई नहीं


Report Bug


A. An algorithm

B. A decision table

C. A program

D. None of the above
     इनमे से कोई भी नहीं


Report Bug


A. from numpy import *

B. import numpy

C. import numpy as my_numpy

D. All of above


Report Bug


A. _py_

B. var

C. _var

D. try


Report Bug


A. James Gosling
     जेम्स गोसलिंग

B. Guido van Rossum
     गुइडो वैन रोसुम

C. Dennis Ritchie
     डेनिस रिची

D. Bjarne Stroustrup
     बज़्ने स्ट्रॉस्ट्रुप


Report Bug


A. Error
     एरर

B. The local variable is shadowed
     लोकल वैरिएबल छाया हुआ है

C. Undefined behavior
     अनडिफाइन बिहेवियर

D. The global variable is shadowed
     ग्लोबल वैरिएबल छाया हुआ है




Attempted 0
Not Attempted 100
Current 1
Choose Question
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad