โ† All CCP Flashcard Decks

Programming Concepts & Application Development Flashcards

7 cards from real CCP practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Programming Concepts & Application Development flashcards as text
  1. What is a 'deadlock' in concurrent programming?

    Answer: A situation where two or more processes are each waiting for the other to release a resource

    A deadlock occurs when two or more processes are permanently blocked, each waiting for a resource held by the other.

  2. Which HTTP method is typically used to update an existing resource in a RESTful API?

    Answer: PUT

    PUT is the standard RESTful HTTP method for updating or replacing an existing resource at a specified URI.

  3. In the context of software architecture, what is 'separation of concerns'?

    Answer: Dividing a program into distinct sections, each addressing a separate concern

    Separation of concerns is a design principle where a program is divided into distinct sections, each responsible for a specific aspect of functionality.

  4. What type of error occurs at runtime when a program attempts to access memory it is not authorized to use?

    Answer: Segmentation fault

    A segmentation fault is a runtime error raised when a program tries to access a memory location it is not permitted to access.

  5. Which of the following best describes 'recursion' in programming?

    Answer: A function that calls itself to solve a smaller instance of the same problem

    Recursion is a programming technique where a function calls itself with a simpler or smaller input until it reaches a base case.

  6. What is the primary purpose of an Application Programming Interface (API)?

    Answer: To define protocols and tools for building and integrating software components

    An API defines a set of rules and protocols that allow different software applications to communicate and share functionality.

  7. In object-oriented design, what is 'abstraction'?

    Answer: Hiding the complex implementation details and exposing only the necessary interface

    Abstraction simplifies complexity by exposing only the relevant details of an object and hiding its internal implementation.