Chapter 1 : Working with Python Scripting

  1. What are the differences between Python 2.x and 3.x?

    The Unicode support in Python 3.x has been improved. The other changes are to do with the print and exec functions, which have been adjusted to be more readable and coherent.
  2. What is the main programming paradigm used by Python developers?

    Object-oriented programming.

  3. What data structure in Python allows us to associate values with keys?

    The Python dictionary data structure provides a hash table that can store any number of Python objects. The dictionary consists of pairs of items containing a key and a value.

  4. What are the main development environments for Python scripting?

    PyCharm, Wing IDE, and Python IDLE.

  5. What is the methodology we can follow as a set of best practices in Python for the development of security tools?

    Open Methodology for Security Tool Developers (OMSTD)
  6. What is the Python module that helps to create isolated Python environments?

    virtualenv 
     
  7. Which tool allows us to create a base project on which we can start to develop our own tool?

Security Tool Builder (SBT)

  1. How can we debug variables in Python development environments?

    By adding a breakpoint. In this way, we can debug and see the content of the variables just at the point where we have established the breakpoint.
     
  2. How can we add a breakpoint in PyCharm?

We can set a breakpoint with the call function in the Debug Tool Window.
 

  1. How can we add a breakpoint in Wing IDE?

We can set a breakpoint with the call function in the Debug option menu.
 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.18.218