1/58
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Which of the following is NOT a benefit of using Git?
File compression
What does git clone do?
Duplicates an existing repository from a remote source
What is the purpose of GitHub?
A cloud-based platform for Git repositories
Which of the following is NOT a basic Linux command?
git init
What does ls -l do in Linux?
Lists files in long format
What is Git?
A distributed version control system
What command is used to generate an SSH key?
ssh-keygen
What is the primary function of Linux?
An open-source operating system kernel
What is the kernel in an operating system?
The core that interacts with hardware
What is the purpose of git commit -m 'message'?
To save changes with a commit message
How do you check the status of a Git repository?
git status
What is the purpose of WSL (Windows Subsystem for Linux)?
To run a Linux environment on Windows
What command is used to create a virtual environment in Python?
python -m venv venv
What is the role of pip install -r requirements.txt?
Installs all dependencies listed in requirements.txt
What does git pull do?
Fetches and merges changes from a remote repository
What is the purpose of Live Server in VS Code?
To run a local development server for web applications
What command is used to check the Python version installed on a system?
python --version
What is the purpose of a Python virtual environment (venv)?
To manage dependencies and isolate projects
What is the purpose of the WSL extension in VS Code?
To enable Linux-based development on Windows
What is GitHub used for?
A platform for hosting Git repositories
What does the pytest framework do?
Runs automated tests in Python
What is polymorphism in OOP?
The ability of a function to perform different tasks based on input
What is an instance in OOP?
A specific object created from a class
What does super() do in Python?
Calls the constructor of the parent class
What does @classmethod do in Python?
Defines a method that takes the class (cls) as the first argument
What is the difference between assertEqual() and assertNotEqual()?
assertEqual() checks if values are equal, assertNotEqual() checks if they are different
What is abstraction in OOP?
Hiding complex implementation details and exposing only the necessary parts
What is the difference between deepcopy() and copy()?
deepcopy() creates independent copies, while copy() creates a reference copy
What is the purpose of mocks in unit testing?
To simulate external dependencies in testing
What does the init method do in Python classes?
Initializes an instance of a class
What is a metaclass in Python?
A class that defines the behavior of other classes
What does @property do in Python?
Makes a method behave like an attribute
What is an interface in Python?
A class that defines methods without implementing them
What is the purpose of a design pattern in software development?
To provide reusable solutions for common problems
What does duck typing mean in Python?
Determining an object's behavior based on its methods rather than its class
What is multiple inheritance in Python?
When a class inherits from more than one class
What does call() do in Python?
Makes an object callable like a function
How do you prevent method overriding in a subclass?
By using the final keyword
How do you check if an object is an instance of a specific class?
isinstance(object, class)
What is the Strategy design pattern used for?
Defining a family of algorithms and making them interchangeable
What is the primary purpose of the Observer pattern?
Manage event-driven programming by notifying multiple objects
What is the purpose of logging in Python?
Debugging and monitoring applications
What does the Facade design pattern do?
Provides a simplified interface to a larger system
What does undo do in the calculator program?
Reverts the last operation
What is the purpose of a .env file in a Python application?
Store environment variables for configuration
What is an ORM in Python?
Object Relational Mapping
What is an .ini file used for?
Configuration settings
What does clear do in the calculator?
Clears calculation history
Why is maintaining a clear commit history in Git important for the midterm project?
It ensures academic integrity and tracks project progress
How is calculation history stored in the midterm project?
Using a pandas DataFrame and CSV file
What is the primary goal of the midterm assessment in Module 6?
To evaluate understanding of OOP, design patterns, and data management
What command is used to activate a virtual environment in Linux?
source venv/bin/activate
What principle should be followed to avoid code duplication in the midterm project?
DRY (Don't Repeat Yourself)
What is the role of the Memento pattern in the midterm project?
To enable undo and redo functionality
Why is input validation important in the calculator application?
To ensure user inputs are correct and within valid ranges
What happens if a required environment variable is missing in the .env file?
The program assigns a default value
What does the calculator_memento.py file implement?
Memento Pattern for undo/redo functionality
What is the function of the pytest --cov=app --cov-fail-under=90 command in GitHub Actions?
To measure test coverage and enforce a 90% minimum