Computer programming revision
Programming Concepts Flashcards
Review language-independent ideas used in coding, debugging, data structures, APIs, and version control.
Mark a card when you can explain the answer without looking.
Flashcards
Recall first, then verify.
-
Question 1
What is a variable in programming?
AnswerA named reference or storage location used to hold a value that a program can read or change.
-
Question 2
What is a function?
AnswerA reusable block of code that performs a task and may accept inputs and return an output.
-
Question 3
What is a loop?
AnswerA control structure that repeats a block of code while a condition holds or for each item in a sequence.
-
Question 4
What is a conditional statement?
AnswerA control structure that chooses which code to run based on whether a condition is true or false.
-
Question 5
What is an array or list?
AnswerAn ordered collection that stores multiple values under one variable or structure.
-
Question 6
What is an object in programming?
AnswerA value that groups related data and, in many languages, behavior under one identity.
-
Question 7
What is recursion?
AnswerA technique in which a function solves a problem by calling itself on a smaller or simpler case, with a base case that stops the calls.
-
Question 8
What is an algorithm?
AnswerA finite, ordered set of steps for solving a problem or completing a computation.
-
Question 9
What is debugging?
AnswerThe process of finding, understanding, and correcting defects in a program.
-
Question 10
What is an API?
AnswerAn application programming interface: a defined way for software components to request data or behavior from one another.
-
Question 11
What is version control?
AnswerA system that records changes to files so people can inspect history, collaborate, and restore earlier versions.
-
Question 12
What is a data type?
AnswerA classification that describes the kind of value data represents and the operations that can be performed on it.