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. within the file, it tells the end position.
     फाइल के भीतर, यह अंतिम स्थिति बताता है।

B. within the file, it tells the current position.
     फाइल के भीतर, यह वर्तमान स्थिति बताता है ।

C. it tells us if the file is opened.
     यह हमें बताता है कि फाइल खोली गई है या नहीं ।

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


Report Bug


A. To create an infinite loop.
     एक इन्फनिट लूप क्रिएट करने के लिए.

B. To check additional conditions when the first if condition is False.
     एडिशनल कंडीशनल्स को चेक करने के लिए जब फर्स्ट कंडीशन गलत हो।

C. To end the if block.
     if ब्लॉक को ख़त्म करने के लिए.

D. To execute code unconditionally.
     कोड को अनकंडिशनली एक्सक्यूट करना।


Report Bug


A. True

B. False

C. Machine dependent

D. Error


Report Bug


A. a b c d e f

B. abcdef

C. i i i i i i …

D. error


Report Bug


A. Sub algorithm

B. Recursion

C. Polish notation

D. Traversal algorithm


Report Bug


A. Flowchart

B. Identifier

C. Code

D. Debugging


Report Bug


A. (5,1,6,2)

B. (5,1,7,6)

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

D. Error


Report Bug


A. 4.5

B. 5

C. 4

D. 4.6


Report Bug


A. A stage of all projects

B. Finding broken code

C. Evaluating deliverable to find errors

D. None of the above


Report Bug


A. mutability

B. static typing

C. dynamic typing

D. immutability


Report Bug


A. list1.shuffle()

B. shuffle(list1)

C. random.shuffle(list1)

D. random.shuffleList(list1)


Report Bug


A. 1

B. 3

C. 2

D. 4


Report Bug


A. 0

B. 4

C. 1

D. 2


Report Bug


A. input(“Enter a string”)
     इनपुट(“Enter a string”)

B. eval(input(“Enter a string”))
     eval (इनपुट(“Enter a string”))

C. enter(“Enter a string”)
     एंटर(“Enter a string”)

D. eval(enter(“Enter a string”))
     eval(एंटर(“Enter a string”))


Report Bug


A. Return
     रिटर्न

B. pass
     पास

C. for
     फॉर

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


Report Bug


A. Passing –O when running python

B. Assertions are disabled by default

C. Both A and B are wrong

D. Assertions cannot be disabled in python


Report Bug


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

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

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

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


Report Bug


A. True
     सही

B. False
     ग़लत

C. 55

D. TypeError
     टाइपएरर


Report Bug


A. Identifiers

B. Functions

C. keywords

D. Literals


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. [4,6]

B. [1, 2, 3, 4]

C. 10

D. Error in Code


Report Bug


A. \\n

B. \n

C. New line

D. Error
     एरर


Report Bug


A. [ 2 4 3 5]

B. [ 6 20]

C. [ 6 12 10 20]

D. 26


Report Bug


A. np.array()

B. np.zeros()

C. np.empty()

D. All of the above


Report Bug


A. indexing
     इन्डेक्सिंग

B. Replication
     रेप्लिकेशन

C. concatenation
     कॉन्केटनेशन

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


Report Bug


A. ascii()

B. getAscii()

C. get_ascii()

D. ord()


Report Bug


A. space()

B. strip()

C. remove()

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


Report Bug


A. Machine language

B. Assembly language

C. High-level language

D. None of the above


Report Bug


A. and

B. or

C. not

D. All of the these
     ये सभी


Report Bug


A. Looping

B. Selective

C. Sequence

D. None


Report Bug


A. 1abc

B. $12a

C. _xy 1

D. @python


Report Bug


A. pop
     पॉप

B. remove
     रिमूव

C. update
     अपडेट

D. sum
     सम


Report Bug


A. import random
     इम्पोर्ट रैंडम

B. random.h
     रैंडम.h

C. import.random
     इम्पोर्ट.रैंडम

D. random.random
     रैंडम.रैंडम


Report Bug


A. list1.addEnd (5)

B. list1.addLast (5)

C. list1.append (5)

D. list1.add(5)


Report Bug


A. 1

B. 3

C. 9

D. 4


Report Bug


A. 40

B. 45

C. “john”

D. “peter”


Report Bug


A. i i i i i i

B. a a a a a a

C. a a a a a

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


