• NeuroPace
  • Home
  • Explore

    Flashcards

    How do you create a virtual environment in Python?

    Use the command 'python -m venv <env_name>'.

    What are Python's key data types?

    Examples include int, float, str, list, tuple, dict, and set.

    What is the difference between 'is' and '==' in Python?

    'is' checks object identity, while '==' checks value equality.

    How do you handle exceptions in Python?

    Using 'try', 'except', and optionally 'finally' blocks.

    What is a Python decorator?

    A function that modifies the behavior of another function or method.

    What is a lambda function in Python?

    A small anonymous function defined using the 'lambda' keyword.

    How do you define a function in Python?

    Using the 'def' keyword followed by the function name and parentheses.

    What is the difference between a list and a tuple in Python?

    Lists are mutable, while tuples are immutable.

    What does the 'len()' function do in Python?

    It returns the number of items in an object.

    What is the purpose of the '__init__' method in Python classes?

    It initializes an instance of a class.

    What does GPU stand for?

    Graphics Processor

    What is the instruction set architecture?

    ISA

    What is the storage used for long-term data retention?

    Harddrive

    What is the control unit's job in the CPU?

    Control

    What is the basic unit of storage in a computer?

    Bit

    What does CPU stand for?

    Central Processor

    What is the temporary storage used by the CPU for fast access?

    Cache

    What is the main memory used for storing data and instructions?

    RAM

    What does ALU stand for?

    Arithmetic Logic Unit

    What is the communication pathway between the CPU and memory?

    Bus