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. write(s)

B. writelines (lines)

C. readlines (lines)

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


Report Bug


A. from package import all

B. from package import *

C. from package include all

D. from package include*


Report Bug


A. Top-Down

B. Down-Top
     डाउन-टॉप

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

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


Report Bug


A. else

B. raise

C. import

D. All of the mentioned
     इनमे से सभी


Report Bug


A. what

B. y

C. a

D. Error


Report Bug


A. 4

B. 3.4

C. error
     एरर

D. 5


Report Bug


A. a a a a a a

B. a

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

D. error
     एरर


Report Bug


A. student

B. s12

C. 123

D. _123


Report Bug


A. [1 3 5]

B. [1 3]

C. [1,3]

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


Report Bug


A. break

B. pass

C. continue

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


Report Bug


A. 3

B. 5

C. 25

D. 1


Report Bug


A. #

B. &

C. @

D. $


Report Bug


A. exp(x)

B. eval(str)

C. str(x)

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


Report Bug


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

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

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

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


Report Bug


A. my_string_1

B. 1st_string

C. foo

D. _myvar


Report Bug


A. 0 1 2 3 4 Here

B. 0 1 2 3 4 5 Here

C. 0 1 2 3 4

D. 1 2 3 4 5


Report Bug


A. Effective Analysis
     प्रभावी विश्लेषण

B. Proper documentation
     उचित डॉक्युमेन्ट

C. Efficient Coding
     कुशल कोडिंग

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


Report Bug


A. 0

B. 4

C. 1

D. 2


Report Bug


A. pseudo codes
     pseudo कोड

B. syntax
     वाक्य - विन्यास

C. flowcharts
     फ़्लोचार्ट

D. programs
     प्रोग्राम्स


Report Bug


A. s[]

B. s.getitem(3)

C. s.__getitem__(3)

D. s.getItem(3)


Report Bug


A. Flowchart

B. Program

C. Pseudo Code

D. Syntax


Report Bug


A. \n

B. \t

C. \\

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


Report Bug


A. Source-code
     सोर्स कोड

B. bytecode
     बाईटकोड

C. human-readable code
     ह्यूमन - रीडेबिल कोड

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


Report Bug


A. 1995

B. 1972

C. 1981

D. 1991


Report Bug


A. [(1, 2), (2, 4), (3, 9)]

B. [(2,4),(1,2),(3,9)]

C. Error because tuples are immutable
     एरर क्योंकि tuples अपरिवर्तनीय हैं

D. Error, tuple has no sort attribute
     एरर , टपल का कोई प्रकार नहीं है


Report Bug


A. *

B. +

C. &

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


Report Bug


A. Oval or Pill Shape
     ओवल या पिल शेप

B. Rectangle
     आयत

C. Diamond
     डॉयमण्ड

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


Report Bug


A. open_file()

B. file_open()

C. open()

D. read_file()


Report Bug


A. Parentheses, Exponential,Multiplication, Division, Addition, Subtraction
     कोष्ठक, घातीय, गुणा, भाग, जोड़, घटाव

B. Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
     गुणा, भाग, जोड़, घटाव, कोष्ठक, घातीय

C. Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
     भाग, गुणा, जोड़, घटाव, कोष्ठक, घातीय

D. Exponential,Parentheses,Multiplication, Division, Addition, Subtraction
     घातीय, कोष्ठक, गुणा, भाग, जोड़, घटाव


Report Bug


A. It will raise an IndexError.
     यह एक IndexError बढ़ाएगा।

B. It will iterate once with a default value of None.
     यह कोई नहीं के डिफ़ॉल्ट वैल्यू के साथ एक बार ईट्रेट होगा।

C. It will not execute the loop body.
     यह लूप बॉडी एक्सक्यूट नहीं करेगा.

D. It will run indefinitely.
     यह अनिश्चित काल तक रन करेगा


Report Bug


A. 3 -3

B. 4 -4

C. 3 -4

D. 3 3


Report Bug


A. Compiler
     कम्पाइलर

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

C. Assembler
     असेम्बलर

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


Report Bug


A. 0

B. 1

C. -1

D. 2


Report Bug


A. selection

B. repetition