Report Bug


A. stack
     स्टैक

B. macro
     मैक्रो

C. micro
     माइक्रो

D. union
     यूनियन


Report Bug


A. \n

B. \t

C. \\

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


Report Bug


A. 4.5

B. 4.6

C. 4.57

D. 4.56


Report Bug


A. True
     सही

B. False
     गलत

C. None
     कोई नहीं

D. Error
     एरर


Report Bug


A. Compiler
     कम्पाइलर

B. Debugger
     डीबगर

C. Editor
     एडिटर

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


Report Bug


A. range(0,3,1)

B. range(1,4,1)

C. range(1,3)

D. range(1,3,0)


Report Bug


A. csv.reader(file)

B. csv.read(file)

C. csv.readcsv(file)

D. csv.readcsvdata(file)


Report Bug


A. Subroutines

B. Function

C. Definition

D. Parameters


Report Bug


A. print(arr[1])

B. print(arr,0)

C. print(arr,1)

D. None of These


Report Bug


A. (2,3)

B. (3,2)

C. (1,1)

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


Report Bug


A. [1 5 2]

B. [1 5 4]

C. [2 3 4]

D. [2 5 4]


Report Bug


A. Object-oriented programming
     ऑब्जेक्ट ओरियन्टेड प्रोग्रामिंग

B. Structured programming
     स्ट्रक्चर्ड प्रोग्रामिंग

C. Functional programming
     फंक्शनल प्रोग्रामिंग

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


Report Bug


A. It returns None.
     यह कोई नहीं रिटर्न करता है।

B. It raises an IndexError
     यह एक IndexError उत्पन्न करता है

C. It creates a new element at that index.
     यह उस इंडेक्स पर एक नया एलिमेंट्स क्रिएट करता है।

D. It returns an empty list.
     यह एक एम्प्टी लिस्ट रिटर्न करता है।


Report Bug


A. .python

B. .py

C. .p

D. .pyt


Report Bug


A. Hello

B. 949227

C. True

D. "2'


Report Bug


A. lowercase
     लोअरकेस

B. UPPERCASE
     अपरकेस

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

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


Report Bug


A. Closed loop

B. one time loop

C. Infinite loop

D. Evergreen loop


Report Bug


A. abc

B. 5

C. {"abc":5}

D. error


Report Bug


A. reverse(l)

B. list(reverse[(l)])

C. reversed(l)

D. list(reversed(l))


Report Bug


A. L1[-2]

B. L1[-1]

C. L1[2]

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


Report Bug


A. It is used for object deserialization.
     इसका उपयोग ऑब्जेक्ट डिसीरियलाइज़ेशन के लिए किया जाता है।

B. It is used for object serialization.
     इसका उपयोग ऑब्जेक्ट सीरियलाइज़ेशन के लिए किया जाता है।

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

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


Report Bug


A. print s[0]

B. print s.lower()

C. s[1]='r'

D. print s.strip()


Report Bug


A. True

B. False

C. None

D. Error


Report Bug


A. 6

B. 1

C. 2

D. Error
     एरर


Report Bug


A. 1

B. 9

C. 15

D. Error
     एरर


Report Bug


A. Strings can be modified using indexing.
     इंडेक्सिंग का यूज़ करके स्ट्रिंग्स को मॉडिफाइड किया जा सकता है।

B. Strings are immutable.
     स्ट्रिंग्स इम्म्यूटेबल हैं.

C. Strings can only contain alphabetic characters.
     स्ट्रिंग्स में केवल अल्फ़ाबेट कैरेक्टर्स हो सकते हैं।

D. Strings must end with a newline character.
     स्ट्रिंग्स को एक न्यूलाइन कैरेक्टर के साथ एन्ड होना चाहिए।


Report Bug


A. Error

B. 6

C. 4

D. 3


Report Bug


A. 2

B. 0

C. 1

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


Report Bug


A. arrow
     एरो

B. circle
     सर्किल

C. box
     बॉक्स

D. parallelogram
     समान्तरचतुचतुर्भुज


Report Bug


A. (3,)

B. (4,)

C. 1

D. 3


Report Bug


A. Free and open source

B. freeware

C. open source

D. shareware


Report Bug


A. Str

B. int

C. convert
     कन्वर्ट

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


Report Bug


A. in

B. is

C. id

