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. (5,1,6,2)

B. (5,1,7,6)

C. (5,1,7,6,2)

D. Error


Report Bug


A. List

B. Dictionary

C. String

D. Tuple


Report Bug


A. bikes[:-1]

B. bilkes[1]

C. bikes (:-1)

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


Report Bug


A. August
     अगस्त

B. Aug

C. 08

D. 8


Report Bug


A. strptime()

B. strftime()

C. Both A and B

D. None of the above


Report Bug


A. Angular brackets
     एंगुलर ब्रैकेट

B. parentheses
     ब्रैकेट

C. curly brackets
     कर्ली ब्रैकेट

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


Report Bug


A. arr[-2]

B. arr[2]

C. arr[-1]

D. arr[1]


Report Bug


A. objects
     ऑब्जेक्ट्स

B. style
     स्टाइल

C. memory
     मेमोरी

D. None
     कोई नहीं


Report Bug


A. .py

B. .python

C. .pt

D. .pyt


Report Bug


A. a b c d

B. 0 1 2 3

C. error
     एरर

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


Report Bug


A. /

B. //

C. %

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


Report Bug


A. (‘cd’)

B. (”)

C. (‘cd’, ”, ”)

D. (”, ‘cd’, ”)


Report Bug


A. A

B. B

C. a

D. Error
     एरर


Report Bug


A. s.__len__()

B. len(s)

C. size(s)

D. s.size()


Report Bug


A. 40

B. 45

C. “john”

D. “peter”


Report Bug


A. switch

B. foreach

C. Nested Loop

D. None
     कोई नहीं


Report Bug


A. Free and Open Source

B. Freeware

C. Open source

D. Shareware


Report Bug


A. .python

B. .py

C. .p

D. .pyt


Report Bug


A. 0 1 2

B. {0, 1, 2} {0, 1, 2} {0, 1, 2}

C. error
     एरर

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


Report Bug


A. shape, dtype, ndim

B. objects, type, list

C. objects, non vectorization

D. Unicode and shape


Report Bug


A. 10

B. 20

C. Error

D. None


Report Bug


A. dlroWolleH

B. Hello Worl

C. d

D. Error


Report Bug


A. Error

B. None

C. abcd

D. [‘a’,’b’,’c’,’d’]


Report Bug


A. file_object=open(file_name,mode)

B. open(file_object,file_name,mode)

C. file_open(file_object,file_name,mode)

D. file_object=file_open(file_name,mode)


Report Bug


A. list1 = list()

B. list1 = []

C. list1 = list([1, 2, 3])

D. all of the mentioned
     सभी का उल्लेख है


Report Bug


A. [x<0 in l]

B. [x for x<0 in l]

C. [x in l for x<0]

D. [x for x in l if x<0]


Report Bug


A. Entry Controlled Loop
     इंट्री कंट्रोल्ड लूप

B. Exit Controlled Loop
     एक्जिट कंट्रोल्ड लूप

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

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


Report Bug


A. True
     सही

B. False
     गलत

C. Error
     एरर

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


Report Bug


A. Graphical
     चित्रात्मक

B. Cross-plateform
     क्रॉस-प्लेटफॉर्म

C. Plateform Dependent
     प्लेटफॉर्म पर निर्भर

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


Report Bug


A. \n

B. \t

C. \\

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


Report Bug


A. 3

B. 2

C. 1

D. Error


Report Bug


A. [1,2,3]

B. [3,2,1]

C. [2,1,3]

D. [3,1,2]


Report Bug


A. iteration

B. selection

C. sequence

D. reverse action


Report Bug


A. Since “susan” is not a value in the set, Python raises a KeyError exception
     चूँकि "सुसान" सेट में कोई वैल्यू नहीं है,Python एक की एरर एक्सेप्शन्स को उठाता है

B. It is executed fine and no exception is raised, and it returns None
     इसे एक्सक्यूट किया जाता है और कोई एक्सेप्शन्स नहीं उठाया जाता है, और यह कोई भी नहीं रिटर्न करता है

C. Since “susan” is not a key in the set, Python raises a KeyError exception
     चूँकि "सुसान" सेट में कोई की नहीं है,Python एक की एरर एक्सेप्शन्स को उठाता है

D. Since “susan” is not a key in the set, Python raises a syntax error
     चूंकि "सुसान" सेट में एक की नहीं है,Python एक सिंटेक्स एरर उठाता है


Report Bug


A. val()

B. print()

C. print In()

D. const()


Report Bug


A. Micro

B. Union

C. Macro

D. Stack


Report Bug


A. empty_tuple = ()

B. empty_tuple = tuple()

C. empty_tuple = []

D. Both A and B
     ए और बी दोनों


