Python Some Common IQ’S

OPP938-“ Call by value & Call by reference”

Please click here for general information about Call by value & Call by reference

Please click here to understand python call by references

OPP939-“ Shallow copy & deep copy”

Please click here and here for complete information on “ Shallow copy & deep copy”

OPP940-“repr vs str”

Please click here for complete understanding on “repr vs str”

OPP941-“eval”

Please click here for complete understanding on “eval”

OPP942-“input vs rawinput”

Please click here for complete understanding on “input vs rawinput”

OPP943-“*args vs **args”

Please click here for complete understanding on “*args vs **args”

OPP944-“lambda vs normal functions”

-Lamba function can be called without a function name where vice versa for normal
-Lambda can be used where we want to.call it once where as normal function can be reused
-Lambda can’t be serialized where as normal function can be done
-Lamba should be in single statement where as function can have multiple statements
-Lambda always evaluate expression but function may not
-Lambda should return a value but function may not
-Lambda should have only single Expression where as function can have multiple expression

Please click here and here for complete information on “lambda & normal functions”

OPP945-“inline vs lambda”

-Inline function has function name where as lamda do not have function name
-Inline function needs to be called where as lambda not required to call
-Inline can contain statements where as lambda not
-Whole code gets inserted when inline is called but not for lambda
-loops can’t be used but loops can be used with lambda
-Return statement is required but here not

OPP946-“C++ vs Python”

– Statically typed & dynamic typed
– Pre compilation required  where as It interpreted
– Not all declaration are object whereas everything is an object
– Doesn’t have garbage collection where as here it has
– Large code where as small code
– Speed of Execution is more compared to python
– Not having high level Datatypes where as it is
– Not having rich set of libraries compared to pyhon
– Has inline function where as it doesn’t have inline function
– Call by value & reference where as python is call by Object reference
– Others are like syntax, more code, easy learning etc

OPP947-“Python vs other languages”

Please click here information on “Python vs other languages”

OPP948-“Why python programs are slow in execution ?”

-One reason is python needs to identify Data types of Variables & then Execution happens where as in languages like c++ datatypes are declared for the variables
-It is interpreted but these are precompiled

Please click here information on “Why python is slow in execution”

OPP949-“What are batteries ?”

Please click here information on “Batteries”

OPP950-“What are itertools”

Please click here complete information on “itertools”

OPP951-“What is enum?”

Please click here and here for complete information on “enum”

OPP952-“What are Special class methods/data model”

Please click here and here and also here to get the complete information on are Special class methods/Data model

OPP953-“ Pickle vs unpickle”

Please click here complete information on “itertools”

OPP954-“Pickle vs Marshal”

Please click here complete information on “Pickle vs Marshal”

OPP955-“Pickle vs Json”

Please click here complete information on “Pickle vs Json”

OPP956-“How to parse command line arguments”

Please click here and also here complete information on “command line arguments”

OPP957-“py_compile vs compileall”

Please click here complete information on “py_compile vs compileall”

OPP958-“ Is it possible to compile & get .pyc , .pyo in python”

Please click here complete information on “.pyc & .pyo”

OPP959-“ which one to execute when .py, pyo & .pyc are present “

Please click here complete information on the same

OPP960-*arg vs **arg

Please click here for complete information on *args and **args

OPP961-“ What is circular references & how to handle it ?”

Please click on following links below for the information on the same

Link1, Link2, Link3 and Link4

OPP962- “ How to destroy the object ?”

Please click on following links below for the information on the same

Link1, Link2 and Link3