D. ==


Report Bug


A. <class 'float’>

B. <class 'int'>

C. <class 'string'>

D. <class 'number'>


Report Bug


A. 65536

B. 33

C. 169

D. None of the above


Report Bug


A. 5

B. 4

C. None
     कोई नहीं

D. Error
     एरर


Report Bug


A. Pointers
     पॉइंटर

B. Loops
     लूप्स

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

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


Report Bug


A. dictionary()

B. set()

C. tuple()

D. list()


Report Bug


A. Displays a message to the user.
     यूजर को एक मैसेज डिस्प्ले करता है.

B. Receives input from the user as an integer.
     यूजर से इन्टिजर के रूप में इनपुट रिसीव करता है।

C. Receives input from the user as a string.
     यूजर से एक स्ट्रिंग के रूप में इनपुट रिसीव करता है।

D. Both A and C
     ए और सी दोनों.


Report Bug


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

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

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

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


Report Bug


A. 16

B. 4

C. 8

D. 64


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. ID returns the identity of the object
     आईडी ऑब्जेक्ट की पहचान रिटर्न करता है।

B. Even object doesn't have a unique Id
     प्रत्येक ऑब्जेक्ट की यूनिक आईडी नही होती है

C. All of the mentioned
     उपरोक्त सभी

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


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. True
     सही

B. False
     गलत

C. None

D. Error
     एरर


Report Bug


A. r

B. rb

C. w

D. r+


Report Bug


A. 5

B. 23

C. 18

D. Invalid syntax for sum method, too many arguments
     सम मैथड के लिए इनवैलिड सिंटैक्स, बहुत सारे आर्ग्यमन्ट


Report Bug


A. put to gether the file and functions that are required by the program
     प्रोगाम द्वारा आवश्यक फाइल और फक्शन को एक साथ रखे।

B. translate the instructions in to a form suitable for execution by the program
     प्रोगाम द्वारा एक्जिक्यूसन के लिए उपयुक्त फॉर्म में निर्देशों का अनुवाद करें

C. load the executable code in to the memory and execute them
     एक्जिक्यूटेबल कोड को मेमोरी में लोड करें और उन्हें एक्जिक्यूट करें

D. allow the user to type the program
     यूजर को प्रोग्राम टाइप करने की अनुमति देता


Report Bug


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

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

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

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


Report Bug


A. write
     लिखना

B. output
     आउटपुट

C. send
     भेजना

D. dump
     डम्ब


Report Bug


A. 0 2 1 3 2 4

B. 0 1 2 3 4 5

C. Infinite loop

D. 0 1 2 3


Report Bug


A. ;

B. : :

C. :

D. %


Report Bug


A. Built in

B. List

C. Tuple

D. Derived data


Report Bug


A. pop
     पॉप

B. remove
     रिमूव

C. dispose
     डिस्पोज

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


Report Bug


A. email

B. ca$h

C. marks10

D. Python2Shar


Report Bug


A. 5

B. 10

C. 50

D. Error
     एरर


Report Bug


A. Ray temilson
     रे टेमिलसन

B. Guido van Rossum
     गाइडो वॉन रोसम

C. Tim Berner
     टिम बर्नर

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


Report Bug


A. %

B. /

C. //

D. ||


Report Bug


A. nested if

B. if..else

C. else if

D. if..elif


Report Bug


A. Method displays the directory of a process.
     मेथड एक प्रक्रिया की डॉयरेक्ट्री को प्रदर्शित करता है।

B. Method displays the current working directory of a process.
     मेथड किसी प्रक्रिया की वर्तमान वर्किंग डॉयरेक्ट्री को प्रदर्शित करती है।

C. Method create file of a process.
     मेथड एक प्रक्रिया की फ़ाइल बनाता है।

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


Report Bug


A. 3

B. 5

C. 25

D. 1


Report Bug


A. Only the first condition is checked.
     केवल फर्स्ट कंडीशन को चेक किया जाता है.

B. All conditions are checked, even if one is True.
     सभी कंडीशंस को चेक किया जाता है,यदि कोई सत्य हो।

C. It behaves the same as if-elif.
     यह if-elif जैसा ही बिहेव करता है।

D. It raises an error.
     यह एक एरर उत्पन्न करता है.


Report Bug


A. Statements

B. Control

C. Structure

D. Indentation




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