Section 1: Fundamentals of programming Flashcards
Chapters 1- 4 as of 12/10/23 12:52pm
What is memory?
Where instructions & data are stored on a computer
What is an algorithm?
A series of instructions that can be followed to complete a task that always terminates
What is syntax?
The rules of how words are used within a given programming language
What is a memory address?
A specific location in memory where instructions or data are stored
What is assignment?
The process of giving a value to a variable or constant
What is a constant?
An item of data of which’s value does not change
What is a variable?
An item of data of which’s value may change while the program is being run
What is debugging?
The process of finding and correcting errors within a program
What does declaration mean?
The process of defining variables and constants in terms of their name and data type
What does data type mean?
The category of the data which determines how it will be handled by the program
What is a “float” data type?
A number that has a decimal or fractional part
What is a “string” data type?
Usually a group of characters, e.g. letters or numbers
What is a “boolean” data type?
Simplest data type, yes/no or true/false
What is a “character” data type?
A singular character, e.g. “9” or “A”
What is a “pointer/reference” data type?
A data type used to store a value that is a reference to a memory location on the computer
What is a pointer?
A value that identifies an element in a data structure, usually the front or rear
What is an array?
A set of related data items stored under a single identifier
What is an element?
A single value within a set or list
What is a record?
A basic data structure used to store related items of different data types
What is a built-in data type?
A data type that is predefined by the programming language you are using
What is a user-defined data type?
A data type that is defined/created by the user as they are programming
What is meant by “sequencing instructions”?
The process of making sure instructions are executed in the correct order
What is meant by “selection”?
The process of choosing which instructions to execute based on a defined criteria
What is meant by “nesting” ?
Putting one set of instructions within another set of instructions
What is meant by “iteration”?
The process of repeating a set of instructions
What is meant by “indefinite iteration”?
A process that repeats until a certain condition is met
What is meant by “definite iteration”?
A process that repeats a defined number of times
What is a loop?
A repeated process
What is a nested loop?
A loop written into a loop
What is meant by “truncating”?
The process of cutting off a number after a certain number of characters/decimal places
What is meant by “random number generation”?
A function that produces a completely random output
What is meant by “pseudo-random number generation”?
A function that produces an output that is not 100% random