Flashcards
1.1 Programming
Cards in this deck (30)
- 1IntegerWhole number, positive or negtive
- 2Real/FloatA number with a decimal point.
- 3BooleanRepresents two logical states
- 4CharacterA single piece of data
- 5StringOne or more characters in plain text.
- 6Date/TimeHolds time or a date
- 7RecordsA structure made up a list of elements with different data types within it.
- 8ArraysHolds a list of elements of the same datatype and size. Can be one-dimensional, two-dimensional, and so forth.
- 9Built in data typesWhere a high level language offers built-in support.
- 10User Defined data typesThe programmer can declare variables to meet their own requirments.
- 11VariablesUsed to store data reliably.
- 12ConstantsData stored that does not change throughout the program.
- 13AssignmentA value assigned to a variable
- 14Sub-routineA set of instructions to perform a task
- 15ProcedureCalled to perform a task
- 16FunctionCalled to execute a task and always returns a value
- 17IterationA statement/group of statements that execute until a logical condition is met
- 18Definite Example:No. of iterations is known
For loop - 19Indefinite 2 Examples:No. of iterations are unknown
While and Repeat loops. - 20What are the different comparison operatorsequal to, not equal to, less than, greater than, less than or equal to, greater than or equal to
- 21What are the different boolean operationsNOT, AND, OR, XOR
- 22Why use a constant?When a value won't change during the program.
They are easy to change and declared very clearly. - 23When would a varible be used?When the value may change throughout the execution of the program.
- 24Why do we use meaningful names?Understandable and easier to read
Easier to plan out the program. - 25What are the four string handling operations- Length
-Position
-Substring
-Concat - 26Exception HnadellingA way to deal with error conditions
- 27What are the advantages of sub-routines-More efficient as less lines are used
- Easier to update and maintain - 28ParametersVariables and arguments used in a sub-routine
- 29Local Variables and advantagesVariables only in existence in a subroutine.
- Easier to trace
- More efficent - 30Global VariablesVariables declared at the beginning and accessed anywhere.
Information
- Description
- AS level computer science Flashcards on 1.1 Programming, created by Kashly Cash on 19/03/2017.
- Created by
- Kashly Cash
- Views
- 1
- Rating