What this deck covers
This deck focuses on Libraries, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.
Study Libraries in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.
0% Complete
What is a library in computer science?
Tap card or press Space to flip
A collection of pre-written code for reuse. Provides ready-made functions to avoid coding from scratch.
How well did you know it?
Card 1 / 80
Space to flip · ← / → to move · once flipped, → Got it · ← Still learning
This deck focuses on Libraries, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.
Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.
Answer: A collection of pre-written code for reuse. Provides ready-made functions to avoid coding from scratch.
Answer: cryptography. Implements encryption, decryption, and security protocols.
Answer: matplotlib. Creates charts, plots, and graphs for data analysis.
Answer: PIL (Pillow). Handles image formats, filters, and transformations.
Answer: requests. Standard library for web communication and API calls.
Answer: Correct: 'from math import sqrt'. Correct syntax places 'from' before library name.
Answer: To interact with the Python interpreter. Accesses command-line arguments and system functions.
Answer: Correct: 'from math import sqrt'. Correct syntax places 'from' before library name.
Answer: To interact with the operating system. Provides access to environment variables and system calls.
Answer: To create iterators for efficient looping. Provides memory-efficient iteration tools and combinations.
Answer: pip list. Shows all packages installed in current environment.
Answer: By centralizing code updates and bug fixes. Updates in one place benefit all users of the library.
Answer: Support for large, multi-dimensional arrays and matrices. Essential for numerical computing and scientific calculations.
Answer: BeautifulSoup. Parses HTML and XML for data extraction.
Answer: re. Enables pattern matching and text processing.
Answer: multiprocessing. Enables multiple processes to run simultaneously.
Answer: Flask or Django. Both are frameworks for building web applications.
Answer: datetime. Manages date objects, time zones, and formatting.
Answer: BeautifulSoup. Parses HTML and XML for data extraction.
Answer: matplotlib. Standard library for 2D plotting and visualization.
Answer: requests. Standard library for web communication and API calls.
Answer: sqrt. Calculates the square root of a number.
Answer: SciPy. Built on NumPy for advanced mathematical operations.
Answer: scikit-learn. Offers tools for classification, regression, and clustering.
Answer: To create iterators for efficient looping. Provides memory-efficient iteration tools and combinations.
Answer: Tkinter. Built-in Python library for desktop application interfaces.
Answer: requests. Simplifies making GET, POST, and other HTTP calls.
Answer: To generate random numbers. Provides functions for random selection and probability.
Answer: math. Provides functions like sqrt, sin, cos, and pi.
Answer: Correct: 'import pandas as pd'. Missing 'as' keyword for alias assignment.
Answer: To provide specialized container datatypes. Includes Counter, deque, and defaultdict containers.
Answer: multiprocessing. Enables multiple processes to run simultaneously.
Answer: Code reuse and reduced development time. Libraries save time by providing pre-built solutions.
Answer: SciPy. Built on NumPy for advanced mathematical operations.
Answer: random.randint(a, b). Returns random integer between a and b inclusive.
Answer: Use dir(library_name). Built-in function to explore library contents and methods.
Answer: A set of rules for accessing a library's features. Defines how to interact with the library's functions.
Answer: asyncio. Handles concurrent code execution and async/await syntax.
Answer: datetime. Manages date objects, time zones, and formatting.
Answer: By using well-tested, pre-written code. Pre-tested code reduces bugs and implementation errors.
Answer: To provide specialized container datatypes. Includes Counter, deque, and defaultdict containers.
Answer: A set of rules for accessing a library's features. Defines how to interact with the library's functions.
Answer: matplotlib. Creates charts, plots, and graphs for data analysis.
Answer: import. Standard Python keyword to include external libraries.
Answer: Code reuse and reduced development time. Libraries save time by providing pre-built solutions.
Answer: To generate random numbers. Provides functions for random selection and probability.
Answer: scikit-learn. Offers tools for classification, regression, and clustering.
Answer: requests. Simplifies making GET, POST, and other HTTP calls.
Answer: Correct: 'import pandas as pd'. Missing 'as' keyword for alias assignment.
Answer: Tkinter. Built-in Python library for desktop application interfaces.
Answer: math. Provides functions like sqrt, sin, cos, and pi.
Answer: pip list. Shows all packages installed in current environment.
Answer: unittest. Built-in framework for automated testing of code.
Answer: To perform high-level file operations. Includes copying, moving, and archiving files.
Answer: To interact with the operating system. Provides access to environment variables and system calls.
Answer: json. Handles JavaScript Object Notation data format.
Answer: os.path. Cross-platform file and directory path operations.
Answer: json. Handles JavaScript Object Notation data format.
Answer: pandas. Popular for working with DataFrames and data analysis.
Answer: pandas. Popular for working with DataFrames and data analysis.
Answer: asyncio. Handles concurrent code execution and async/await syntax.
Answer: re. Enables pattern matching and text processing.
Answer: os.path. Cross-platform file and directory path operations.
Answer: PIL (Pillow). Handles image formats, filters, and transformations.
Answer: sqrt. Calculates the square root of a number.
Answer: Flask or Django. Both are frameworks for building web applications.
Answer: To interact with the Python interpreter. Accesses command-line arguments and system functions.
Answer: import numpy as np. Creates shorter alias 'np' for easier reference.
Answer: To perform high-level file operations. Includes copying, moving, and archiving files.
Answer: import numpy as np. Creates shorter alias 'np' for easier reference.
Answer: Use dir(library_name). Built-in function to explore library contents and methods.
Answer: random.randint(a, b). Returns random integer between a and b inclusive.
Answer: A collection of pre-written code for reuse. Provides ready-made functions to avoid coding from scratch.
Answer: Support for large, multi-dimensional arrays and matrices. Essential for numerical computing and scientific calculations.
Answer: import. Standard Python keyword to include external libraries.
Answer: By using well-tested, pre-written code. Pre-tested code reduces bugs and implementation errors.
Answer: cryptography. Implements encryption, decryption, and security protocols.
Answer: By centralizing code updates and bug fixes. Updates in one place benefit all users of the library.
Answer: matplotlib. Standard library for 2D plotting and visualization.
Answer: unittest. Built-in framework for automated testing of code.