O level m3 r5 question paper - O Level

O level m3 r5 question paper

O level m3 r5 question paper

Hello Students Welcome to our new post. In this post you will get the O level m3 r5 question paper . So must check the full post and also share.

1. The_________ provides pictorial representation of given problem._______दी गई समस्या का सचित्र रिप्रेजेन्टेशन करता है। 

A. Algorithm एल्गोरिदम

B. Flowchart

फ्लोचॉर्ट

C. Pseudocode शूडोकोड

डॉयमण्ड

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

2. is a procedure or step by step process for solving a problem.

किसी समस्या को हल करने के लिए एक स्टेप बाई स्टेप प्रक्रिया है।

(A) Algorithm

एल्गोरिदम

B. Flowchart फ्लोचॉर्ट

C. Pseudocode

शूडोकोड

D. All of these

3. The symbol is used at the beginning of a flow chart.

सिम्बल का उपयोग फ्लोचार्ट की शुरुआत में

किया जाता है।

A. Oval or Pill Shape

ओवल या पिल शेप

B. Rectangle

आयत

C. Diamond

D. None

4. What will be the datatype of the var in the below code snippet?

नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?

var = 10

print (type (var))

var = “Hello”

print (type (var) )

इनमें से सभी

A. str and int

B. int and int

C. int and str

D. str and str

5. What is the output of the following

code:

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

L=[‘a’,’b’,’c’,’d’]

print “”.join[]]

A. Error

B. None

C. abcd

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

6. np.eye is used for creating:

np.eye का उपयोग क्रियेट करने के लिए होता है:

A Identity Matrix

पहचान मैट्रिक्स

B. Upper triangle Matrix

ऊपरी त्रिकोण मैट्रिक्स

C. Lower Triangle Matrix निचली त्रिकोण मैट्रिक्स

D. None of the above

उपर्युक्त में से कोई नहीं

7. What will be the output of the following code snippet?

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

def solve(a, b):

        return b

if a==0 else solve(b % a, a)

print(solve (20, 50))

A.20

B.50

C.10

D. Error

8. What is the output of the following

program

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

i=0

while i< 3:

print(i)

i+=1

else:

print(i+1):

A. 0 1 2 3 0

B.. 0 1 2 4

C.0 1 2  0

D. None of above

इनमें से कोई नहीं

9. Debugging is used to:

डिबगिंग का उपयोग किया जाता है:

A. Find errors from the program

प्रोग्राम में से एरर का पता लगाने के लिए

B. Check the functionality of the program प्रोग्राम की कार्यक्षमता जाँच करने के लिए

C. Black box testing

ब्लैक बॉक्स टेस्टिंग

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

o level it tools mcq questions

10. The function reads a line entered on a console by an input device such as a keyboard and convert it into a string and returns it.

फंक्शन एक इनपुट डिवाइस जैसे कि एक कीबोर्ड द्वारा दर्ज की गई लाइन को रीड करता है और इसे एक स्ट्रिंग में परिवर्तित करता है और इसे

रिव् करता है।

A. raw_input

B.input()

c. eval

D. accep

11. In python, Valid identifier is__ पायथन में वैलिड आइडेंटिफायर है

A. 1abc

B. $12a

C.) _xy1

D. @python

12. What will be the output of the following Python code snippet of x=1?-

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

x<<2

A. 8

B.) 4

C..2

D. None

13. What will be the output of the following Python code?

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

i=0

while i < 3:

print(i)

i+= +1

else:

print(0)

A. 0 1 2 3 0

B. 0 1 2

C. 0 1 2 0

D. None of the above.

इनमें से कोई नहीं

14. What will be the output of the following Python code?

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

X=50

def func(x):

     print(‘x is’, x)

     x = 2

     print(‘Changed local x to’, x)

func(x)

print(‘x is now’, x)

A. x is now 100

B. x is now 20

C. x ins now 50

D. None

15. Which of the following is the datatype possible in python?

पायथन में निम्नलिखित में से कौन सा डेटाटाइप

संभव है?

A. int

B. list

C. dictionary

D. All of the above

उपर्युक्त सभी

16. Empty list in python is made by?

पायथन में एम्पटी लिस्ट किसके द्वारा बनाई जाती

है? A. l= []

B..l=list ()

C. Both of the above

उपरोक्त दोनों

D. None of these

इनमें से कोई नहीं

17. Which one is the type of algorithm: एल्गोरिदम का टाइप कौन सा है?

A. Flowchart

फ्लोचार्ट

B. Pseudo

शूडो

C. Greedy

ग्रिडी

D. Connector

कनेक्टर

18. How we can convert the Numpy array to the list in python ?