C. sequence

D. flow


Report Bug


A. Rectangle
     आयत

B. Oval
     अंडाकार

C. Parallelogram
     चतुर्भुज

D. Diamond
     डायमंड


Report Bug


A. f = open('data.txt'); f.read()

B. f = open('data.txt','r'); f.read(n)

C. myfile = open('data.txt'); f.readline()

D. f= open('data.txt'); f.readlines()


Report Bug


A. Str

B. int

C. convert
     कन्वर्ट

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


Report Bug


A. 14

B. 1

C. 3

D. 2


Report Bug


A. 1 2 3

B. ‘A’ ‘B’ ‘C’

C. 1 ‘A’ 2 ‘B’ 3 ‘C’

D. Error, it should be: for i in a.items():
     एरर , यह होनी चाहिए: i in a.items () में:


Report Bug


A. 27

B. 9

C. 3

D. 1


Report Bug


A. Zip()

B. tuple()

C. list()

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


Report Bug


A. write

B. output

C. send

D. dump


Report Bug


A. Rectangle

B. Parallelogram

C. Circle

D. Diamond


Report Bug


A. Low-level Language
     लो लेवल लैंग्वेज

B. High-level Language
     हाई लेवल लैंग्वेज

C. Middle-level Language
     मिडिल लेवल लैंग्वेज

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


Report Bug


A. ;

B. : :

C. :

D. %


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. {1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’}

B. None
     कोई नहीं

C. Error
     एरर

D. [1,3,6,10]


Report Bug


A. readlines()

B. read()

C. Both of the above

D. None of the above


Report Bug


A. print(arr[3:])

B. print(arr[3])

C. print(arr[:3])

D. print(arr[4:])


Report Bug


A. \\n

B. \n

C. New line

D. Error
     एरर


Report Bug


A. directs the order of execution of the statements in the program

B. dictates what happens before the program starts and after it terminates

C. defines program-specific data structures

D. manages the input and output of control characters


Report Bug


A. length

B. length()

C. len()

D. None
     कोई नहीं


Report Bug


A. matches a pattern at the start of the string.
     स्ट्रिंग की शुरुआत में एक पैटर्न से मेल खाता है

B. matches a pattern at any position in the string.
     स्ट्रिंग में किसी भी स्थिति में एक पैटर्न से मेल खाता है

C. such a function does not exist
     ऐसा कोई फंक्शन मौजूद नहीं है

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


Report Bug


A. 4

B. 8

C. 16

D. 32


Report Bug


A. 1

B. 5

C. 6

D. 4
     5


Report Bug


A. / /

B. >

C. and

D. ?


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. 3

D. 4


Report Bug


A. 2

B. 1

C. 0

D. none
     कोई नहीं


Report Bug


A. They cannot be edited
     वे बदले नही जा सकते है

B. They can be edited
     वे बदले जा सकते है

C. Both of the above

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


Report Bug


A. 3

B. 5

C. 6

D. 33


Report Bug


A. More than one key can have the same value
     एक से अधिक key की वैल्यू समान हो सकती है

B. The values of the dictionary can be accessed as dict[key]
     ड़िक्शनरी के वैल्यूज को एक्सेस्सड के रूप में देखा जा सकता है [key]

C. Values of a dictionary must be unique
     एक ड़िक्शनरी की वैल्यूज यूनिक होनी चाहिए

D. Values of a dictionary can be a mixture of letters and numbers
     एक ड़िक्शनरी की वैल्यूज लेटर्स और नंबर्स का मिक्चर हो सकता है


Report Bug


A. Checks if an element exists within a sequence.
     चेक करता है कि कोई एलिमेंट्स किसी सीक्वेंस में मौजूद है या नहीं।

B. Checks for inequality between two variables.
     दो वैरिएबल्स के बीच इनक्वॉलिटी को चेक करता है।

C. Checks if two variables refer to the same object.
     चेक करता है कि क्या दो वैरिएबल्स एक ही ऑब्जेक्ट् को रेफर करते हैं।

D. Checks the length of a sequence.
     किसी सीक्वेंस की लेंथ को चेक करता है


Report Bug


A. Class
     क्लास

