Pythonfinal /100 50 Python Final Enrollment No.Name 1 / 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]) 0 1 2 3 2 / 100 To use a module in another module, you must import it using an__ statement. किसी मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको इसे an__ स्टेटमेंट का उपयोग करके आयात करना होगा। import include Both (A) and (B) None of these 3 / 100 Hierarchy in a pseudo-code can be see by: छद्म कोड में पदानुक्रम को इसके द्वारा देखा जा सकता है: Curly Braces Round Brackets Indentation Semicolon 4 / 100 Recursive function is____ पुनरावर्ती फ़ंक्शन ____ है A funtion that calls itself A function that calls other function Both (A) and (B) None of the above 5 / 100 What is the output of the following code? निम्नलिखित कोड का परिणाम क्या है? x=123 for i in x: print(i) 1 2 3 123 Error None of these 6 / 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]) [10,3,4] [2,3,4] [2,3,[4]] None of these 7 / 100 What will be the output of the following code snippet? निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? d={3,4,5} for k in d: print(k) {3,4,5} {3,4,5} {3,4,5} 3 4 5 Syntax Error None of the above 8 / 100 Operators with the same precedence are evaluated in which manner? समान प्राथमिकता वाले ऑपरेटरों का मूल्यांकन किस तरीके से किया जाता है? Left to Right Right to Left Can't say None of the mentioned 9 / 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)) 1 0 2 1.0 0.0 2.0 1.0 2.0 1.0 None 10 / 100 Which of the following is used to find the maximum element in numpy array? सुन्न सरणी में अधिकतम तत्व खोजने के लिए निम्नलिखित में से किसका उपयोग किया जाता है? maximums() max() fmax() all() 11 / 100 Which of the following is a valid arithmetic operator in Python? निम्नलिखित में से कौन सा पायथन में एक वैध अंकगणितीय ऑपरेटर है? // ? < and 12 / 100 Python 3.0 version how many keywords? Python 3.0 संस्करण में कितने कीवर्ड हैं? 35 31 30 45 13 / 100 Which of the following is not an advantage of using modules? निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है? provides a means of reuse of program code provides a means of dividing up tasks provides a means of reducing the size of the program Provides a means of testing individual parts of the program 14 / 100 Which of the following is correct about python language? पायथन भाषा के बारे में निम्नलिखित में से कौन सा सही है? It supports object oriented programming It runs on multiple platforms Python code is executed line by line All of the above 15 / 100 An algorithm is best describe as__. एक एल्गोरिदम का सबसे अच्छा वर्णन इस प्रकार किया जाता है__। A Computer language A step by step procedure for solving problem A branch of mathematics None of the above 16 / 100 Which of the following symbols is used to represent output in a flow chart? फ्लो चार्ट में आउटपुट को दर्शाने के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है? square circle Parallelogram Triangle 17 / 100 Choose the correct option with respect to Python? पायथन के संबंध में सही विकल्प चुनें? Both tuples and lists are immutable Tuples are immutable while lists are mutable Both tuples and lists are mutable Tuples are mutable while lists are immutable 18 / 100 What is the output of the following code snippet? निम्नलिखित कोड स्निपेट का आउटपुट क्या है? print([i.lower ( ) for i in "HELLO"]) hello ['h', 'e', 'l', 'l', 'o'] hel HELLO 19 / 100 What does readlines() method return? रीडलाइन्स() विधि क्या लौटाती है? Directory String Tuple List 20 / 100 What is the output of the following Python expression? निम्नलिखित पायथन अभिव्यक्ति का आउटपुट क्या है? >>5+8*((3*5)-9)/10 9.8 8.5 9.0 6.6 21 / 100 What is the value of the following python code? निम्नलिखित पायथन कोड का मूल्य क्या है? >>>print(35/4) 9 4 9.0 4 22 / 100 Which statement will return one line from file(file object is 'f')? कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट 'एफ' है)? f.readlines() f.readline() f.read() f.line() 23 / 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) zzz zz Infinite loop An exception is thrown 24 / 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) 5 1 1 5 5 1 5 1 1 5 1 5 1 5 5 1 25 / 100 Which of the following is incorrect? निम्नलिखित में से कौन सा गलत है? float('inf') float('nan') float('56'+'78') float('12+34') 26 / 100 Which one of the following is immutable data type? निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है? list set tuple dict 27 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example="helle" example.rfind("e") 1 2 4 5 28 / 100 Which of the following ist't true about dictionary keys? शब्दकोश कुंजियों के बारे में निम्नलिखित में से कौन सा सत्य नहीं है? More than one key isn't allowed Keys must be immutable Keys must be integers When duplicate keys encountered, the last assignment wins 29 / 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 1 3 5 7 30 / 100 Which of the following is correct in file handling? फ़ाइल प्रबंधन में निम्नलिखित में से कौन सा सही है? Reading mode is used for reading the file. Writing mode is used for overwriting the information on existing file append mode is used for added newly written data the end, following the previously written data. All of the above 31 / 100 Evaluate the expression given below if यदि नीचे दिए गए अभिव्यक्ति का मूल्यांकन करें A=16 , B=15 >>A%B//A 0.0 0 1.0 1 32 / 100 Which of these about a set is not true? सेट के बारे में इनमें से कौन सा सत्य नहीं है? Mutable data type Does not allow duplicate values Data type with unordered values Immutable data type 33 / 100 Which mode will write data to a file even if the file does not exist? फ़ाइल मौजूद न होने पर भी कौन सा मोड फ़ाइल में डेटा लिखेगा? w+ Both w+ and a+ r+ a+ 34 / 100 The contents inside the "for loop" are separated by: "फॉर लूप" के अंदर की सामग्री को इसके द्वारा अलग किया गया है: colon comma semicolon hyphen 35 / 100 To include the use of functions which are present in the random library, we must use the option: यादृच्छिक लाइब्रेरी में मौजूद फ़ंक्शंस के उपयोग को शामिल करने के लिए, हमें विकल्प का उपयोग करना चाहिए: import random random.h import.random random.random 36 / 100 Kite/diamond symbol in flow chart is used for__ फ्लो चार्ट में पतंग/हीरा प्रतीक का प्रयोग किसके लिए किया जाता है? Execution Decision Statement All of the above 37 / 100 Which function returns a random number between the given range? कौन सा फ़ंक्शन दी गई सीमा के बीच एक यादृच्छिक संख्या लौटाता है? rand() seed() randint() None of these 38 / 100 Which of the following is not a keyword in Python? निम्नलिखित में से कौन सा पायथन में एक कीवर्ड नहीं है? raise try val with 39 / 100 Which of the following is incorrect? निम्नलिखित में से कौन सा गलत है? x = 30963 x = 0x4f5 x = 19023 x = 03964 40 / 100 Which of these in not a core data type? इनमें से कौन सा कोर डेटा प्रकार नहीं है? Lists Dictionary Tuples Class 41 / 100 What is the full form of CSV file? CSV फ़ाइल का पूर्ण रूप क्या है? Colan Separated Values Context Separated Values Caps Separated values Comma Separated Values 42 / 100 Which function is used to add an element(5) in the list? सूची में तत्व(5) जोड़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है? list1.sum(5) list1.add(5) list1.append(5) list1.addelement(5) 43 / 100 What is the output of the following code snippet? निम्नलिखित कोड स्निपेट का आउटपुट क्या है? list1=[1,2]+[3,4] print(list1) [1,2,3,4] [1234] [1(2,3,4)] None of these 44 / 100 __ function returns the current position of a file pointer. __ फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति लौटाता है। get() tell() seek() cur() 45 / 100 Which Translator is used to convert assembly language into machine language? असेंबली भाषा को मशीनी भाषा में बदलने के लिए किस अनुवादक का उपयोग किया जाता है? Compiler Interpreter Assembler None of these 46 / 100 What is the output of the following expression? निम्नलिखित अभिव्यक्ति का आउटपुट क्या है? >>100/25 4 4.0 2 None 47 / 100 Which of the following is used to define block of code in Python language? पायथन भाषा में कोड के ब्लॉक को परिभाषित करने के लिए निम्नलिखित में से किसका उपयोग किया जाता है? try Brackets Indentation Catch 48 / 100 What is the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या है? def s(n1): print(n1) n1=n1+2 n2=4 s(n2) print(n2) 6 4 4 6 4 4 6 6 49 / 100 In which of the following data is stored permanently? निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहीत किया जाता है? Variable File Both of the above None of these 50 / 100 What arithmetic operators cannot be used with strings? कौन से अंकगणितीय ऑपरेटरों का उपयोग स्ट्रिंग्स के साथ नहीं किया जा सकता है? + * - All of the mentioned 51 / 100 Which of the following is the correct way to check if a value exists in a list? किसी सूची में कोई मान मौजूद है या नहीं इसकी जाँच करने का निम्नलिखित में से कौन सा सही तरीका है? list.contains(value) list.index(value) list.has(value) value in list 52 / 100 Which of the following is not a control structure? निम्नलिखित में से कौन सी नियंत्रण संरचना नहीं है? Loop Process Decision None of these 53 / 100 The following functions are used to access data randomly? डेटा को रैंडमली एक्सेस करने के लिए निम्नलिखित फ़ंक्शंस का उपयोग किया जाता है? seek() and tell() seek and read() tell() and read open and readlines() 54 / 100 A flowchart that outlines the main segments of a program. एक फ़्लोचार्ट जो किसी प्रोग्राम के मुख्य खंडों को रेखांकित करता है। Queue Macro Micro Union 55 / 100 What is the type of inf? इन्फ़ कितने प्रकार का होता है? Boolean Integer Float Complex 56 / 100 What will be the output of the following python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? >>~100 -101 100 102 None 57 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x='abcd' for i in x: print(i.upper()) a B C D a b c d Error A B C D 58 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:5, 2:3, 3:4} a.pop(3) print(a) {1:5, 2:3} {5:1,2:3} Error, syntax error for pop() method {1:5, 3:4} 59 / 100 What is the value of x when x=math.factorial(0) x का मान क्या है जब x=math.factorial(0) 1 0 1.0 None 60 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? nums = set([1,1,2,3,3,3,4,4]) print(len(nums)) 4 7 Error, invalid syntax for formation of set 8 61 / 100 What is the output of the following ? निम्नलिखित का आउटपुट क्या है? n=5 while n>0: n-=1 if n==2: continue print (n) 5 4 3 1 0 4 3 1 0 4 3 2 None of these 62 / 100 What is a variable defined outside a function referred to as ? किसी फ़ंक्शन के बाहर परिभाषित वेरिएबल को क्या कहा जाता है? A static variable A global variable A local variable An Automatic variable 63 / 100 What will be the output of the following python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=(0,2,3,4) print(a[1:-2]) (2,) 3 4 None of these 64 / 100 Which symbol is used as a flowline to connect two blocks in a flow chart? फ्लो चार्ट में दो ब्लॉकों को जोड़ने के लिए फ्लोलाइन के रूप में किस प्रतीक का उपयोग किया जाता है? arrow circle box parallelogram 65 / 100 What is the range of values that random.random() can return? मानों की वह सीमा क्या है जो रैंडम.रैंडम() वापस कर सकता है? [0,0,1.0] (0.0,1.0] (0,0,1.0) [0.0,1.0) 66 / 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 a is the smallest number b is the smallest number c is the smallest number stop 67 / 100 What will be the output of the following? निम्नलिखित का आउटपुट क्या होगा? print(sum(1,2,3)) Error 6 1 3 68 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example='Nielit O Level exam' print (example.count('e')) 1 2 4 5 69 / 100 When we open file in append mode the file pointer is at the __ of the file. जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के __ पर होता है। Anywhere in between the file end beginning Second line of the file 70 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? >>>print (r"\nNielit") a new line and Nielit \nNielit the letter r and then Nielit error 71 / 100 Which is bitwise xor operator? बिटवाइज एक्सओआर ऑपरेटर कौन सा है? | & ! ^ 72 / 100 Which of the following is not the correct syntax for creating a set? सेट बनाने के लिए निम्नलिखित में से कौन सा सही सिंटैक्स नहीं है? set([[1,2],[3,4]]) set([1,2,2,3,4]) set((1,2,3,4)) {1,2,3,4} 73 / 100 Python language written in __. पायथन भाषा __ में लिखी गई है। C language Java HTML Foxpro 74 / 100 Which of the following error is returned when we try to open a file in write mode which does not exist? जब हम किसी फ़ाइल को राइट मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है? File Found Error File Not Exist Error File Not Found Error None of the above 75 / 100 What is the output of print (0.1 +0.2 ==0.3) प्रिंट का आउटपुट क्या है (0.1 +0.2 ==0.3) True False Machine dependent Error 76 / 100 Which is not a built in function? कौन सा बिल्ट इन फंक्शन नहीं है? dictionary() set() list() tuple() 77 / 100 What will be the output of the following code snippet? निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? print(type(5/2)) print(type(5//2)) float and int int and float int and int float and float 78 / 100 What does ~~~~~~~~~5 evaluate to? ~~~~~~~~~5 का मूल्यांकन किससे होता है? +5 -11 +11 -5 79 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? str1 = "Nielit" str2 = ":" str3 = "OLEVEL" print(str1[-1:]+str2+str3) Nielit:OLEVEL t:OLEVEL OLEVEL:Nielit None of these 80 / 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) 0 1 2 0 0 1 2 0 0 1 0 2 Error 81 / 100 What will be the output of the following python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? list1=[2,33,222,14,25] print(list1[-1]) 25 222 -2 None of these 82 / 100 What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import * print(floor(11.7)) 12 11 11.0 None of these 83 / 100 What does 3^4 evaluate to? 3^4 का मूल्यांकन किससे होता है? 81 12 0.75 7 84 / 100 What will be the output of the following Python Expression? निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा? >>(5*2-4*8)%7 6 7 11.0 None of these 85 / 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' ) A B C D 86 / 100 What will be the outside of the following? निम्नलिखित में से बाहर क्या होगा? Y=[2,5J , 6] Y.sort ( ) [ 2,6,5] [5J,2,6] Error [6,5J,2] 87 / 100 What is the result of round(0.5) - round(-0.5)? राउंड(0.5) - राउंड(-0.5) का परिणाम क्या है? 1.0 2.0 0.0 Value depends on Python version 88 / 100 In which software development phase quality of software is documented? किस सॉफ्टवेयर विकास चरण में सॉफ्टवेयर की गुणवत्ता का दस्तावेजीकरण किया जाता है? Testing Delivery Idea Development 89 / 100 What the does random.seed(3) return? रैंडम.सीड(3) क्या लौटाता है? True None 3 1 90 / 100 What is the datatype of int(1)? Int(1) का डेटाटाइप क्या है? integer list dictionary None of these 91 / 100 Structured program can be broken into__ to assign to more than one developer. एक से अधिक डेवलपर को असाइन करने के लिए संरचित प्रोग्राम को __ में तोड़ा जा सकता है। Segments Modules Units All of the above 92 / 100 Which of the following statements is correct regarding the object-oriented programming concept in Python? पायथन में ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग अवधारणा के संबंध में निम्नलिखित में से कौन सा कथन सही है? Classes are real-world entities while objects are not real Objects are real-world entities while classes are not real Both objects and classes are real-world entities All of the above 93 / 100 In which format Binary file contain information? बाइनरी फ़ाइल में किस प्रारूप में जानकारी होती है? Quick response code Same format in which the data is held in memory ASCII format Unicode format 94 / 100 Which of the following function will not result in an error when no arguments are passed to it? निम्नलिखित में से किस फ़ंक्शन में कोई तर्क पारित नहीं होने पर त्रुटि नहीं होगी? min() divmod() all() float() 95 / 100 A_ statement is used when statement is required syntactically but you do not want any code to execute. A_ स्टेटमेंट का उपयोग तब किया जाता है जब स्टेटमेंट को सिंटैक्टिक रूप से आवश्यक होता है लेकिन आप नहीं चाहते कि कोई कोड निष्पादित हो। break pass continue None of these 96 / 100 What is the output of the following code? निम्नलिखित कोड का परिणाम क्या है? import numpy as np arr=np.array([1,2,3]) print(arr.shape) (3,) 0 1 2 0 0 1 0 2 Error 97 / 100 What is the output of the following code? निम्नलिखित कोड का परिणाम क्या है? >>print(5&3) 1 2 3 4 98 / 100 What is the default mode when you open a python file? जब आप पायथन फ़ाइल खोलते हैं तो डिफ़ॉल्ट मोड क्या होता है? r x Both of the above None of these 99 / 100 In which format python file considered? पायथन फ़ाइल को किस प्रारूप में माना जाता है? giga bytes mega bytes byte bits 100 / 100 What is the output of the following code? निम्नलिखित कोड का परिणाम क्या है? import numpy as np a=np.array ([1,2,3]) print(a.ndim) 1 2 3 0 Your score is LinkedIn Facebook Twitter VKontakte 0% Facebook WhatsApp Twitter