Fundamentals of Programming Flashcards
What is a variable?
An item of data, that is referenced to by a variable name and whose value can change during running.
What is a data type?
Determines what sort of data is being stored and how it will be handled by the program.
What is a memory address?
A specific location in memory where data or instructions are stored.
What is assignment?
The process of giving a value to a variable/ constant.
What is a constant?
An item of data whose value doesn’t change.
Why is it important to use meaningful names?
Helps trace bugs.
Allow other programmers to follow your code.
What is debugging?
The process of finding and correcting errors in a program.
What is declaring?
When you define variables in terms of their name and data type before using them in your program.
What is an integer?
Any whole number.
What is a real/ float?
A number that has a fractional part.
What is a string?
Stores multiple characters
What is a Boolean?
True/ False
What is a character?
An individual character.
What is date/time?
Stores data in a format easily identified as date/time.
What is a pointer/ reference?
References a memory location in the computer.
What is an array?
A set of related data items stored under a single identifier.
What is a element?
A single value within a set or list.
What is a record?
One line of a text file with multiple different data types.
What are built-in data types?
Data types provided with the programming language.
What are user-defined data types?
Users own data types, typically a combination of built-in data types.
What are the three programming constructs?
Sequence
Selection
Iteration.
What is sequencing?
Making sure every line of code is executed in the correct order.
What is syntax?
Rules on how words are used in a given programming language.
What is selection?
The principle of choosing what action to take based on a certain criteria.