page-banner
Chapter-3 Introduction to Python
Q1.
निम्नलिखित Python प्रोग्राम का आउटपुट क्या होगा?

Find the output of following Python program.
a = “Meetmeafterparty”
b = 13
print(a+b)
A. 29
B. 14
C. 15
D. error in code
View Answer
Q2.
निम्नलिखित में से कौन सा अमान्य वेरिएबल है?

Which of the following is an invalid variable?
A. my_string_1
B. foo
C. _
D. 1st_string
View Answer
Q3.
Python एक high-level, interpreted, interactive और object-oriented scripting भाषा है। इसे highly unreadable बनाने के लिए डिज़ाइन किया गया है।

Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly unreadable.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q4.
Python कई अन्य भाषाओं से व्युत्पन्न है जैसे ABC, Modula-3, C, C++, Algol-68, Small-Talk, Unix shell आदि।

Python is derived from many other languages including ABC, Modula-3, C, C++, Algol-68, Small-Talk, and Unix shell and other scripting languages.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q5.
Python programming language किसने बनाई थी?

Python programming language was created by?
A. Dennis Python
B. Monty Circus
C. Eckert
D. Guido Van Rossum
View Answer
Q6.
निम्नलिखित में से कौन सा Python में कीवर्ड नहीं है?

Which of the following is not a keyword in Python?
A. eval
B. assert
C. nonlocal
D. pass
View Answer
Q7.
Python के बारे में निम्न में से कौन सा सत्य है?

Which of the following is correct about Python?
A. It supports automatic garbage collection
B. It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java
C. Both of the above
D. None of the above
View Answer
Q8.
Python में निम्नलिखित में से कौन सा डेटा प्रकार समर्थित नहीं है?

Which of the following data types is not supported in Python?
A. Numbers
B. String
C. List
D. Slice
View Answer
Q9.
Python में आरक्षित कीवर्ड चुनें:

Select the reserved keyword in Python.
A. else
B. raise
C. import
D. All of mentioned
View Answer
Q10.
क्या string पर mathematical operations किए जा सकते हैं?

Mathematical operations can be performed on a string.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q11.
int(x) अभिव्यक्ति का मतलब है कि x को integer में बदला जा रहा है।

The expression int(x) implies that the variable x is converted to integer.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q12.
frozenset(s) function Python में tuples की sequence को dictionary में बदलता है।

frozenset(s) function converts a sequence of tuples to dictionary in Python.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q13.
Python में string को list में बदलने के लिए कौन सा function प्रयोग होता है?

A function converts a string to a list in Python.
A. bin()
B. list()
C. strip()
D. None
View Answer
Q14.
निम्नलिखित में से कौन सा core data type नहीं है?

Which of these is not a core data type?
A. Lists
B. Dictionary
C. Tuples
D. Class
View Answer
Q15.
नीचे दिए गए object का data type क्या है?

What data type is the object below?
L = [ 1, 23, ‘hello’, 1 ]
A. List
B. Dictionary
C. Tuple
D. Array
View Answer
Q16.
Python में string को float में बदलने के लिए कौन सा function प्रयोग किया जाता है?

Which of the following functions converts a string to a float in Python?
A. int(x [,base])
B. long(x [,base])
C. float(x)
D. str(x)
View Answer
Q17.
निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?

What is the output of the following program?
print “Hello World”[::-1]
A. dlroWolleH
B. Hello Worl
C. d
D. Error
View Answer
Q18.
यदि string s="Welcome" है, तो निम्न में से कौन सा code गलत है?

Given a string s="Welcome", which of the following code is incorrect?
A. print s[0]
B. print s.lower()
C. s[1]='r'
D. print s.strip()
View Answer
Q19.
Python में identifier की अधिकतम लंबाई की कोई सीमा नहीं है।

There is no maximum possible length of an identifier in Python.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q20.
“1st_string” एक valid identifier नाम है।

