Q1. What is the order of resolving scope of a name in a python program ?
LEGB
BGEL
GEBL
LBEG
LEGB
BGEL
GEBL
LBEG
Q2.What is variable defined inside a function is called
static
local
global
automatic
static
local
global
automatic
Q3.What is variable defined outside a function is called
static
local
global
automatic
static
local
global
automatic
Q4.Default return value for a function that does not return any value ?
null
string
int
None
null
string
int
None
Q5.function created using keyword
func
def
function
define
func
def
function
define
Q6.python module has extension
.mod
.py
.imp
.jpy
.mod
.py
.imp
.jpy
Q7.help module statement display
constant
function
docstring
classes
constant
function
docstring
classes
Q8.file must be a part of a folder to be used as python package?
_init_.py
package.py
_package_.py
_module_.py
_init_.py
package.py
_package_.py
_module_.py
Q9.random module function generates a floating point number
random
randint
uniform
all of these
random
randint
uniform
all of these
Q10.collection of modules and package that together cater to a specific type of application
classes
module
library
documentation
classes
module
library
documentation
0 Comments