M3 Part 6 NamePhone Number 1 / 50 import random के बाद random.randint(1,10) क्या करता है? 1 से 10 के बीच random integer देता है Error Always 5 return करता है None 2 / 50 Python का use कहाँ-कहाँ होता है? Web Development Data Science AI/ML All of the above 3 / 50 Lambda function को call कैसे किया जाता है? variable assign करके call करते हैं सिर्फ def से call होता है direct execute होता है None 4 / 50 Function को multiple values return करनी हों तो Python में किसका use होता है? dictionary tuple list tuple (default) 5 / 50 from math import * का मतलब क्या है? कोई function import नहीं होगा सारे functions import होंगे सिर्फ sqrt() import होगा Error 6 / 50 help(math) command क्या करता है? Math module की documentation दिखाता है Math delete करता है Install करता है None 7 / 50 Recursive function हमेशा किसकी जरूरत होती है? Default argument Global variable Base condition (Stopping condition) Module 8 / 50 Python में function के अंदर global variable use करने के लिए कौन सा keyword लिखा जाता है? open public None global 9 / 50 Function के बाहर define variable को क्या कहते हैं? Static variable Local variable Global variable None 10 / 50 अगर function में return नहीं लिखा है तो by default क्या return होगा? None “” 0 False 11 / 50 Function को call करने का सही तरीका कौन सा है? myfun() def myfun() myfun{} call myfun 12 / 50 Function define करने का सही syntax कौन सा है? def myfun: function myfun(): def myfun[] def myfun(): 13 / 50 Python में function का नाम किससे शुरू नहीं हो सकता? Underscore Alphabet None Number 14 / 50 अगर module Python में available नहीं है तो क्या करना होगा? Install using pip Ignore None Delete Python 15 / 50 dir(module) command क्या करता है? List all functions and variables of a module Install module Delete module None 16 / 50 User-defined functions का फायदा क्या है? All of these Modularity Easy debugging Code reuse 17 / 50 Python में predefined functions कहाँ store होते हैं? User file Operating System None Built-in library 18 / 50 Python में एक file को module की तरह use करने के लिए उसका extension क्या होना चाहिए? .mod .exe .txt .py 19 / 50 किसी module का alias (nickname) देने के लिए कौन सा keyword use होता है? asname alias as rename 20 / 50 Built-in module का example कौन सा है? All of these os random math 21 / 50 अगर दो files में same function name है तो कौन सा चलेगा? None जो आखिरी import हुआ है पहला दोनों 22 / 50 Python के math module में कौन सा function होता है? All of these factorial() pow() sqrt() 23 / 50 किसी specific function को module से import करने के लिए syntax क्या है? None module import function from module import function import module.function 24 / 50 Python में module import करने के लिए कौन सा keyword use होता है? include import module require 25 / 50 Lambda function बनाने का syntax क्या है? lambda : expression function lambda lambda arguments : expression def lambda() 26 / 50 Anonymous function को Python में क्या कहते हैं? Lambda Function Hidden Function None Null Function 27 / 50 **kwargs का use किसके लिए होता है? Only integers Only strings Variable length keyword arguments None 28 / 50 args का use किसके लिए होता है? Variable length positional arguments Variable length keyword arguments Keyword arguments None 29 / 50 Function में default arguments कहाँ define किए जाते हैं? Function definition में Module में Function call में None 30 / 50 अगर function को call करते समय arguments कम दिए जाएँ तो क्या होगा? Error होगा (TypeError) Default value लेगा कुछ नहीं None 31 / 50 return statement का use क्यों होता है? Function stop करने के लिए Loop break करने के लिए Value वापस करने के लिए None 32 / 50 Recursive function का मतलब क्या है? Function का खुद को call करना Function का delete होना Function को बार-बार call करना None 33 / 50 Function के अंदर function को define करने को क्या कहते हैं? Nested function Inner loop Sub function Recursive 34 / 50 Python में in-built function कौन सा है? len() All of these print() type() 35 / 50 Function के अंदर जो variables define होते हैं, उनका scope क्या कहलाता है? Local Scope Block Scope Global Scope None 36 / 50 Function का default return type क्या होता है अगर कुछ return न किया जाए? "" 0 None False 37 / 50 Python में function define करने के लिए कौन सा keyword use होता है? function def define fun 38 / 50 Module को reload करने के लिए कौन सा function use होता है? importlib.reload() reload() sys.reload() None 39 / 50 Python में module का search order क्या है? Local → Global → Built-in → sys.path Always sys.path None Current directory → PYTHONPATH → Standard Library → Installed Packages 40 / 50 Function arguments में = का use किसलिए होता है? None Loop define करने के लिए Default value assign करने के लिए Global variable declare करने के लिए 41 / 50 अगर किसी module में __init__.py file हो तो Python उसे क्या मानता है? Library Package Error None 42 / 50 Python में module install करने के लिए कौन सा command use होता है? pip install setup install python install None 43 / 50 Function के अंदर define किया हुआ function क्या कहलाता है? Nested function None Inner loop Recursive function 44 / 50 Python में print(__name__) का output main file में क्या होगा? None Error 'main' main 45 / 50 type(len) का output क्या होगा? builtin_function_or_method None str int 46 / 50 Python में random.choice([1,2,3]) का output क्या होगा? हमेशा 3 1,2 या 3 में से कोई एक random हमेशा 1 Error 47 / 50 Python में library का मतलब क्या है? Book Modules का collection Function का दूसरा नाम None 48 / 50 Default Python math module में कौन सा function नहीं है? average() floor() ceil() sqrt() 49 / 50 import os module का use किसके लिए होता है? Operating System से interact करना File और directory handle करना Path operations All of these 50 / 50 Python में user-defined module को import करने के लिए file कहाँ होनी चाहिए? Current working directory None Temp folder Windows folder Your score isThe average score is 84% 0% Restart quiz