“1st_string” is a valid identifier name.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q21.
Python में private variables की कोई अवधारणा नहीं होती है।

Python has no concept of private variables.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q22.
“eval” Python में एक कीवर्ड है।

“eval” is a keyword in Python.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q23.
Python में सभी कीवर्ड lowercase में होते हैं।

All keywords in Python are in lower case.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q24.
कीबोर्ड से इनपुट लेने के लिए किस command का प्रयोग किया जाता है?

The…………….command is used to take input from the keyboard.
A. input
B. eval
C. int
D. print
View Answer
Q25.
स्ट्रिंग को int में बदलने के लिए कौन सा function प्रयोग किया जाता है?

The…………… function is used to convert a string value to int.
A. int
B. float
C. Int
D. number
View Answer
Q26.
स्ट्रिंग के मान का मूल्यांकन करने के लिए कौन सा function प्रयोग होता है?

The function used to evaluate the value of a string is……….
A. evaluate
B. eval
C. add
D. length
View Answer
Q27.
वह संरचना जिसमें keys और values होते हैं उसे क्या कहते हैं?

The structure having keys and values is called __________.
A. list
B. tuple
C. set
D. dictionary
View Answer
Q28.
__________ function 1 से n तक की संख्या की एक श्रृंखला बनाता है।

The __________ function generates a sequence of numbers from 1 to n.
A. set
B. list
C. range
D. program
View Answer
Q29.
Python एक case sensitive भाषा है जब identifiers की बात आती है।

Python is a case sensitive language when dealing with identifiers.
A. True
B. False
C. Sometimes
D. Never
View Answer
Q30.
निम्नलिखित कोड का आउटपुट क्या होगा?

What is the output of the following code?
print( bool(0), bool(3.14159), bool(-3), bool(1.0+1j) )
A. True True False True
B. False True False True
C. False False False True
D. False True True True
View Answer
Q31.
निम्नलिखित में से कौन सा Python का कीवर्ड नहीं है?

Which of the following is not a keyword in python?
A. return
B. in
C. False
D. false
View Answer
Q32.
निम्नलिखित में से कौन सा variable name के लिए सही है?

Which of the following is true for variable names?
A. unlimited length
B. limited length
C. ampersand can be used in its name
D. None of above
View Answer
Q33.
Python में निम्नलिखित में से कौन से escape sequences valid हैं?

Which of the following are valid escape sequences in Python?
A. \n
B. \t
C. \\
D. All of above
View Answer
Q34.
निम्नलिखित कोड चलाने पर आउटपुट क्या होगा?

What is the output when we execute
list("hello")
A. ['h', 'e', 'l', 'l', 'o']
B. [' hello']
C. ['llo']
D. ['olleh']
View Answer
Q35.
यदि उपयोगकर्ता ने 55 दर्ज किया है, तो निम्नलिखित कोड का आउटपुट क्या होगा?

What is the output, if user has entered 55?
a = input("Enter a number")
print(type(a))
A. int
B. float
C. double
D. str
View Answer
Q36.
निम्नलिखित object का data type क्या है?

What is the data type of the following object?
A = [ 5, “abc”, 3.2, 6 ]
A. tuple
B. array
C. list
D. dictionary
View Answer
Q37.
variables के changing values की जाँच को stepping कहा जाता है।

The examination of changing values of variables is called stepping.
A. True
B. False
C. Can’t say
D. May be
View Answer
Q38.
निम्नलिखित में से कौन सा built-in function नहीं है?

Which of the following is not the built-in function?
A. input()
B. tuple()
C. print()
D. dictionary()
View Answer
Q39.
निम्नलिखित कोड का आउटपुट क्या होगा?

What is the output of the following code?
y = "I Love Python"
y[3] = 's'
print(y)
A. snow
B. snow world
C. snos world
D. Error in code
View Answer
Q40.
निम्न में से किस data type में indexing valid नहीं है?