हम पायथन में Numpy ऐरे को सूची में कैसे बदल सकते हैं?

A. list(array)

B. list.array

C. array.list

D. None of these

इनमें से कोई नहीं

19. Which of the following keyword is used to access the numpy module in python? पायथन में संख्यात्मक मॉड्यूल का उपयोग करने के लिए निम्न में से किस कीवर्ड का उपयोग किया जाता है?

A. form फॉर्म

B.access एक्सेज

C. import इंपोर्ट

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

20. What is the use of the zeros function in Numpy array in python?

पायथन में Numpy ऐरे में शून्य ) फंक्शन का उपयोग क्या है?

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

B. To make a Matrix with all diagonal element

सभी डॉयगोनल एलीमेन्टो के साथ एक मैट्रिक्स बनाने के लिए

C. To make a Matrix with first Row 0

पहली से में 0 के साथ एक मैट्रिक्स बनाने के लिए

D. None of these

इनमें से कोई नहीं

21. What is the correct syntax of remove ( a file?

remove() फाइल का सही वर्तमान सिंटैक्स क्या है? A. remove ((), file_name))

B. remove (new_file_name,

current_file_name,)

C. remove (file_name)

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

22. See the following statement

निम्नलिखित स्टेटमेन्ट देखे।

Z={“x”:0,”y”:1}

Which of the following is the correct statement

निम्नलिखित में से कौन सा सही कथन है

A. dictionary z is created

B. x and y are the keys of dictionary z

C.0 and 1 are the values of dictionary z

D.All of the above

उपर्युक्त सभी

23. What will be the output of the following code?

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

print(print(print(“OLEVEL”)))

A. OLEVEL None None

B. None None OLEVEL

C. None OLEVEL None

D. OLEVEL

24. What will be the output of the following code?

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

x=[‘ab’, ‘cd’]

y=0

for i in x:

x[y]=i.upper()

y+=1

print(x)

A. [‘ab’,’cd’]

B. [‘AB’,’CD’]

C. [‘ab’, ‘cd’, ‘AB’, ‘CD’]

D. Error

 

25. Which of the following is the use of function

in python?

निम्नलिखित में से कौन पायथन में फंक्शन का उपयोग करता है?

import numpy as np

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

b= np.array([0,3,4,2,1]) 

c=a+b

c = c*a

print (c[2])

(A) 21

B) 22

C. 12

D. 0

O level web design mcq questions

26. What will be the output of the following code?

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

i=1

while 1:

if i%3==0:

         break

print(i)

i+=1

A. 123

B.1

C. 1 2

D. 0

27. Which of the following is not a valid namespace?

निम्नलिखित में से कौन एक वैध नेमस्पेस नहीं है।

A. Global namespace ग्लोबल नेमस्पेस

B.) Public namespace पब्लिक नेमस्पेस

C. Built-in namespace बिल्ट-इन नेमस्पेस

D. Local namespace लोकल नेमस्पेस

28. What will be the output of the following code?

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

x = 50

def fun1():

    X = 25

    print(x)

fun1()

print(x)

A. 25

   50

B. Name Error

C.50

   25

D. None of these –

29. What will be the output of the following

Python code-

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

a,b=5,2

print(a//b)

A. 2.5

B. 2.0

C. 2 (floor division)

D. Error

30. What will be the output of the following Python code

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

a=3

b=2

def change():

    global b

    a=4

    b=5

   return(a*b)

print(change()*a)

A. 20

B. 60

C. 80

D. None of these

इनमें से कोई नहीं

31. Which of the following is an invalid

statement?

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

A. abc = 1,000,000

B. a b c = 1000 2000 3000

C. a,b, c = 1000, 2000, 3000

D. a_b_c = 1,000,000

32. What you can use to convert from a string to a list of character.

 आप एक स्ट्रिंग से कैरेक्टर की लिस्ट में बदलने के लिए क्या उपयोग कर सकते हैं।

A list()

B. str()

C. chr()

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

33. What will be the output of the following Python code –

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

a = [1, 2]

print(a * 3)

A. Error

B. [1,2]

C [1,2,1,2]

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

34. Which keyword is used to remove items or the entire individual dictionary itself.

अलग-अलग आइटम या पूरी डिक्शनरी को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है।

A.del

B. remove

C. remove All

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

35. Which one of these is floor division ? इनमें से कौन सा फ्लोर डिवीजन है?

A. /

B. //

C.%

D. None of the mentioned

उल्लिखित कोई नहीं

36.creates an uninitialized array of specified shape and dtype.

…..निर्दिष्ट शेप और dtype का एक अनइनीशिलाइज्ड ऐरे बनाता है।

A full

 B) empty

C.init

D.

None of these