B. List
     लिस्ट

C. Dictionary
     डिक्शनरी

D. Tuple
     ट्यूपल


Report Bug


A. for

B. While

C. do-while

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


Report Bug


A. 33

B. 45

C. 35

D. 30


Report Bug


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

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

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

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


Report Bug


A. swapcase
     स्वैपकेस

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

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

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


Report Bug


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

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

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

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

B. False
     ग़लत

C. 55

D. TypeError
     टाइपएरर


Report Bug


A. A built-in Python function
     एक अंतर्निहित पायथन फ़ंक्शन

B. A one-line anonymous function
     एक-पंक्ति वाला अनाम फ़ंक्शन

C. Lambda is a function in python but user can not use it.
     लैम्ब्डा पायथन में एक फंक्शन है लेकिन उपयोगकर्ता इसका उपयोग नहीं कर सकता।

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


Report Bug


A. Only One
     केवल एक

B. 1-10

C. Any number of Times
     किसी भी नंबर में टाइम्स

D. Any number of times but one inside another only.
     कितनी भी बार लेकिन एक के अंदर ही दूसरा।


Report Bug


A. switch

B. foreach

C. Nested Loop

D. None
     कोई नहीं


Report Bug


A. Flow Lines
     फ्लो लाइन्स

B. circle
     सर्किल

C. diamond
     डायमंड

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


Report Bug


A. read binary

B. write binary

C. append binary

D. read write


Report Bug


A. d.size()

B. len(d)

C. size(d)

D. d.len ()


Report Bug


A. Range
     रेंज

B. Input
     इनपुट

C. Open
     ओपेन

D. Pass
     पास


Report Bug


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

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

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

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


Report Bug


A. []

B. [10, 8, 6]

C. [2, 5, 8]

D. [8, 5, 2]


Report Bug


A. (a%b, a//b)

B. (a//b, a%b)

C. (a//b, a*b)

D. (a/b, a%b)


Report Bug


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

B. [2,3]

C. (2,3,4)

D. (2,3)


Report Bug


A. set

B. tuple

C. string

D. None of These


Report Bug


A. Integer

B. Float

C. String

D. All of These


Report Bug


A. 9

B. 10

C. 11

D. 12


Report Bug


A. 0,1,2,3

B. [0,1,2,3]

C. range(0, 4)

D. (0,1,2,3)


Report Bug


A. dropna()

B. Pandas
     पंडास

C. read_csv()

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


Report Bug


A. del dic("tiger")

B. dic["tiger"].delete()

C. delete(dic.["tiger'])

D. del dic["tiger"]


Report Bug


A. a b c d

B. 0 1 2 3

C. error
     एरर

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


Report Bug


A. int("123")

B. integer("123")

C. int["123“]

D. (int) “123”


Report Bug


A. 1

B. 3

C. 2

D. 4


Report Bug


A. PYTHONPATH

B. PYTHONSTARTUP

C. PYTHONCASEOK

D. PYTHONHOME


Report Bug


A. Keywords
     कीवर्ड

B. Identifiers
     आइंडेंटीफायर्स

C. Operators
     ऑपरेटर्स

D. Statements
     स्टेटमेंट्स


Report Bug


A. It creates a new Python list.
     यह एक नई पायथन सूची बनाता है।

B. It creates a NumPy array.
     यह एक NumPy ऐरे बनाता है।

C. It performs element-wise addition.
     यह तत्व-वार जोड़ करता है।

D. It calculates the mean of an array.
     यह किसी ऐरे के माध्य की गणना करता है।


Report Bug


A. min()

B. divmod()

C. all()

D. float()


Report Bug


A. []

B. ()

C. {}

D. None
     कोई नहीं


Report Bug


A. 'm+nl'

B. 'mn1'

C. 'm n1'

D. 'm'


Report Bug


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

B. [‘a b c d’]

C. [‘a#b#c#d’]

D. [‘abcd’]


Report Bug


A. mehethey

B. me he they

C. he they me

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


Report Bug


A. Docstring
     डॉकस्ट्रिंग

B. Python Package Index
     पायथन पैकेज इंडेक्स

C. both a & b
     a तथा b दोनों

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




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