โ† All CCS Flashcard Decks

Programming Fundamentals Flashcards

7 cards from real CCS 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 Fundamentals flashcards as text
  1. What is the purpose of pseudocode in programming?

    Answer: To plan logic in plain language before writing actual code

    Pseudocode is an informal, language-agnostic description of an algorithm used to plan before implementation.

  2. Which of the following is an example of a high-level programming language?

    Answer: Python

    Python is a high-level language that abstracts hardware details, making it easier for humans to read and write.

  3. What is the difference between a compiler and an interpreter?

    Answer: A compiler translates the whole program before execution; an interpreter translates and executes line by line

    A compiler converts the entire source code to machine code before running, while an interpreter processes and executes code one line at a time.

  4. In programming, what is an 'infinite loop'?

    Answer: A loop whose exit condition is never met, causing it to run forever

    An infinite loop occurs when the loop's termination condition is never satisfied, causing the program to loop endlessly.

  5. What is the role of a 'return' statement in a function?

    Answer: To output a value back to the caller and exit the function

    A return statement sends a result value back to the code that called the function and ends the function's execution.

  6. Which of the following describes the concept of 'inheritance' in object-oriented programming?

    Answer: A class acquiring properties and methods from a parent class

    Inheritance allows a child class to reuse and extend the attributes and behaviors defined in a parent class.

  7. What does 'debugging' mean in software development?

    Answer: Finding and fixing errors in a program

    Debugging is the process of identifying, isolating, and correcting errors (bugs) in a program.