Python Preparation Questions
Python Preparation Questions
->Interpreted:
python is interpreted language. It does not require prior
compilation of code and executes instructions directly.
->extensible:
it is very flexible and extensible with any module
-> object-oriented:
It allows to implement the object oriented concepts to build
application solution.
-> Portable:
it can run without affecting the device performance.
-> Function:
a fuction is a block of code which is return once and can be
executed whenever reuired in the program. A function has a valid
name, parameter list and body.
ther are two types namely: built in, user defined
-> What type of language is python? programming or scripting?
python is capable of scripting, but in general it is cnsidered as
a general purpose programming language.
-> What is namespace in pythom?
A namespace is a naming system used to make sure that names are
unique to avoid naming conflicts.
-> whenever python exits, why isnt all the memory de-allocated?
It is impossible to de-allocate those portions of memory that
are reserved by the C library.
On exit, beacuse of having its own efficient clean up mechanism,
python would try to de-allocate/ destroy every object.
-> What is a dictionary in Python?
The built in datatypes in python is called dictionary. It defines
one-to-one relationship between keys and values. Dictionaries
contain pair of keys and their corresponding values. Dictionaries
are indexed by keys.