In which data type, indexing is not valid?
A. list
B. dictionary
C. string
D. none of above
View Answer
Q41.
निम्नलिखित कोड का आउटपुट क्या होगा?

What is the output of the following code?
a = 50
b = a = a*5
print(b)
A. 250
B. 10
C. 50
D. Syntax Error
View Answer
Q42.
Python किस भाषा में लिखी गई है?

In which language is Python written?
A. C
B. C++
C. Java
D. None of these
View Answer
Q43.
किसी variable को assign किया गया raw data क्या कहलाता है?

Raw data assigned to a variable is called as __________.
A. variable
B. literal
C. identifier
D. comment
View Answer
Q44.
निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following?
print((range(4)))
A. 0,1,2,3
B. [0,1,2,3]
C. range(0,4)
D. (0,1,2,3)
View Answer
Q45.
निम्नलिखित में से कौन सी variable declaration गलत है?

Which of the following variable declaration is incorrect?
A. a_ = 3
B. _a = 3
C. a? = 3
D. All of these
View Answer
Q46.
यदि arr नाम की एक सूची में 5 तत्व हैं, तो दूसरा तत्व कैसे प्राप्त करें?

Suppose a list with name arr contains 5 elements. You can get the 2nd element from the list using:
A. arr[-2]
B. arr[2]
C. arr[-1]
D. arr[1]
View Answer
Q47.
key और value के रूप में data store करने के लिए कौन सा data type प्रयोग किया जाता है?

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
View Answer
Q48.
निम्न में से किस data type में duplicate items की अनुमति नहीं होती?

In which of the following data type, duplicate items are not allowed?
A. list
B. dictionary
C. set
D. None of above
View Answer
Q49.
निम्न कोड का आउटपुट क्या होगा?

What is the output of the following code?
ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C')
print( ms[1:4] )
A. ('D', 'H', 'U')
B. ('A', 'D', 'H', 'U', 'N', 'I', 'C')
C. ('D', 'H', 'U', 'N', 'I', 'C')
D. None of these
View Answer
Q50.
>>> “2” + “3” का आउटपुट क्या होगा?

What is the output of >>> “2” + “3”
A. 2 3
B. 2+3
C. '23'
D. None of these
View Answer
Q51.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following?
print( int() )
A. Any random number
B. 1
D. Error
View Answer
Q52.
>>> float("12.6") का आउटपुट क्या होगा?

What is the output of >>> float("12.6")
A. 12.6
B. "12.6"
C. 12
D. syntax error
View Answer
Q53.
निम्न कोड के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 7 * 5 + 8
print(m)
A. 91
B. 20
C. 47
D. 43
View Answer
Q54.
निम्नलिखित में से कौन valid identifier नहीं है?

Which of the following is not a valid identifier?
A. student
B. s12
C. 123
D. _123
View Answer
Q55.
single line comment लिखने के लिए कौन सा symbol उपयोग किया जाता है?

Which symbol is used to write single line comment?
A. *
B. #
C. /
D. ?
View Answer
Q56.
Python module किस file extension के साथ होता है?

A Python module is a file with the ______ file extension that contains valid Python code.
A. .pym
B. .pymodule
C. .module
D. .py
View Answer
Q57.
Python में empty list कैसे बनाई जाती है?

How can we create an empty list in Python?
A. list=()
B. list.null
C. null.list
D. list=[ ]
View Answer
Q58.
निम्नलिखित Python कोड का value क्या होगा?

What is the value of the following Python code?
print(36/4)
A. 9
B. 4
C. 9.0
D. 4.0
View Answer
Q59.
निम्नलिखित में से कौन Python का कीवर्ड नहीं है?

Which of the following words is not a keyword of Python language?
A. val
B. raise
C. try
D. with
View Answer
Q60.
निम्नलिखित Python कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
len(["hello", 2, 4, 6])
A. Error
B. 6
C. 4
D. 3
View Answer
Q61.
निम्नलिखित में से कौन सी declaration गलत है?

