Skip to content
Menu
O Level Mock Test
O Level Mock Test

Pythonfinal

/100
50

Python Final

1 / 100

In which format python file considered?

पायथन फ़ाइल को किस प्रारूप में माना जाता है?

2 / 100

A_ statement is used when statement is required syntactically but you do not want any code to execute.

A_ स्टेटमेंट का उपयोग तब किया जाता है जब स्टेटमेंट को सिंटैक्टिक रूप से आवश्यक होता है लेकिन आप नहीं चाहते कि कोई कोड निष्पादित हो।

3 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

example='Nielit O Level exam'

print (example.count('e'))

4 / 100

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

import numpy as np

a=np.array ([1,2,3])

print(a.ndim)

5 / 100

An algorithm is best describe as__.

एक एल्गोरिदम का सबसे अच्छा वर्णन इस प्रकार किया जाता है__।

6 / 100

Which of the following statements is correct regarding the object-oriented programming concept in Python?

पायथन में ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग अवधारणा के संबंध में निम्नलिखित में से कौन सा कथन सही है?

7 / 100

What is the value of x when x=math.factorial(0)

x का मान क्या है जब x=math.factorial(0)

8 / 100

Which one of the following is immutable data type?

निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?

9 / 100

What is a variable defined outside a function referred to as ?

किसी फ़ंक्शन के बाहर परिभाषित वेरिएबल को क्या कहा जाता है?

10 / 100

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

d={3,4,5}

for k in d:

print(k)

11 / 100

Which of the following symbols is used to represent output in a flow chart?

फ्लो चार्ट में आउटपुट को दर्शाने के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है?

12 / 100

Kite/diamond symbol in flow chart is used for__

फ्लो चार्ट में पतंग/हीरा प्रतीक का प्रयोग किसके लिए किया जाता है?

13 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>print (r"\nNielit")

14 / 100

Which function is used to add an element(5) in the list?

सूची में तत्व(5) जोड़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

15 / 100

In which software development phase quality of software is documented?

किस सॉफ्टवेयर विकास चरण में सॉफ्टवेयर की गुणवत्ता का दस्तावेजीकरण किया जाता है?

16 / 100

Python language written in __.

पायथन भाषा __ में लिखी गई है।

17 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  display(b, n) :

while n>0 :

print (b, end="")

n=n-1

display ( 'z' , 3)

18 / 100

Which of the following is not a control structure?

निम्नलिखित में से कौन सी नियंत्रण संरचना नहीं है?

19 / 100

Recursive function is____

पुनरावर्ती फ़ंक्शन ____ है

20 / 100

What does readlines() method return?

रीडलाइन्स() विधि क्या लौटाती है?

21 / 100

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>~100

22 / 100

What does 3^4 evaluate to?

3^4 का मूल्यांकन किससे होता है?

23 / 100

Which of the following error is returned when we try to open a file in write mode which does not exist?

जब हम किसी फ़ाइल को राइट मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है?

24 / 100

Which of the following is correct in file handling?

फ़ाइल प्रबंधन में निम्नलिखित में से कौन सा सही है?

25 / 100

Which of the following function will not result in an error when no arguments are passed to it?

निम्नलिखित में से किस फ़ंक्शन में कोई तर्क पारित नहीं होने पर त्रुटि नहीं होगी?

26 / 100

Which of the following ist't true about dictionary keys?

शब्दकोश कुंजियों के बारे में निम्नलिखित में से कौन सा सत्य नहीं है?

27 / 100

What is the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या है?

def  s(n1):

print(n1)

n1=n1+2

n2=4

s(n2)

print(n2)

28 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

x='abcd'

for i in x:

print(i.upper())

29 / 100

Which statement will return one line from file(file object is 'f')?

कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट 'एफ' है)?

30 / 100

Which function returns a random number between the given range?

कौन सा फ़ंक्शन दी गई सीमा के बीच एक यादृच्छिक संख्या लौटाता है?

31 / 100

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

print(type(5/2))

