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. It is mandatory to have_main_function in python.
     पायथन में _main_function होना अनिवार्य है ।

B. It is not mandatory to have _main_function in python.
     पायथन में _main_function होना अनिवार्य नही है ।

C. It is mandatory to have any function in python.
     पायथन में कोई फंक्शन होना अनिवार्य है ।

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


Report Bug


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

B. [2,3]

C. (2,3,4)

D. (2,3)


Report Bug


A. d.size()
     d.साइज़()

B. len(d)
     लेन (d)

C. size(d)
     साइज़(d)

D. d.len()
     d.लेन()


Report Bug


A. /

B. //

C. %

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


Report Bug


A. *

B. **

C. <

D. ==


Report Bug


A. find()

B. copy()

C. upper()

D. capitalize()


Report Bug


A. ELGB ( enclosed, local,global, built-in).

B. LEGB (local, enclosed,global, built-in ).

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

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


Report Bug


A. print(arr[3:])

B. print(arr[3])

C. print(arr[:3])

D. print(arr[4:])


Report Bug


A. 9

B. 10

C. 11

D. 12


Report Bug


A. Both tuples and lists are immutable
     टुपल्स और लिस्टस दोनों अपरिवर्तनीय है

B. Tuples are immutable while lists are mutable
     टुपल्स अपरिवर्तनीय है जबकि लिस्ट्स परिवर्तनशील है

C. Both tuples and lists are mutable
     टुपल्स और लिस्ट्स दोनों परिवर्तनशील है

D. Tuples are mutable while lists are immutable
     टुपल्स परिवर्तनशील होते है जबकि लिस्ट्स अपरिवर्तनीय होती है


Report Bug


A. colon

B. statements indented at a lower, same level

C. indentation in any form

D. { }


Report Bug


A. 120

B. 25

C. 1,2,3,4,5

D. Error


Report Bug


A. [4,6]

B. [1, 2, 3, 4]

C. 10

D. Error in Code


Report Bug


A. re

B. regex

C. pyregex

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


Report Bug


A. Tells you the current position within the file.

B. Tells the size of file you read

C. Tells the start position of the file.

D. Tells the end position of the file.


Report Bug


A. 18-06-2017

B. 06-18-2017

C. 2017-06-18

D. Error
     एरर


Report Bug


A. startswith()

B. startswith_prefix()

C. startswithwith()

D. startswiths()


Report Bug


A. last index
     लास्ट इंडेक्स

B. first index
     फर्स्ट इंडेक्स

C. middle index
     मीडिल इंडेक्स

D. end index
     इंड इंडेक्स


Report Bug


A. 6

B. 1

C. 2

D. Error
     एरर


Report Bug


A. end
     अंतिम में

B. beginning
     शुरूआत में

C. anywhere in between the file
     फाइल में कहीं भी

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


Report Bug


A. copy = list(original)

B. copy = original[:]

C. copy = original.copy()

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


Report Bug


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

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

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

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


Report Bug


A. 0.0 1.0

B. 0 1

C. error
     एरर

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


Report Bug


A. Recursive function can be replaced by a non-recursive function
     रिकर्सिव फ़ंक्शन को नॉन-रिकर्सिव फ़ंक्शन द्वारा रेप्लस किया जा सकता है

B. Recursive functions usually take more memory space than non-recursive function
     रिकर्सिव फ़ंक्शन आमतौर पर नॉन-रिकर्सिव फ़ंक्शन की तुलना में अधिक मेमोरी स्पेस लेते हैं

C. Recursive functions run faster than non-recursive function
     रिकर्सिव फ़ंक्शन नॉन-रिकर्सिव फ़ंक्शन की तुलना में तेज़ी से चलते हैं

D. Recursion makes programs easier to understand
     रिकर्सियन प्रोग्राम्स को समझने में आसान बनाता है


Report Bug


A. 4

B. 8

C. 16

D. 32


Report Bug


A. 10

B. 9

C. 7

D. 6


Report Bug


A. Hello

B. 949227

C. True

D. "2'


Report Bug


A. unlimited length

B. all private members must have leading and trailing underscores

C. Preferred Installer Program

D. None of the above


Report Bug


A. <<

B. **

C. |

D. %


Report Bug


A. selection

B. repetition

C. sequence

D. flow


Report Bug


A. Arrow lines

B. Symbols

C. Annotation

D. Special symbols


Report Bug


A. a

B. abcd abcd abcd

C. a a a a

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


Report Bug


A. str()

B. int()

C. String()

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


Report Bug


A. Sub algorithm

B. Recursion

C. Polish notation

D. Traversal algorithm


Report Bug


A. keys()

B. getkeys()

C. allkeys()

D. keyvalues()


Report Bug


A. eval
     एवल

B. nonlocal
     नॉनलोकल

