Python 3 Programming
Python 3 Programming
True
The 2 main versions of Python include – Python 2.x & 3.x
Python supports automatic garbage collection. True
Which of the following attributes shows the characteristics of Python? Python
is everywhere (Webscripting, 3D Modelling , Games , and Desktop applications
). Ubiquity
Which of these are salient features of Python, except? Limited platform
support
Which is the fastest implementation of Python? pyPy
Code written in Python 3 is backward compatible with Python 2. False
While using Python IDLE, by how many space are the code suites indented? 4
Which action should be avoided so that you do not mistakenly overwrite
names that you have already defined? Use the wildcard import
What command is used to output text from both the Python shell and within a
Python module? print()
When using the Python shell and code block, what triggers the interpreter to
begin evaluating block of code? blank line
Which of the following will not result in declaring x as datatype of float? X=
x=5
What is the output of bool(0)? False
While using 'bool', all zero values are considered as false and non- zero values
are considered as true. Is this correct? True
Which statement accurately defines the bool class? Boolean not returns
false….
Equivalent operation for function pow(x , y) is __. X**y
Which statement creates the bytes literal when run? bytes_literal = b'Copyright
\xc2\xa9'
Which methods can be used with list objects? Reverse, pop, clear
Byte datatype can contain only ______ and ______. Ascii and hexadecimal
characters
What is the output of the following code count = 0 while count < 2: print
(count, " is less than 2") count = count + 2 else: print (count, " is not less than
2") 0 is less than 2; 2 is not less than 2
What is the output of below code snippet - for char in 'Welcome': print (char,
end='*') print() W*e*l*c*o*m*e*
What is the output of the following code? for x in (1,10,100): print (x) 1 10 100
What is the output of bool(5) ? False
What is the output of - list_pt = list('Welcome') print(list_pt) ['W', 'e', 'l', 'c', 'o', 'm', 'e']