Report Bug


A. 1

B. 2

C. 4

D. Error, the keys can’t be a mixture of letters and numbers
     एरर,keys लेटर्स और नंबर्स का मिक्चर नहीं हो सकता


Report Bug


A. 1abc

B. $12a

C. _xy 1

D. @python


Report Bug


A. [1, 2, 3]

B. (1, 2, 3)

C. {1, 2, 3}

D. {}


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. close.fp

B. fp.close()

C. file.exit()

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


Report Bug


A. To make a Matrix with all element 0
     सभी एलिमेंट के साथ एक मैट्रिक्स 0 बनने के लिए

B. To make a Matrix with all diagonal element 0
     सभी डायगोनल एलिमेंट के साथ एक मैट्रिक्स 0 बनने के लिए

C. To make a Matrix with first row 0
     पहली पंक्ति के साथ एक मैट्रिक्स 0 बनने के लिए

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


Report Bug


A. Input/Output, Decision, Repeat

B. Input, Output, Process

C. Loop, Input/Output, Process

D. Sequence, Selection, Repeat


Report Bug


A. Wed

B. Wednesday
     वेडन्सडे

C. 2

D. 3


Report Bug


A. if (x > 0):

B. if x > 0

C. if x > 0 then:

D. Both A and B
     ए और बी दोनों


Report Bug


A. 1

B. 2

C. 4

D. 5


Report Bug


A. 11

B. 9

C. 5

D. 4


Report Bug


A. Yes

B. No

C. if / else not used in python

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


Report Bug


A. m, y, , n, a, m, e, , i, s, , x,

B. m, y, , n, a, m, e, , i, s, , x

C. my, name, is, x,

D. error


Report Bug


A. Local, Enclosing, Graphical, Built-in

B. Local, External, Global, Binary

C. List, Entry, Global, Block

D. Local, Enclosing, Global, Built-in


Report Bug


A. tell()
     टेल()

B. write()
     राइट()

C. Writelines()
     राइटलाइन्स()

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


Report Bug


A. pop
     पॉप

B. remove
     रिमूव

C. dispose
     डिस्पोज

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


Report Bug


A. [0]

B. [1]

C. [1, 0]

D. [0, 1]


Report Bug


A. [3, 4, 5, 20, 5, 25, 1, 3]

B. [1, 3, 3, 4, 5, 5, 20, 25]

C. [3, 5, 20, 5, 25, 1, 3]

D. [1, 3, 4, 5, 20, 5, 25]


Report Bug


A. 3

B. 4

C. 4 is maximum

D. None of these


Report Bug


A. .py

B. .python

C. .p

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


Report Bug


A. Logical errors

B. Syntax errors

C. Both Logical and Syntax errors
     Logical और Syntax errors दोनों

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


Report Bug


A. ab1ef2

B. abcefd

C. ab1efd

D. ab12ed2


Report Bug


A. ,worl

B. worl

C. world

D. oworld


Report Bug


A. Compiler
     कंपाइलर

B. Assembler
     असेंबलर

C. Translator
     ट्रांसलेटर

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


Report Bug


A. f.readlines()

B. f.readline()

C. f.read()

D. f.line()


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. ['', 'b', 'bb', 'bbb']