C. assert
     अस्सेर्ट

D. finally
     फाइनली


Report Bug


A. .

B. *

C. ->

D. &


Report Bug


A. Removes all spaces from the string.
     स्ट्रिंग से सभी स्पेसेस को रिमूव कर देती है.

B. Removes the first and last character of the string.
     स्ट्रिंग का फर्स्ट और लास्ट कैरेक्टर को रिमूव कर देता है।

C. Removes whitespace from the beginning and end of the string.
     स्ट्रिंग के बिगनिंग और एन्ड से वाइटस्पेस को रिमूव करता है।

D. Converts the string into a list of characters.
     स्ट्रिंग को कैरेक्टर्स की लिस्ट में कन्वर्ट करता है।


Report Bug


A. delete all the trailing characters
     सभी ट्रेलिंग कैरेक्टर्स को डिलीट करने

B. delete all the leading characters
     सभी लिडिंग कैरेक्टर्स को डिलीट करने

C. delete all the leading and trailing characters
     सभी लिडिंग और ट्रेलिंग कैरेक्टर्स को डिलीट करने

D. delete upper case characters
     अपरकेस कैरेक्टर्स को डिलीट करने के लिए


Report Bug


A. round(45.8)

B. round(6352.898,2,5)

C. round()

D. round(7463.123,2,1)


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. Boxes
     बॉक्स

B. Circles
     सर्किल

C. Arrows
     एरो

D. All of the above
     उपर्युक्त सभी


Report Bug


