CIS 2750 ACTUAL EVALUATION TEST QUESTIONS AND
ANSWERS MARKED A+
✔✔What does python use a combination of? - ✔✔Python uses a combination of
compilation and interpretation
✔✔Process to Execute in Python - ✔✔Source code is converted into byte code
(intermediate form)
Byte code is executed by an interpreter
Improve performance versus purely interpreted systems
✔✔Compiled Execution - ✔✔Source -(Compiler)> Executable -(Run)> Execution
✔✔Interpreter Execution - ✔✔Source -(Interpreter)> Execution
✔✔Byte Code Execution - ✔✔Source -(Compiler)> Byte Code -(Interpreter)> Execution
✔✔How does combine the functionality of other programs? - ✔✔Allows the script to act
as the intermediary between programs and pass information between them
Output from one program can be utilized by the script to be the input of another program
✔✔Extending - ✔✔Using external programs and libraries to increase functionality of
scripting programs through binding to existing programs
✔✔What does extending allow for? - ✔✔Allows for function calls to be made to
compiled programs/libraries instead of command interface
✔✔Dynamic Typing - ✔✔System manages the type of variables without explicit input
from programmer
✔✔Issues with Dynamic Typing - ✔✔Type Mismatches, Misspelled variable result in
creation of additional variables
✔✔What type of memory management does python have? - ✔✔Automatic Memory
Management
✔✔Automatic Memory Management - ✔✔Controls the allocation and freeing of memory
on demand. No segmentation faults.
✔✔What OO concepts does Python support? - ✔✔Ability to create multiple name
spaces, Polymorphism,
, Operator Overloading,
Multiple Inheritance
✔✔Ability to create multiple name spaces (scope) - ✔✔Each object contains its own
name space
✔✔Polymorphism - ✔✔Methods change based on their class
✔✔Operator Overloading - ✔✔Operators given multiple meanings
✔✔Multiple Inheritance - ✔✔A class can be the product of multiple parents
✔✔Dynamic Code Creation - ✔✔Create and execute code during the execution of the
script
✔✔Scripting languages have built in support for _____ ______ _______ ________ -
✔✔High level data structures
✔✔Python - ✔✔An object-oriented scripting language developed by Guido van Rossum
✔✔Why is Python easy to bind to other languages? - ✔✔Extends (Call components
from C), Embed (Call Python from C), Jython (Java implementation to link with Java)
✔✔What does Python allow for? - ✔✔Rapid Development Cycle
✔✔True or False: Version 3 of Python is fully backwards compatible - ✔✔False - It is
not fully backwards compatible
✔✔Does python have an end of statement character? - ✔✔No, but ; are allowed
✔✔Indentation in Python - ✔✔Used to identify the beginning and end of a block of code
✔✔Comments in Python - ✔✔Begin with the # symbol and ignores everything until the
end of the line
✔✔#! - ✔✔Tells the shell to run the program that follows
Should be in the first line of the script
✔✔chmod +x <filename> - ✔✔Execute a program without typing python
Makes the script an executable
ANSWERS MARKED A+
✔✔What does python use a combination of? - ✔✔Python uses a combination of
compilation and interpretation
✔✔Process to Execute in Python - ✔✔Source code is converted into byte code
(intermediate form)
Byte code is executed by an interpreter
Improve performance versus purely interpreted systems
✔✔Compiled Execution - ✔✔Source -(Compiler)> Executable -(Run)> Execution
✔✔Interpreter Execution - ✔✔Source -(Interpreter)> Execution
✔✔Byte Code Execution - ✔✔Source -(Compiler)> Byte Code -(Interpreter)> Execution
✔✔How does combine the functionality of other programs? - ✔✔Allows the script to act
as the intermediary between programs and pass information between them
Output from one program can be utilized by the script to be the input of another program
✔✔Extending - ✔✔Using external programs and libraries to increase functionality of
scripting programs through binding to existing programs
✔✔What does extending allow for? - ✔✔Allows for function calls to be made to
compiled programs/libraries instead of command interface
✔✔Dynamic Typing - ✔✔System manages the type of variables without explicit input
from programmer
✔✔Issues with Dynamic Typing - ✔✔Type Mismatches, Misspelled variable result in
creation of additional variables
✔✔What type of memory management does python have? - ✔✔Automatic Memory
Management
✔✔Automatic Memory Management - ✔✔Controls the allocation and freeing of memory
on demand. No segmentation faults.
✔✔What OO concepts does Python support? - ✔✔Ability to create multiple name
spaces, Polymorphism,
, Operator Overloading,
Multiple Inheritance
✔✔Ability to create multiple name spaces (scope) - ✔✔Each object contains its own
name space
✔✔Polymorphism - ✔✔Methods change based on their class
✔✔Operator Overloading - ✔✔Operators given multiple meanings
✔✔Multiple Inheritance - ✔✔A class can be the product of multiple parents
✔✔Dynamic Code Creation - ✔✔Create and execute code during the execution of the
script
✔✔Scripting languages have built in support for _____ ______ _______ ________ -
✔✔High level data structures
✔✔Python - ✔✔An object-oriented scripting language developed by Guido van Rossum
✔✔Why is Python easy to bind to other languages? - ✔✔Extends (Call components
from C), Embed (Call Python from C), Jython (Java implementation to link with Java)
✔✔What does Python allow for? - ✔✔Rapid Development Cycle
✔✔True or False: Version 3 of Python is fully backwards compatible - ✔✔False - It is
not fully backwards compatible
✔✔Does python have an end of statement character? - ✔✔No, but ; are allowed
✔✔Indentation in Python - ✔✔Used to identify the beginning and end of a block of code
✔✔Comments in Python - ✔✔Begin with the # symbol and ignores everything until the
end of the line
✔✔#! - ✔✔Tells the shell to run the program that follows
Should be in the first line of the script
✔✔chmod +x <filename> - ✔✔Execute a program without typing python
Makes the script an executable