All Flashcards
What is a module?
A pre-written block of code containing functions and procedures that can be imported into a program.
What is a software library?
A collection of pre-built procedures and functions that perform specific tasks, saving development time and effort.
What is an API?
Application Program Interface. A set of rules and specifications that define how software components should interact, providing instructions on how to use a library's procedures.
What is data abstraction?
Hiding complex implementation details and exposing only essential information to the user, simplifying interaction with complex systems.
What is the digital divide?
The unequal access to technology and the internet based on socioeconomic factors, geography, or other demographic variables.
What is cybersecurity?
The practice of protecting computer systems and networks from unauthorized access, theft, damage, or disruption.
What is an integer data type?
A data type that represents whole numbers without any fractional or decimal parts.
What is a float data type?
A data type that represents numbers with fractional or decimal parts.
What is a string data type?
A data type that represents a sequence of characters, typically used to store text.
What is a boolean data type?
A data type that represents logical values, either true or false.
What are the differences between a library and an API?
Library: A collection of pre-written code. | API: Specifies how to use the library's functions.
What are the differences between sequence and iteration control structures?
Sequence: Executes instructions in order. | Iteration: Repeats a block of code multiple times.
What are the differences between lists and dictionaries?
Lists: Ordered collection of items, accessed by index. | Dictionaries: Collection of key-value pairs, accessed by key.
What are the differences between integers and floats?
Integers: Whole numbers without decimal places. | Floats: Numbers with decimal places.
What are the differences between the for and while loops?
for loop: Iterates over a sequence of elements. | while loop: Iterates as long as a condition is true.
What are the differences between testing and debugging?
Testing: Verifies if the program meets requirements. | Debugging: Identifies and fixes errors in the code.
What are the differences between data abstraction and data representation?
Data Abstraction: Hides complex implementation details. | Data Representation: Defines how data is stored and manipulated.
What are the differences between positive and negative impacts of computing?
Positive Impacts: Advancements in various fields, improved efficiency. | Negative Impacts: Job displacement, privacy concerns, digital divide.
What are the differences between procedural and object-oriented programming?
Procedural: Focuses on procedures and functions. | Object-Oriented: Focuses on objects with data and methods.
What are the differences between local and global variables?
Local: Defined within a function, accessible only in that function. | Global: Defined outside functions, accessible throughout the program.
What are the steps to debug a Python program?
- Identify the error. 2. Reproduce the error. 3. Isolate the cause. 4. Fix the error. 5. Test the solution.
What are the steps to design an algorithm?
- Define the problem. 2. Brainstorm possible solutions. 3. Choose the best approach. 4. Write pseudocode. 5. Implement the code. 6. Test and debug.
What are the steps to use a library in Python?
- Identify the required library. 2. Import the library. 3. Call the library's functions. 4. Use the returned results.
What are the steps to test a program?
- Plan test cases. 2. Write test code. 3. Run tests. 4. Analyze results. 5. Debug and repeat.
What are the steps to implement data abstraction?
- Identify complex details. 2. Create a simplified interface. 3. Hide implementation. 4. Provide access through the interface.
What are the steps to mitigate the digital divide?
- Increase access to technology. 2. Provide digital literacy training. 3. Lower internet costs. 4. Support community technology centers.
What are the steps to ensure cybersecurity?
- Implement firewalls. 2. Use strong passwords. 3. Regularly update software. 4. Educate users about phishing. 5. Monitor network traffic.
What are the steps to analyze algorithm efficiency?
- Identify key operations. 2. Count operation frequency. 3. Express as a function of input size. 4. Determine growth rate (Big O).
What are the steps to choose the right data structure?
- Understand data requirements. 2. Consider operations needed. 3. Evaluate time complexity. 4. Evaluate space complexity. 5. Select the best fit.
What are the steps to use an API?
- Read API documentation. 2. Understand API endpoints. 3. Make requests to API. 4. Handle API responses. 5. Integrate data into application.