A. [4,5, 6

B. [7]

C. [1, 2,3, 4]

D. 7


Report Bug


A. 2

B. 3

C. The number are equal

D. None of These


Report Bug


A. "12345"

B. "@#$%"

C. "Rajesh"

D. All of These


Report Bug


A. 11

B. 8

C. 1

D. 0


Report Bug


A. Error
     एरर

B. Either 3 or 4

C. Any integer other than 3 and 4
     3 और 4 के अलावा कोई भी इन्टिजर

D. Any decimal value between 3 and 4
     3 और 4 के बीच कोई भी डेसिमल वैल्यू


Report Bug


A. writelines()
     राइटलाइन्स()

B. write()
     राइट()

C. tell()
     टेल()

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


Report Bug


A. write

B. writelineas
     writelines

C. dump

D. pickle


Report Bug


A. 1

B. 1 3 5 7 …

C. 1 2 3 4 …

D. Nothing will be printed
     कुछ भी प्रिंट नहीं होगा


Report Bug


A. lowercase
     लोअरकेस

B. UPPERCASE
     अपरकेस

C. Capitalized
     कैपिटलाईज्ड

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


Report Bug


A. 6

B. 1

C. 1.5

D. Error


Report Bug


A. error

B. 6

C. 1

D. 3


Report Bug


A. a is the smallest number

B. b is the smallest number

C. c is the smallest number
     cis the smallest number

D. stop


Report Bug


A. False
     गलत

B. True
     सही

C. Syntax error for issuperset() method
     Issuperset () विधि के लिए सिंटैक्स एरर

D. Error, no method called issuperset() exists
     एरर, कोई मैथड जिसे ssuperset कहा जाता है () मौजूद है


Report Bug


A. count()

B. strip()

C. upper()

D. उपरोक्त सभी
     All of the above


Report Bug


A. Control flow
     कण्ट्रोल फ्लो

B. Terminal
     टर्मिनल

C. Processing
     प्रोसेसिंग

D. Decision
     डिसिशन


Report Bug


A. Quick response code
     क्विक रिस्पांस कोड

B. Same format in which the data is held in memory
     उसी प्रारूप में जिसमे डेट को मेमोरी में रखा जाता है

C. ASCII format
     एएससीआईआई प्रारूप

D. Unicode format
     यूनिकोड फॉर्मेट


Report Bug


A. A collection of ordered and mutable data
     ऑर्डर्ड और म्युटेबल डेटा का कलेक्शन

B. A collection of unordered and mutable data with key-value pairs
     की-वैल्यू पेयर्स के साथ अनऑर्डर्ड और म्युटेबल डेटा का कलेक्शन

C. A collection of immutable key-value pairs
     म्म्यूटेबल की-वैल्यू पेयर्स का कलेक्शन

D. A collection of values only
     केवल वैल्यूज का कलेक्शन


Report Bug


A. if a> = 2:

B. if (a>= 2)

C. if (a => 22)

D. if a >= 22


Report Bug


A. [[1, 2], [3, 1.5], [0.5, 0.5]]

B. [[3, 1.5], [1, 2], [0.5, 0.5]]

C. [[0.5, 0.5], [1, 2], [3, 1.5]]

D. [[0.5, 0.5], [3, 1.5], [1, 2]]


Report Bug


A. strptime()

B. strftime()

C. Both A and B

D. None of the above


Report Bug


A. Flowchart
     फ़्लोचार्ट

B. Psuedocode
     स्यूडोकोड

C. Algorithm
     एल्गोरिथम

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


Report Bug


A. Machine language

B. Assembly language

C. High-level language

D. None of the above


Report Bug


A. Yes, list mutable and tuple immutable

B. No, list and tuple both are mutable

C. No, list and tuple both are in immutable

D. No, just opposite, list immutable and tuple mutable


Report Bug


A. Decimal

B. Octal

C. Hexadecimal

D. Roman


Report Bug


A. One Time

B. Two Time

C. Any Number of Time

D. we can not change the value of variable


Report Bug


A. Brackets

B. Indentation

C. Key

D. None of the above


Report Bug


A. 4

B. 5

C. 6

D. 7


Report Bug


A. xyzp = 5,000,000

B. xyzp = 5000 6000 7000 8000

C. x, y, z,p = 5000, 6000, 7000, 8000

D. x_y_z_p = 5,000,000


Report Bug


A. {‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}

B. {‘m’, ‘l’, ‘p’, ‘c’}

C. {‘d’, ‘c’, ‘m’, ‘a’}

D. None of These


Report Bug


A. (‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)

B. (‘ab’, ‘cd’, ‘efcdgh’)

C. (‘abcdef’, ‘cd’, ‘gh’)

D. error
     एरर


Report Bug


A. iteration

B. selection

C. sequence

D. reverse action


Report Bug


A. [‘ab’, ‘ef’, ‘gh’]

B. [‘ab’, ‘ef’, ‘gh’, ”]

C. (‘ab’, ‘ef’, ‘gh’)

D. (‘ab’, ‘ef’, ‘gh’, ”)


Report Bug


A. 2

B. 0

C. 1

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


Report Bug


A. numpy.linspace()

B. numpy.range()

C. numpy.arrange()

D. numpy.spaceline()


Report Bug


A. True
     सही

B. 2

C. 3

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


Report Bug


A. 4.5

B. 4.6

C. 4.57

D. 4.56


Report Bug


A. what

B. y

C. a

D. Error


Report Bug


A. 30.0

B. 30.8

C. 28.4

D. 27.2


Report Bug


A. It skips the current iteration and goes to the next iteration.
     यह प्रेजेंट इट्रेशन को स्किप कर देता है और नेक्स्ट इट्रेशन पर चला जाता है।

B. It terminates the loop entirely
     यह लूप को पूरी तरह से टर्मिनेट कर देता है।

C. It does nothing.
     यह कुछ नहीं करता.

D. It restarts the loop.
     यह लूप को रीस्टार्ट करता है।


Report Bug


A. write
     लिखना

B. output
     आउटपुट

C. send
     भेजना

D. dump
     डम्ब


Report Bug


A. Testing

B. Indentation

C. Debugging

D. None of the above


Report Bug


A. full

B. empty

C. init

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


Report Bug


A. 4

B. 4.0

C. 2.5

D. None of These


Report Bug


A. Write

B. Read

C. Append

D. Read and Write Both


Report Bug


A. In Module
     मॉड्यूल

B. In Class
     क्लास

C. In Another function
     एक और फंक्शन

D. All of these
     उपर्युक्त सभीं


Report Bug


A. Text file
     टेक्स्ट फाइल

B. Binary file
     बाइनरी फाइल

C. Both (A) and (B)
     (A) और (A) दोनों

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


Report Bug


A. An exception is thrown
     एक एक्सेप्शन फेंक दिया जाता है

B. 3

C. 6

D. 2


Report Bug


A. Str

B. int

C. convert
     कन्वर्ट

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


Report Bug


A. np.array([4,5,6])

B. np.create_array([4,5,6])

C. np.createArray([4,5,6])

D. np.numpyArray([4,5,6])


Report Bug


A. raw_input

B. input()

C. eval

D. accep


Report Bug


A. 0

B. 4

C. 1

D. 2


Report Bug


A. readall()

B. read()

C. readcharacter()

D. readchar()


Report Bug


A. 123var

B. _var

C. if

D. var-name


Report Bug


A. a b c d e f

B. abcdef

C. i i i i i i …

D. error


Report Bug


A. Rectangle
     रैक्टेन्गिल

B. Terminal
     टर्मिनल

C. Diamond
     डॉयमंड

D. None of these


Report Bug


A. 3

B. 5

C. 6

D. 33


Report Bug


A. [2, 6, 4]

B. [1, 3, 2, 1, 3]

C. [1, 3, 2, 1, 3, 2]

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


Report Bug


A. [7, 19, 45, 89]

B. [2, 4, 22, 72]

C. [4, 7, 19, 2, 89, 45, 72, 22]

D. [24, 7, 19, 22, 45, 72, 89]




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