Which of the following declarations is incorrect?
A. _x = 2
B. x = 3
C. _xyz_ = 5
D. None of these
View Answer
Q62.
निम्नलिखित कथन का आउटपुट क्या होगा?

What will be the output of following statement?
>>> "m" + "nl"
A. 'm+nl'
B. 'mnl'
C. 'm nl'
D. 'm'
View Answer
Q63.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?
m = '40' + '01'
print(m)
A. 4001
B. 01
C. 41
D. 40
View Answer
Q64.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?
m = 81 + 34
print(m)
A. 8134
B. 81
C. 115
D. 34
View Answer
Q65.
निम्नलिखित Python कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
d1 = { "abc":5, "def":6, "ghi":7 }
print(d1[0])
A. abc
B. 5
C. { "abc" : 5 }
D. Error
View Answer
Q66.
निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहित होता है?

In which of the following, data is stored permanently?
A. Variable
B. File
C. Both of above
D. None of above
View Answer
Q67.
Python भाषा में, निम्नलिखित में से किसे variable के रूप में परिभाषित नहीं किया जा सकता?

In Python language, which of the following cannot be defined as variable?
A. _val
B. val
C. try
D. _try_
View Answer
Q68.
निम्नलिखित में से कौन सी declaration गलत है?

Which of the following declarations is incorrect?
A. _x = 2
B. x = 3
C. _xyz_ = 5
D. None of these
View Answer
Q69.
निम्नलिखित कथन का आउटपुट क्या होगा?

What will be the output of following statement?
>>> "m" + "nl"
A. 'm+nl'
B. 'mnl'
C. 'm nl'
D. 'm'
View Answer
Q70.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?
m = '40' + '01'
print(m)
A. 4001
B. 01
C. 41
D. 40
View Answer
Q71.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?
m = 81 + 34
print(m)
A. 8134
B. 81
C. 115
D. 34
View Answer
Q72.
निम्नलिखित Python कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
d1 = { "abc":5, "def":6, "ghi":7 }
print(d1[0])
A. abc
B. 5
C. { "abc" : 5 }
D. Error
View Answer
Q73.
निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहित होता है?

In which of the following, data is stored permanently?
A. Variable
B. File
C. Both of above
D. None of above
View Answer
Q74.
Python भाषा में, निम्नलिखित में से किसे variable के रूप में परिभाषित नहीं किया जा सकता?

In Python language, which of the following cannot be defined as variable?
A. _val
B. val
C. try
D. _try_
View Answer
Q75.
Python में एक in-built interactive shell के रूप में आने वाले GUI का नाम क्या है?

What is the name of the GUI that comes in-built as an interactive shell with Python?
A. PGUI
B. PyShell
C. IDLE
D. PythonSh
View Answer
Q76.
निम्नलिखित कथन निष्पादित होने पर आउटपुट क्या होता है?

What is the output when following statement is executed?
>>> "a"+"bc"
A. a
B. bc
C. bca
D. abc
View Answer
Q77.
कौन से arithmetic operators strings के साथ उपयोग नहीं किए जा सकते?

What arithmetic operators cannot be used with strings?
A. +
B. *
C.
D. All of the mentioned
View Answer
Q78.
Python में एक in-built interactive shell के रूप में आने वाले GUI का नाम क्या है?

What is the name of the GUI that comes in-built as an interactive shell with Python?
A. PGUI
B. PyShell
C. IDLE
D. PythonSh
View Answer
Q79.
निम्नलिखित कथन निष्पादित होने पर आउटपुट क्या होता है?

What is the output when following statement is executed?
>>> "a"+"bc"
A. a
B. bc
C. bca
D. abc
View Answer
Q80.
कौन से arithmetic operators strings के साथ उपयोग नहीं किए जा सकते?

What arithmetic operators cannot be used with strings?
A. +
B. *
C.
D. All of the mentioned
View Answer