Professional Documents
Culture Documents
{\fonttbl\f0\fswiss\fcharset0 ArialMT;}
{\colortbl;\red255\green255\blue255;\red73\green73\blue73;\red246\green247\blue249;
\red57\green57\blue57;
\red255\green255\blue255;\red73\green73\blue73;\red246\green247\blue249;}
{\*\expandedcolortbl;;\cssrgb\c35686\c35686\c35686;\cssrgb\c97255\c97647\c98039;\cs
srgb\c29020\c29020\c29020;
\
cssrgb\c100000\c100000\c100000;\cssrgb\c35686\c35686\c35686;\cssrgb\c97255\c97647\c
98039;}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\sl420\partightenfactor0
\fs36 Code written in Python 3 is backward compatible with Python 2 \'97 False\
\
Which of these are salient features of Python, except \'97 limited platform
support\
\
Python is Ubiquitous? Is this true or false ? - True\
\
When using the Python shell and code block, what triggers the interpreter to begin
evaluating block of code? \'97 blank line\
\
What command is used to output text from both the Python shell and within a Python
module? \'97 print()\
\
While using Python IDLE, by how many space are the code suites indented? \'97 4\
\
Which action should be avoided so that you do not mistakenly overwrite names that
you have already defined? \'97 use the wildcard import\
\
\pard\pardeftab720\sl420\partightenfactor0
\cf2 Equivalent operation for function pow(x , y) is __. \'97 x**y\
\
Which datatype is represented by int in Python 3? \'97 decimal* long\
\
Which statement accurately defines the bool class? \'97 Boolean not returns false\
\
Which of the following will not result in declaring x as datatype of
float? \'97x=5\
\
Which statement correctly assigns X as an infinite number? \'97 x=
float(\'91inf\'92)\
\
The bool class is subset of ______. \'97 int\
\
Is x,y=5,6 a valid statement? - true\
\
While using 'bool', all zero values are considered as false and non- zero values
are considered as true. Is this correct? \'97 True\
\
What is the output of bool(0)? \'97 False\
\
Byte datatype can contain only ______ and ______. \'97 ascii& hexane\
\
\pard\pardeftab720\sl420\partightenfactor0
\cf2 What is the output of min('Infinity')? \'97 f\
\
Which describes bytearrays? \'97 without an argument\
\
Which statements will result in slice of tuple? \'97 0 =
\fs28 \cf4 \cb5 \strokec4 a_tuple[::2] a_tuple[:]\cb1 \
\pard\pardeftab720\sl320\partightenfactor0
\cf4 \
\pard\pardeftab720\sl420\partightenfactor0
\fs36 \cf2 \cb3 \strokec2 What is the output of below code snippet - for char in
'Welcome': print (char, end='*') print() \'97 W*e*l*c*o*\
\
a = 0 if a: print("a's value") else: print("Sorry nothing will get
printed") \'97 \cf6 \cb7 \outl0\strokewidth0 Sorry nothing will get printed\
\
\cf2 \cb3 \outl0\strokewidth0 \strokec2 What is the output of the following code?
for x in (1,10,100): print (x) \'97 1 10 100}