Fundamentals & Vocabulary Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an algorithm?

A

An algorithm is a step-by-step procedure or formula used to solve a problem or achieve a task in programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can you explain what a data structure is?

A

Sure! A data structure is a way of organizing and storing data in a computer so that it can be accessed and modified efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do you mean by a variable in programming?

A

A variable is like a named storage location in computer memory that holds a value, such as a number or a piece of text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Could you define a function?

A

Absolutely! A function is a block of code that performs a specific task and can be reused throughout a program to avoid repetition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How would you describe a loop?

A

A loop is a programming construct that repeats a block of code until a specified condition is met, allowing for efficient repetition in code execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What exactly is a condition in programming?

A

A condition is a statement that evaluates whether a given condition is true or false, controlling the flow of a program by directing it to different paths based on the evaluation result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Could you explain what an array is?

A

An array is a data structure used to store a collection of elements, each identified by an index or key, allowing for efficient storage and retrieval of related data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can you clarify the concept of a string?

A

Certainly! A string is a sequence of characters, typically used to represent text in computer programs, such as words or sentences.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a Boolean in programming?

A

A Boolean is a data type that represents true or false values, commonly used for logical operations and conditional expressions in programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How would you define an integer?

A

An integer is a data type that represents whole numbers, both positive and negative, without fractional parts, making it suitable for arithmetic operations and counting in programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the difference between a parameter and an argument?

A

In programming, a parameter is a variable in a function definition, while an argument is the actual value passed to the function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Could you explain the concept of scope?

A

Scope refers to the visibility and accessibility of variables within a program, determining where in the code a variable can be referenced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does it mean to “declare” a variable?

A

To declare a variable in programming is to define its name and data type, allocating memory space for storing its value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can you define “syntax” in programming?

A

Syntax refers to the set of rules governing the structure and format of statements in a programming language, ensuring code correctness and readability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the purpose of code comments?

A

Comments are used to provide explanations or annotations within code, helping developers understand its logic and functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you describe the concept of “debugging”?

A

Debugging is the process of identifying and fixing errors or bugs in a program to ensure it behaves as expected.

17
Q

What is the significance of indentation in programming?

A

Indentation is used to visually organize code by indicating block structures, such as loops and conditionals, improving readability and clarity.

18
Q

What is the difference between “compilation” and “interpretation”?

A

Compilation is the process of translating source code into machine code before execution, while interpretation involves executing code directly without prior translation.

19
Q

Can you explain the concept of “inheritance” in object-oriented programming?

A

Inheritance allows a class to inherit properties and behaviors from another class, enabling code reuse and establishing hierarchical relationships between classes.

20
Q

What is a “method” in object-oriented programming?

A

A method is a function associated with an object or class, defining behaviors and actions that objects of that class can perform.

21
Q

What is a “class” in object-oriented programming?

A

A class is a blueprint for creating objects that define properties and behaviors common to all instances of that class.

22
Q

Can you explain the concept of “polymorphism”?

A

Polymorphism allows objects of different classes to be treated as objects of a common superclass, enabling flexibility and extensibility in code design.

23
Q

What does it mean to “instantiate” an object?

A

To instantiate an object is to create an instance of a class, allocating memory for the object and initializing its properties.

24
Q

Could you define “abstraction” in programming?

A

Abstraction is the process of hiding complex implementation details and exposing only relevant information to the user, enhancing code simplicity and maintainability.

25
Q

What is the purpose of “modularity” in programming?

A

Modularity involves breaking down a program into smaller, manageable components or modules, promoting code reusability, and facilitating maintenance and collaboration.

26
Q

How would you describe the concept of “recursion”?

A

Recursion is a programming technique where a function calls itself to solve a problem by breaking it down into smaller instances.

27
Q

What is “stack” and “heap” memory?

A

Stack memory is used for static memory allocation and stores local variables and function call information, while heap memory is used for dynamic memory allocation and stores objects and data structures.

28
Q

Can you explain the concept of “pointer” in programming?

A

A pointer is a variable that stores the memory address of another variable or object, allowing direct manipulation and access to memory locations.

29
Q

What is the purpose of “exception handling”?

A

Exception handling is the process of handling unexpected or exceptional situations in a program, such as errors or runtime exceptions, to prevent program crashes and ensure graceful error recovery.

30
Q

How would you define “modulus” in programming?

A

Modulus is a mathematical operation that returns the remainder of a division operation, commonly used for tasks such as checking for divisibility or cycling through a sequence.