print(type(5//2))

32 / 100

Which of the following is a valid arithmetic operator in Python?

निम्नलिखित में से कौन सा पायथन में एक वैध अंकगणितीय ऑपरेटर है?

33 / 100

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

list1=[2,33,222,14,25]

print(list1[-1])

34 / 100

What is the output of the following expression?

निम्नलिखित अभिव्यक्ति का आउटपुट क्या है?

>>100/25

35 / 100

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

m=0

while m<5: print(m) m+=1 if m==3: break else : print(0)

36 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

str1 = "Nielit"

str2 = ":"

str3 = "OLEVEL"

print(str1[-1:]+str2+str3)

37 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

example="helle"

example.rfind("e")

38 / 100

What is the datatype of int(1)?

Int(1) का डेटाटाइप क्या है?

 

39 / 100

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

import numpy as np

arr=np.array([1,2,3])

print(arr.shape)

40 / 100

Python 3.0 version how many keywords?

Python 3.0 संस्करण में कितने कीवर्ड हैं?

41 / 100

What is the default mode when you open a python file?

जब आप पायथन फ़ाइल खोलते हैं तो डिफ़ॉल्ट मोड क्या होता है?

42 / 100

The contents inside the "for loop" are separated by:

"फॉर लूप" के अंदर की सामग्री को इसके द्वारा अलग किया गया है:

43 / 100

A flowchart that outlines the main segments of a program.

एक फ़्लोचार्ट जो किसी प्रोग्राम के मुख्य खंडों को रेखांकित करता है।

44 / 100

Which symbol is used as a flowline to connect two blocks in a flow chart?

फ्लो चार्ट में दो ब्लॉकों को जोड़ने के लिए फ्लोलाइन के रूप में किस प्रतीक का उपयोग किया जाता है?

45 / 100

Which is bitwise xor operator?

बिटवाइज एक्सओआर ऑपरेटर कौन सा है?

46 / 100

Which Translator is used to convert assembly language into machine language?

असेंबली भाषा को मशीनी भाषा में बदलने के लिए किस अनुवादक का उपयोग किया जाता है?

47 / 100

What is the type of inf?

इन्फ़ कितने प्रकार का होता है?

48 / 100

What is the result of round(0.5) - round(-0.5)?

राउंड(0.5) - राउंड(-0.5) का परिणाम क्या है?

49 / 100

Choose the correct option with respect to Python?

पायथन के संबंध में सही विकल्प चुनें?

50 / 100

What is the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या है?

print([i.lower ( ) for i in "HELLO"])

51 / 100

Which mode will write data to a file even if the file does not exist?

फ़ाइल मौजूद न होने पर भी कौन सा मोड फ़ाइल में डेटा लिखेगा?

52 / 100

Evaluate the expression given below if

यदि नीचे दिए गए अभिव्यक्ति का मूल्यांकन करें

A=16 , B=15

>>A%B//A

53 / 100

Which of these about a set is not true?

सेट के बारे में इनमें से कौन सा सत्य नहीं है?

54 / 100

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

a=(0,2,3,4)

print(a[1:-2])

55 / 100

What is the range of values that random.random() can return?

मानों की वह सीमा क्या है जो रैंडम.रैंडम() वापस कर सकता है?

56 / 100

In which of the following data is stored permanently?

निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहीत किया जाता है?

57 / 100

What will following code segment print?

निम्नलिखित कोड खंड क्या प्रिंट करेगा?

if True or True :

if False and True or False :

print( 'A' )

elif False and False or True and True:

print( 'B' )

else :

print( 'C' )

else :

print( 'D' )

58 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

from math import *

print(floor(11.7))

59 / 100

What is the output of the following Python expression?

निम्नलिखित पायथन अभिव्यक्ति का आउटपुट क्या है?

>>5+8*((3*5)-9)/10

60 / 100

What will be the output of the following pseudo code, where & represent AND operation?

निम्नलिखित छद्म कोड का आउटपुट क्या होगा, जहां & प्रतिनिधित्व AND ऑपरेशन होगा?

Integer a,b,c

Set b=5, a=1

c=a & b

Print c

61 / 100

The following functions are used to access data randomly?

डेटा को रैंडमली एक्सेस करने के लिए निम्नलिखित फ़ंक्शंस का उपयोग किया जाता है?

62 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

a = 5

b = 1

print(a, b)

a, b = b, a

print(a, b)

63 / 100

What will be the output of the following Python Expression?

निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा?

>>(5*2-4*8)%7

64 / 100

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import math

print  (math.remainder(9, 2))

print  (math.remainder(9, 3))

print  (math.remainder(18, 4))

65 / 100

Which of the following is correct about python language?

पायथन भाषा के बारे में निम्नलिखित में से कौन सा सही है?

66 / 100

What does ~~~~~~~~~5 evaluate to?

~~~~~~~~~5 का मूल्यांकन किससे होता है?

67 / 100

__ function returns the current position of a file pointer.

__ फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति लौटाता है।

68 / 100

Which of the following is not an advantage of using modules?

निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है?

69 / 100

Which of the following is used to define  block of code in Python language?

पायथन भाषा में कोड के ब्लॉक को परिभाषित करने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?

70 / 100

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

x=123

for i in x:

print(i)

71 / 100

What will be the output of the following algorithm for a=5, b=8, c=6?

a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिदम का आउटपुट क्या होगा?

Step 1: Start

Step 2: Declare variables a,b and c

Step 3: Read variables a,b and c

Step 4: If a

72 / 100

Which is not a built in function?

कौन सा बिल्ट इन फंक्शन नहीं है?

73 / 100

To include the use of functions which are present in the random library, we must use the option:

यादृच्छिक लाइब्रेरी में मौजूद फ़ंक्शंस के उपयोग को शामिल करने के लिए, हमें विकल्प का उपयोग करना चाहिए:

74 / 100

To use a module in another module, you must import it using an__ statement.

किसी मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको इसे an__ स्टेटमेंट का उपयोग करके आयात करना होगा।

75 / 100

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

>>print(5&3)

76 / 100

What is the full form of CSV file?

CSV फ़ाइल का पूर्ण रूप क्या है?

77 / 100

What is the output of the following ?

निम्नलिखित का आउटपुट क्या है?

n=5

while n>0:

n-=1

if  n==2:

continue

print (n)

78 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

nums = set([1,1,2,3,3,3,4,4])

print(len(nums))

79 / 100

What is the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या है?

list1=[1,2]+[3,4]

print(list1)

80 / 100

Operators with the same precedence are evaluated in which manner?

समान प्राथमिकता वाले ऑपरेटरों का मूल्यांकन किस तरीके से किया जाता है?

81 / 100

What the does random.seed(3) return?

रैंडम.सीड(3) क्या लौटाता है?

 

82 / 100

What will be the output for the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import numpy as np

ary=np.array([1,2,3,5,8])

ary=ary+1

print(ary[1])

83 / 100

When we open file in append mode the file pointer is at the __ of the file.

जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के __ पर होता है।

 

84 / 100

What will be the outside of the following?

निम्नलिखित में से बाहर क्या होगा?

Y=[2,5J , 6]

Y.sort ( )

85 / 100

Which of the following is incorrect?

निम्नलिखित में से कौन सा गलत है?

86 / 100

What is the value of the following python code?

निम्नलिखित पायथन कोड का मूल्य क्या है?

>>>print(35/4)

87 / 100

Which of the following is not the correct syntax for creating a set?

सेट बनाने के लिए निम्नलिखित में से कौन सा सही सिंटैक्स नहीं है?

88 / 100

Which of the following is the correct way to check if a value exists in a list?

किसी सूची में कोई मान मौजूद है या नहीं इसकी जाँच करने का निम्नलिखित में से कौन सा सही तरीका है?

89 / 100

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

import  numpy  as  nd

x=nd.array([2,3,4,10,12,14,18])

print(x[:3])

90 / 100

What is the output of print (0.1 +0.2 ==0.3)

प्रिंट का आउटपुट क्या है (0.1 +0.2 ==0.3)

91 / 100

Which of the following is used to find the maximum element in numpy array?

सुन्न सरणी में अधिकतम तत्व खोजने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?

92 / 100

Structured program can be broken into__ to assign to more than one developer.

एक से अधिक डेवलपर को असाइन करने के लिए संरचित प्रोग्राम को __ में तोड़ा जा सकता है।

93 / 100

Which of these in not a core data type?

इनमें से कौन सा कोर डेटा प्रकार नहीं है?

94 / 100

What will be the output of the following?

निम्नलिखित का आउटपुट क्या होगा?

print(sum(1,2,3))

95 / 100

Hierarchy in a pseudo-code can be see by:

छद्म कोड में पदानुक्रम को इसके द्वारा देखा जा सकता है:

96 / 100

Which of the following is incorrect?

निम्नलिखित में से कौन सा गलत है?

97 / 100

What arithmetic operators cannot be used with strings?

कौन से अंकगणितीय ऑपरेटरों का उपयोग स्ट्रिंग्स के साथ नहीं किया जा सकता है?

98 / 100

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

a={1:5, 2:3, 3:4}

a.pop(3)

print(a)

99 / 100

In which format Binary file contain information?

बाइनरी फ़ाइल में किस प्रारूप में जानकारी होती है?

100 / 100

Which of the following is not a keyword in Python?

निम्नलिखित में से कौन सा पायथन में एक कीवर्ड नहीं है?

Your score is

LinkedIn Facebook Twitter VKontakte
0%

Categories

  • Business
  • Education
  • Life Fun
  • Technology

Follow Us

Follow us on Facebook Subscribe us on Youtube Follow us on Instagram Contact us on WhatsApp

Recent Posts

  • CCC-8
  • Here are 10 points that you can follow to protect your job from being taken over by AI:
  • What is the Future of Ai
  • Latest or Future Education Trends
  • Best career options in 2023

Categories

  • Business
  • Education
  • Life Fun
  • Technology

Archives

  • November 2024
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • June 2022
©2025 O Level Mock Test | Powered by WordPress and Superb Themes!