B. ['b,'bb', "bbb', "bbbb']

C. ['b','bb', bbb']

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


Report Bug


A. no output
     नो आउटपुट

B. i i i i i i …

C. a b c d e f

D. abcdef


Report Bug


A. 4

B. 3

C. 5

D. 7


Report Bug


A. Method returns true if all characters in the string are alphanumeric numbers(either alphabets numbers). If not,it returns false
     यदि स्ट्रिंग में सभी कैरेक्टर अल्फान्यूमेरिक संख्याएँ (या तो अक्षर या संख्याएँ) हैं, तो मेथड ट्रू रिटर्न करता है। यदि नहीं, तो यह फॉल्स रिर्न करता टहै।

B. Method returns False if all characters in the string are alphanumeric numbers(either alphabets numbers). If not,it returns True
     यदि स्ट्रिंग में सभी कैरेक्टर अल्फान्यूमेरिक संख्याएँ (या तो अक्षर या संख्याएँ) हैं, तो मेथड फॉल्स रिटर्न करता है। यदि नहीं, तो यह ट्रू रिटर्न करता है।

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

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


Report Bug


A. Error
     एरर

B. 2017-06-18

C. 18-06-2017

D. 06-18-2017


Report Bug


A. Decomposing complex problems into simpler pieces
     कॉम्प्लेक्स समस्याओं को सरल टुकडों मे विभाजित करना ।

B. Reducing duplication of code
     कोड का दोहराव कम करना

C. both A and B
     तथा B दोनों

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


Report Bug


A. Every recursive function must have a base case
     प्रत्येक रिकर्सिव फंक्शन का एक बेस केस अवश्य होना चाहिए

B. Infinite recursion can occur if the base case isn't properly mentioned
     यदि बेस केस का उल्लेख उपयुक्त रूप में न किया गया हो तो इन्फाइनाईट रिकर्शन हो सकता है

C. A recursive function makes the code easier to understand
     एक रिकर्सिव फंक्शन कोड को समझने में आसान बनाता है

D. Every recursive function must have a return value
     प्रत्येक रिकर्सिव फंक्शन की एक रिटर्न वैल्यू अवश्य होनी चाहिए


Report Bug


A. 5

B. 6

C. 7

D. 0


Report Bug


A. Pointers
     पॉइंटर

B. Loops
     लूप्स

C. Dynamic Typing
     डॉयनामिक टाइपिंग

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


Report Bug


A. abef

B. 12

C. error
     एरर

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


Report Bug


A. Runtime error
     रनटाइम एरर

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

C. logical error
     लॉजिकल एरर

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


Report Bug


A. True True
     सही सही

B. False True
     गलत सही

C. False False
     गलत गलत

D. True False
     सही गलत


Report Bug


A. get()

B. seek()

C. tell()

D. cur()


Report Bug


A. arr1 + arr2

B. add(arr1, arr2)

C. arr1.add(arr2)

D. elementwise_add(arr1, arr2)


Report Bug


A. To execute when the loop is terminated using break.
     ब्रेक का यूज़ करके लूप टर्मिनेट होने पर एक्सक्यूट करना।

B. To execute after the loop completes without encountering a break.
     लूप कम्पलीट होने के बाद बिना किसी रुकावट के एक्सक्यूट करना।

C. To restart the loop.
     लूप को रीस्टार्ट करने के लिए

D. To execute before the loop starts
     लूप रीस्टार्ट होने से पहले एक्सक्यूट करना


Report Bug


A. xyyxyyxyxyxxy

B. 12y12y1212x12

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

D. error
     एरर


Report Bug


A. 2

B. 3

C. The number are equal

D. None of These


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. File Found Error

B. File Not Exist Error

C. File Not Found Error

D. None of these


Report Bug


A. Indexing
     इंडेक्सिंग

B. Slicing
     स्लाइसिंग

C. Reshaping
     रिशेपिंग

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


Report Bug


A. 0

B. None
     कोई नहीं

C. 3

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


Report Bug


A. set

B. tuple

C. string

D. None of These


Report Bug


A. [4,6]

B. [1, 2, 3, 4]

C. 10

D. Error in Code


Report Bug


A. range()

B. space()

C. arange()

D. linspace()


Report Bug


A. rank
     रैंक

B. dtype
     डीटाइप

C. shape
     शेप

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


Report Bug


A. 9

B. 4

C. 9.0

D. 4.0


Report Bug


A. _py_

B. var

C. _var

D. try


Report Bug


A. PYTHONPATH

B. PYTHONSTARTUP

C. PYTHONCASEOK

D. PYTHONHOME


Report Bug


A. capitalize()

B. title()

C. upper()

D. swapcase()


Report Bug


A. 1

B. ValueError

C. 0

D. NaN


Report Bug


A. numpy.array(list)

B. numpy.array(list, dtype=float)

C. Both a and b

D. None of the above


Report Bug


A. pickle

B. binary

C. unpickle

D. fstream


Report Bug


A. 1

B. 1 3 5 7 …

C. 1 2 3 4 …

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


Report Bug


A. (‘ab’, ‘ef’)

B. (‘abef’)

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

D. 2


Report Bug


A. del

B. remove

C. delete

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


Report Bug


A. The variables used inside function are called local variables.
     फंक्शन के अंदर उपयोग किए जाने वाले वेरिएबल लोकल वेरिएबल कहलाते हैं।

B. The local variables of a particular function can be used inside other functions, but these cannot be used in global space.
     किसी विशेष फंक्शन के लोकल वेरिएबल का उपयोग अन्य फंक्शनो के अंदर किया जा सकता है, लेकिन इनका उपयोग ग्लोबल स्पेस में नहीं किया जा सकता है

C. The variables used outside function are called global variables.
     बाहरी फंक्शन का उपयोग करने वाले वेरिएबल को ग्लोबल वेरिएबल कहा जाता है

D. In order to change the value of global variable inside function, keyword global is used.
     फंक्शन के अंदर ग्लोबल वेरिएबल की वैल्यू को बदलने के लिए, कीवर्ड ग्लोबल का उपयोग किया जाता है।


Report Bug


A. axes

B. degree

C. cordinate

D. points




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