इनमें से कोई नहीं

37. To which of the following the “in” operator can be used to check if an item is in it?

निम्नलिखित में से किसके लिए “in” ऑपरेटर का उपयोग यह जांचने के लिए किया जा सकता है कि कोई आइटम उसमें है या नहीं?

A. Lists

B. Dictionary

C. Set

D.All of the mentioned उल्लिखित सभी

38. What will be the output of the following Python code?

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

names1 = [‘Amir’, ‘Bala’, ‘Chales’ ] 

if ‘amir’ in names1:

print(1)

else:

print(2)

A. 1

(B) 2

both of the above उपर्युक्त दोनों

D. None of these

इनमें से कोई नहीं

39. Which of the following is the correct output of this program?

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

d={0:’a’, 1:’b’,2:’c’}

for i in d:

print(i)

A. abc

B.  0 1 2

C. 0 a 1  2c

D. 1b 2c

40. Method is used to display entire contents of the file.

फाइल के संपूर्ण कंटेंट को प्रदर्शित करने के लिए मेथड का उपयोग किया जाता है।

A. readlines()

B. read()

C. Both a & b.

a और b दोनों

D. None of the above.

इनमें से कोई भी नही

41. Which statement is used to jumps back to the top of the loop for the next iteration. अगले इटरेशन के लिए लूप के शीर्ष पर वापस जाने के लिए किस स्टेटमेन्ट का उपयोग किया जाता है।

(A) continue कंटिन्यू

B. break-

C. pass-

D. None of these-

42. Which of the following function stacks 1D arrays as columns into a 2D array?

निम्न में से कौन सा फंक्शन 1 डी ऐरे को कॉलम के रूप में 2 डी ऐरे में जोड़ता है?

A. row_stack

B. com stack

C.column_stack

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

43. What will be the output of the following Python code?

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

list1 = [1, 2, 3, 4]

 list2= [5, 6, 7, 8]

 print(len(list1+list2))

A. 2

B. 4

C. 5

D. 8

44. What will be the output of the following

Python code?

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

def maximum(x, y):

      if x > y:

           return x

      elif   x==y:

           return ‘The numbers are equal

      else:

               return y

print (maximum (2, 3))

A.3

B. 4

C. 10

D. None

45. In order to store values in terms of key and value we use what core data type.

“की” और वैल्यू के संदर्भ में वैल्यू को संग्रहीत करने के लिए हम किस मुख्य डेटा प्रकार का उपयोग करते हैं।

A. list

B. tuple

C. class

D. dictionary

46. Which of the following expression is correct. निम्नलिखित में से कौन सा एक्सप्रेशन सही है।

A. 10-(5*5)=-15

B. -7*(10/2)=-35.0

C.21%4=1

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

47. What will be the output of the following Python code?

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

def increment_items (L, increment):

i = 0

while i < len(L):

L[i] = L[i] + increment i = i + 1

values = [1, 2, 3]

print(increment items (values, 2)) print(values)

A. None

[3,4,5]

B. None

[1,2,3]

C. [3.4.5] 

[1,2,3]

D.  [3,4,5]

None

 

48. Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is the correct syntax for slicing operation?

मान लीजिए लिस्ट 1 [4, 2, 2, 4, 5, 2, 1, 0] है, स्लाइसिंग ऑपरेशन के लिए निम्नलिखित में से कौन सा सिंटैक्स सही है?

A. print(list1[0])

B. print(list1[2])

C. print (list1[:-2])

D.) all of the mentioned उल्लिखित सभी

49. Select all options that print.

उन सभी विकल्पों का चयन करें जो प्रिन्ट करते है। hello-how-are-you

A. print(‘hello’, ‘how’, ‘are’, ‘you’)

B. print(‘hello’,’how’,’are’,’you’+”* 4)

C. print(‘hello – ‘ + ‘how-are-you’)

D. print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)

50. Is Python code compiled or interpreted? क्या पायथन कोड कम्पाइल या इन्टरप्रिट किया जाता

है?

A. Python code is both compiled and interpreted.

पायथन कोड कम्पाइल और इंटरप्रेट दोनों होता है।

B. Python code is neither compiled nor interpreted

पायथन कोड न तो कंपाइल है न ही इंटरप्रेट होता है।

C. Python code is only compiled

पायथन कोड केवल कंपाइल होता है।

D. Python code is only interpreted पायथन कोड केवल इंटरप्रेट होता है।

For Live Class Click on the below link

Live Class click here

Here we complete our PART-1 of O level m3 r5 question paper . You can check the next part in our website under o level menu.

Also Check

यूपी पुलिस कांस्टेबल भर्ती 2024 60244 पद

Leave a Comment